查看完整版本: 台灣旅遊討論區

array('fid' => 0, 'name' => $_DCACHE['settings']['bbname'])); foreach($_DCACHE['forums'] as $forum) { if(forumperm($forum['viewperm'])) { if($forum['type'] == 'group') { $categories[] = $forum; } else { $forum['type'] == 'sub' ? $subforums[$forum['fup']][] = $forum : $forums[$forum['fup']][] = $forum; } } } echo "\n"; ?>
查看完整版本: 台灣旅遊討論區
'.$advlist[footerbanner1].''; } if(!empty($advlist['footerbanner2'])) { echo '
'.$advlist[footerbanner2].'
'; } if(!empty($advlist['footerbanner3'])) { echo '
'.$advlist[footerbanner3].'
'; } ?> 1) { $pagelink .= "{$GLOBALS[lang][page]}: \n"; $pagestart = $page - 10 < 1 ? 1 : $page - 10; $pageend = $page + 10 >= $pages ? $pages : $page + 10; for($i = $pagestart; $i < $pageend; $i++) { $pagelink .= ($i == $page ? "[$i]" : "$i")." \n"; } } return $pagelink; } function forumperm($viewperm) { return (empty($viewperm) || ($viewperm && strstr($viewperm, "\t7\t"))); } function forumformulaperm($formula) { $formula = unserialize($formula);$formula = $formula[1]; if(!$formula) { return TRUE; } $_DSESSION = array(); @eval("\$formulaperm = ($formula) ? TRUE : FALSE;"); return $formulaperm; } ?>