class="current" <?php } ?> href="<?php echo geturl("uid/{$_GET['uid']}/op/bbs"); ?> ">论坛</a> <?php } ?> </div> <?php if ($_GET['op'] == 'uchblog' && uchome_exists() && !in_array('uchblog', $_SCONFIG['closechannels'])) { block("uchblog", "uid/{$_GET['uid']}/order/dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"); } elseif ($_GET['op'] == 'uchphoto' && uchome_exists() && !in_array('uchphoto', $_SCONFIG['closechannels'])) { block("uchphoto", "uid/{$_GET['uid']}/order/updatetime DESC/perpage/6/subjectlen/30/messagedot/0/cachetime/3600/cachename/infobody"); } elseif ($_GET['op'] == 'bbs' && discuz_exists() && !in_array('bbs', $_SCONFIG['closechannels'])) { block("bbsthread", "authorid/{$_GET['uid']}/order/dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"); } else { block("spacenews", "uid/{$_GET['uid']}/order/i.dateline DESC/perpage/20/cachetime/3600/showdetail/1/messagelen/200/messagedot/1/cachename/infobody"); } ?> <?php if ($_GET['op'] == 'uchphoto') { ?> <div class="global_module user_photolist"> <div class="clearfix"> <?php if (is_array($_SBLOCK['infobody'])) {
if (empty($_SCONFIG['closemessage'])) { $_SCONFIG['closemessage'] = $lang['site_close']; } $userinfo = empty($_SGLOBAL['supe_username']) ? '' : "{$lang['welcome']}, {$_SGLOBAL['supe_username']} <a href=\"" . S_URL . "/batch.login.php?action=logout\" style=\"color:#aaa;\">[{$lang[logout]}]</a><br/>"; showmessage("{$_SCONFIG['closemessage']}<br /><p style=\"font-size:12px;color:#aaa;\">{$userinfo}<a href=\"" . geturl("action/login") . "\" style=\"color:#aaa;\">{$lang['admin_login']}</a></p>"); } } $_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;
} $id = empty($_GET['id']) ? 0 : intval($_GET['id']); $op = empty($_GET['op']) ? '' : trim($_GET['op']); if (submitcheck('postvaluesubmit')) { $setarr = array(); $datarr = array(); $setarr['settype'] = 'fromss'; $setid = empty($_POST['setid']) ? 0 : intval($_POST['setid']); $_POST['posttype'] = trim($_POST['posttype']); $datarr['setlive'] = intval($_POST['setlive']); if (empty($_POST['setname'])) { showmessage('set_info_is_empty'); } if ($_POST['sethave']) { if ($_POST['posttype'] == 'uchome') { if (uchome_exists()) { $datarr['setdbhost'] = $_SC['dbhost_uch']; $datarr['setdbname'] = $_SC['dbname_uch']; $datarr['setdbuser'] = $_SC['dbuser_uch']; $datarr['setdbpwd'] = $_SC['dbpw_uch']; $datarr['setdbpre'] = $_SC['tablepre_uch']; $datarr['setdbpconnect'] = $_SC['pconnect_uch']; } else { showmessage('not_uchome_exists'); } } elseif ($_POST['posttype'] == 'bbs') { if (discuz_exists()) { $datarr['setdbhost'] = $_SC['dbhost_bbs']; $datarr['setdbname'] = $_SC['dbname_bbs']; $datarr['setdbuser'] = $_SC['dbuser_bbs']; $datarr['setdbpwd'] = $_SC['dbpw_bbs'];
} $filekind = array('js' => $alang['spacecache_filekind_js'], 'robot' => $alang['spacecache_filekind_robot'], 'tpl' => $alang['spacecache_filekind_tpl'], 'ad' => $alang['spacecache_filekind_ad'], 'announcement' => $alang['spacecache_filekind_announcement'], 'category' => $alang['spacecache_filekind_category'], 'config' => $alang['spacecache_filekind_config'], 'crons' => $alang['spacecache_filekind_crons'], 'censor' => $alang['spacecache_filekind_censor'], 'group' => $alang['spacecache_filekind_group'], 'model' => $alang['spacecache_model']); if (discuz_exists()) { $filekind['bbs_settings'] = $alang['spacecache_filekind_bbs_settings']; $filekind['bbs_bbcodes'] = $alang['spacecache_filekind_bbs_bbcodes']; $filekind['bbs_style'] = $alang['spacecache_filekind_bbs_style']; } else { unset($cachetype['bbsthread']); unset($cachetype['bbsannouncement']); unset($cachetype['bbsforum']); unset($cachetype['bbslink']); unset($cachetype['bbsmember']); unset($cachetype['bbsattachment']); unset($cachetype['bbspost']); } if (!uchome_exists()) { unset($cachetype['uchblog']); unset($cachetype['uchphoto']); unset($cachetype['uchspace']); } echo label(array('type' => 'form-start', 'name' => 'cacheform', 'action' => $theurl)); echo label(array('type' => 'help', 'text' => $alang['help_cache'])); echo label(array('type' => 'div-start')); echo label(array('type' => 'table-start')); echo label(array('type' => 'checkbox', 'alang' => 'spacecache_cachekind', 'name' => 'cachekind', 'options' => $cachekind)); echo label(array('type' => 'checkbox', 'alang' => 'spacecache_cachetype', 'name' => 'cachetype', 'options' => $cachetype)); echo label(array('type' => 'table-end')); echo label(array('type' => 'div-end')); echo '<div class="buttons">'; echo label(array('type' => 'button-submit', 'name' => 'cachesubmitbtn', 'value' => $alang['common_submit'])); echo label(array('type' => 'button-reset', 'name' => 'cachereset', 'value' => $alang['common_reset']));