set_page('index'); $webPageTitle = $pw_seoset->getPageTitle(); $metaDescription = $pw_seoset->getPageMetadescrip(); $metaKeywords = $pw_seoset->getPageMetakeyword(); switch($prog){ case 'f': $fid =& $id; include_once(R_P.'simple/mod_thread.php');break; case 't': $tid =& $id; include_once(R_P.'simple/mod_read.php');break; default: include_once(R_P.'simple/mod_index.php'); } Update_ol(); if($db){ $qn=$db->query_num; } $db_obstart ? $ft_gzip="Gzip enabled":$ft_gzip="Gzip disabled"; if ($db_footertime==1){ $totaltime=number_format((pwMicrotime()-$P_S_T),6); $wind_spend="Time $totaltime second(s),query:$qn"; } include PrintEot('simple_footer'); $ceversion = defined('CE') ? 1 : 0; $output=str_replace(array('',"\r\n",''),'',ob_get_contents()); if ($db_htmifopen) { $output = preg_replace( "/\]+\s*)href\=([\"|\']?)((index|cate|thread|read|faq|rss)\.php\?[^\"\'>\s]+\s?)[\"|\']?/ies", "Htm_cv('\\3','"; ob_end_clean(); $db_obstart && function_exists('ob_gzhandler') ? ob_start('ob_gzhandler') : ob_start(); echo $output; flush; exit; function PageDiv($count,$page,$numofpage,$url,$max=null){ global $tablecolor,$db_bbsurl; $total = $numofpage; if(!empty($max)){ $max = (int)$max; $numofpage > $max && $numofpage = $max; } if ($numofpage<=1){ return null; }else{ $pages="<< "; $flag=0; for ($i=$page-3;$i<=$page-1;$i++) { if ($i == 1) $pages.="  $i "; elseif ($i > 1) $pages.="  $i "; } $pages.="  $page "; if ($page<$numofpage) { for($i=$page+1;$i<=$numofpage;$i++) { $pages.="  $i "; $flag++; if($flag==4) break; } } $pages.=" >>  Pages: ( $total total )"; return $pages; } } function getindexdir($path=null){ if (!empty($path)) { if (strpos($path,'\\')!==false) { return substr($path,0,strrpos($path,'\\')-7); } elseif (strpos($path,'/')!==false) { return substr($path,0,strrpos($path,'/')-7); } } return './..'; } ?>