reject_robot(); $modarray = array('seccode', 'secqaa', 'initsys', 'invite', 'faq', 'report', 'swfupload', 'stat', 'ranklist', 'buyinvitecode', 'tag', 'diyhelp', 'mobile', 'patch', 'getatuser', 'imgcropper', 'userstatus', 'signin'); $modcachelist = array( 'ranklist' => array('forums', 'diytemplatename'), ); $mod = getgpc('mod'); $mod = (empty($mod) || !in_array($mod, $modarray)) ? 'error' : $mod; if(in_array($mod, array('seccode', 'secqaa', 'initsys', 'faq', 'swfupload', 'mobile'))) { define('ALLOWGUEST', 1); } $cachelist = array(); if(isset($modcachelist[$mod])) { $cachelist = $modcachelist[$mod]; } $discuz->cachelist = $cachelist; switch ($mod) { case 'secqaa': case 'userstatus': case 'seccode': $discuz->init_cron = false; $discuz->init_session = false; break; case 'updatecache': $discuz->init_cron = false; $discuz->init_session = false; default: break; } $discuz->init(); define('CURMODULE', $mod); runhooks(); require DISCUZ_ROOT.'./source/module/misc/misc_'.$mod.'.php'; ?>