$v) $spacegetvar .= "&$k=$v"; showmessage('', S_URL.'/space.php?'.$spacegetvar, 0); } else { $_SGET['action'] = empty($_SGET['action'])?'index':trim(preg_replace("/[^a-z0-9\-\_]/i", '', trim($_SGET['action']))); } //站点关闭 if(!empty($_SCONFIG['closesite']) && $_SGET['action'] != 'login') { if((empty($_SGLOBAL['group']['groupid']) || $_SGLOBAL['group']['groupid'] != 1) && !checkperm('closeignore')) { if(empty($_SCONFIG['closemessage'])) $_SCONFIG['closemessage'] = $lang['site_close']; $userinfo = empty($_SGLOBAL['supe_username']) ? '' : "$lang[welcome], $_SGLOBAL[supe_username]  [{$lang[logout]}]
"; showmessage("$_SCONFIG[closemessage]

$userinfo$lang[admin_login]

"); } } $_SGLOBAL['maxpages'] = 500; //限制分页500 if(!empty($_SGET['page'])) { if($_SGET['page'] > $_SGLOBAL['maxpages']) { $_SGET['page'] = $_SGLOBAL['maxpages']; } } //频道关闭隐藏 if(($_SGET['action'] == 'channel' && in_array($_SGET['name'], $_SCONFIG['closechannels'])) || in_array($_SGET['action'], $_SCONFIG['closechannels']) || ($_SGET['action'] == 'bbs' && !discuz_exists()) || (in_array($_SGET['action'], array('uchblog', 'uchimage', 'blogdetail', 'bloglist', 'imagedetail', 'imagelist')) && !uchome_exists())) { $_SGET['action'] = 'index'; } //关键字、描述、导航、标题 $keywordarr = $descriptionarr = $guidearr = $titlearr = array(); //自定义频道 if($_SGET['action'] == 'channel') { $_SGET['name'] = empty($_SGET['name'])?'':trim(preg_replace("/[^a-z0-9\-\_]/i", '', trim($_SGET['name']))); if(!empty($_SGET['name'])) { if(!empty($_SCONFIG['hidechannels'][$_SGET['name']])) { $_SCONFIG['channel'][$_SGET['name']] = $_SCONFIG['hidechannels'][$_SGET['name']]; } $scriptfile = S_ROOT.'./channel/channel_'.$_SGET['name'].'.php'; if(file_exists($scriptfile)) { include_once($scriptfile); exit(); } } } //自定义模型 if($_SGET['action'] == 'model') { $_SGET['name'] = empty($_SGET['name'])?'':trim(preg_replace("/[^a-z0-9\-\_]/i", '', trim($_SGET['name']))); if(!empty($_SGET['name'])) { if(!empty($_SGET['itemid'])) { $scriptfile = S_ROOT.'./modelview.php'; } else { $scriptfile = S_ROOT.'./modelindex.php'; } if(file_exists($scriptfile)) { include_once($scriptfile); exit(); } } } //系统频道 if($_SGET['action'] != 'index') { if(empty($channels['menus'][$_SGET['action']]['upnameid']) && $channels['menus'][$_SGET['action']]['upnameid'] != 'news') { $scriptfile = S_ROOT.'./'.$_SGET['action'].'.php'; } else { $scriptfile = S_ROOT.'./news.php'; } if(file_exists($scriptfile)) { include_once($scriptfile); exit(); } } else { $forumarr = array(); $forumnum = 0; @include_once S_ROOT.'/data/system/bbsforums.cache.php'; if(!empty($_SGLOBAL['bbsforumarr']) && is_array($_SGLOBAL['bbsforumarr'])) { foreach($_SGLOBAL['bbsforumarr'] as $value) { if($value['allowshare'] == 1 && $forumnum < 12) { if($value['type'] == 'forum') { //链接 if($_SCONFIG['bbsurltype'] == 'bbs') { $value['url'] = B_URL.'/forumdisplay.php?fid='.$value['fid']; } else { $value['url'] = geturl('action/forumdisplay/fid/'.$value['fid']); } $forumarr[] = $value; $forumnum++; } } } } } //默认首页 if(!empty($channels['default']) && $channels['default'] != 'index.php') { if(strpos($channels['default'], '?')) { sheader(S_URL.'/'.$channels['default']); exit(); } else { include_once(S_ROOT.'./'.$channels['default']); } } else { if(!empty($_SCONFIG['htmlindex'])) { $_SHTML['action'] = 'index'; $_SGLOBAL['htmlfile'] = gethtmlfile($_SHTML); ehtml('get', $_SCONFIG['htmlindextime']); $_SCONFIG['debug'] = 0; } $title = $_SCONFIG['sitename']; $keywords = $_SCONFIG['sitename']; $description = $_SCONFIG['sitename']; include template('index'); ob_out(); if(!empty($_SCONFIG['htmlindex'])) { ehtml('make'); } else { maketplblockvalue('cache'); } } ?>