array('announcements', 'onlinelist', 'forumlinks', 'heats', 'historyposts', 'onlinerecord', 'userstats', 'diytemplatenameforum', 'forums'), 'forumdisplay' => array('smilies', 'announcements_forum', 'globalstick', 'forums', 'onlinelist', 'forumstick', 'threadtable_info', 'threadtableids', 'stamps', 'diytemplatenameforum'), 'viewthread' => array('smilies', 'smileytypes', 'forums', 'usergroups', 'stamps', 'bbcodes', 'smilies', 'custominfo', 'groupicon', 'stamps', 'threadtableids', 'threadtable_info', 'posttable_info', 'diytemplatenameforum'), 'redirect' => array('threadtableids', 'threadtable_info', 'posttable_info'), 'post' => array('bbcodes_display', 'bbcodes', 'smileycodes', 'smilies', 'smileytypes', 'domainwhitelist', 'albumcategory'), 'space' => array('fields_required', 'fields_optional', 'custominfo'), 'group' => array('grouptype', 'diytemplatenamegroup'), ); $mod = !in_array(C::app()->var['mod'], $modarray) ? 'index' : C::app()->var['mod']; define('CURMODULE', $mod); $cachelist = array(); if(isset($modcachelist[CURMODULE])) { $cachelist = $modcachelist[CURMODULE]; $cachelist[] = 'plugin'; $cachelist[] = 'pluginlanguage_system'; } if(C::app()->var['mod'] == 'group') { $_G['basescript'] = 'group'; } C::app()->cachelist = $cachelist; //解决当用户在帖子详情点击登录并发帖formhash一致问题 C::app()->init_misc = false; C::app()->init(); //check vidda_cas_login /*if(CAS_LOGIN && !$_G['adminid'] && $v_login_result = C::check_vidda_login($_G['username']) ){ require_once 'v_login.php'; }*/ require_once 'judge_login.php'; C::app()->init_misc = true; C::app()->init_user = true; C::app()->initated = false; C::app()->init_db = false; C::app()->init_setting = false; C::app()->init_session = false; C::app()->init_mobile = false; C::app()->init_cron = false; C::app()->init(); loadforum(); set_rssauth(); runhooks(); $navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['forum']); $_G['setting']['threadhidethreshold'] = 1; require DISCUZ_ROOT.'./source/module/forum/forum_'.$mod.'.php'; ?>