优化 后台搜索索引更新,同时恢复索引记录标记(索引生成器见wiki)

This commit is contained in:
Comsenz 2017-11-14 11:00:14 +08:00
parent 532e2125c1
commit bd52e4756f
47 changed files with 7057 additions and 6833 deletions

View File

@ -228,6 +228,7 @@ if(!$operation) {
$_GET['id'] = $gid = $group['groupid'];
$mgids[] = $gid;
/*search={"admingroup":"action=admingroup","admingroup_edit_threadperm":"action=admingroup&operation=edit&anchor=threadperm"}*/
showmultititle();
showtableheader();
showtagheader('tbody', 'threadperm', $_GET['anchor'] == 'threadperm');
@ -264,7 +265,9 @@ if(!$operation) {
showsetting('admingroup_edit_edit_trade', 'allowedittradenew', $group['allowedittrade'], 'radio');
showsetting('admingroup_edit_usertag', 'alloweditusertagnew', $group['alloweditusertag'], 'radio');
showtagfooter('tbody');
/*search*/
/*search={"admingroup":"action=admingroup","admingroup_edit_postperm":"action=admingroup&operation=edit&anchor=postperm"}*/
showtagheader('tbody', 'postperm', $_GET['anchor'] == 'postperm');
showtitle('admingroup_edit_postperm');
showsetting('admingroup_edit_edit_post', 'alloweditpostnew', $group['alloweditpost'], 'radio');
@ -274,7 +277,9 @@ if(!$operation) {
showsetting('admingroup_edit_stick_post', 'allowstickreplynew', $group['allowstickreply'], 'radio');
showsetting('admingroup_edit_manage_tag', 'allowmanagetagnew', $group['allowmanagetag'], 'radio');
showtagfooter('tbody');
/*search*/
/*search={"admingroup":"action=admingroup","admingroup_edit_modcpperm":"action=admingroup&operation=edit&anchor=modcpperm"}*/
showtagheader('tbody', 'modcpperm', $_GET['anchor'] == 'modcpperm');
showtitle('admingroup_edit_modcpperm');
showsetting('admingroup_edit_mod_post', 'allowmodpostnew', $group['allowmodpost'], 'radio');
@ -289,7 +294,9 @@ if(!$operation) {
showsetting('admingroup_edit_clear_recycle', 'allowclearrecyclenew', $group['allowclearrecycle'], 'radio');
showsetting('admingroup_edit_view_log', 'allowviewlognew', $group['allowviewlog'], 'radio');
showtagfooter('tbody');
/*search*/
/*search={"admingroup":"action=admingroup","admingroup_edit_spaceperm":"action=admingroup&operation=edit&anchor=spaceperm"}*/
showtagheader('tbody', 'spaceperm', $_GET['anchor'] == 'spaceperm');
showtitle('admingroup_edit_spaceperm');
showsetting('admingroup_edit_manage_feed', 'managefeednew', $group['managefeed'], 'radio');
@ -306,7 +313,9 @@ if(!$operation) {
showsetting('admingroup_edit_manage_magic', 'managemagicnew', $group['managemagic'], 'radio');
showsetting('admingroup_edit_manage_click', 'manageclicknew', $group['manageclick'], 'radio');
showtagfooter('tbody');
/*search*/
/*search={"admingroup":"action=admingroup","admingroup_edit_otherperm":"action=admingroup&operation=edit&anchor=otherperm"}*/
showtagheader('tbody', 'otherperm', $_GET['anchor'] == 'otherperm');
showtitle('admingroup_edit_otherperm');
showsetting('admingroup_edit_view_ip', 'allowviewipnew', $group['allowviewip'], 'radio');
@ -314,7 +323,9 @@ if(!$operation) {
showsetting('admingroup_edit_allow_make_html', 'allowmakehtmlnew', $group['allowmakehtml'], 'radio');
showtagfooter('tbody');
showtablefooter();
/*search*/
/*search={"admingroup":"action=admingroup","admingroup_edit_portalperm":"action=admingroup&operation=edit&anchor=portalperm"}*/
showtagheader('div', 'portalperm', $_GET['anchor'] == 'portalperm');
showtableheader();
showtagheader('tbody', '', true);
@ -328,6 +339,7 @@ if(!$operation) {
showtagfooter('tbody');
showtablefooter();
showtagfooter('div');
/*search*/
showsubmit('groupsubmit');

View File

@ -530,7 +530,9 @@ if($operation == 'ad') {
array('adv_admin_list', 'adv&operation=list', 1),
array('adv_admin_listall', 'adv&operation=ad', 0),
));
/*search={"adv_admin":"action=adv","adv_admin_list":"action=adv&operation=list"}*/
showtips('adv_list_tip');
/*search*/
$advs = getadvs();
showtableheader('', 'fixpadding');

View File

@ -67,9 +67,11 @@ if(!submitcheck('albumsubmit')) {
array('album_search', !$searchsubmit),
array('nav_album', $searchsubmit)
));
/*search={"nav_album":"action=album","newlist":"action=album"}*/
if($muticondition) {
showtips('album_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -80,6 +82,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_album":"action=album","search":"action=album&search=true"}*/
showformheader("album".(!empty($_GET['search']) ? '&search=true' : ''), '', 'albumforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -98,6 +101,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
if($_GET['albumids']) {

View File

@ -26,6 +26,7 @@ if($operation == 'list') {
array('list', 'albumcategory', 1)
));
/*search={"albumcategory":"action=albumcategory"}*/
showformheader('albumcategory');
showtableheader();
showsetting('system_category_stat', 'settingnew[albumcategorystat]', $_G['setting']['albumcategorystat'], 'radio', '', 1);
@ -41,6 +42,7 @@ if($operation == 'list') {
echo '<tr><td class="td25">&nbsp;</td><td colspan="3"><div><a class="addtr" onclick="addrow(this, 0, 0)" href="###">'.cplang('albumcategory_addcategory').'</a></div></td></tr>';
showtablefooter();
echo '</td></tr>';
/*search*/
showtableheader('', 'notop');
showsubmit('editsubmit');

View File

@ -156,6 +156,7 @@ if(empty($operation)) {
));
showformheader("announce&operation=edit&announceid={$_GET['announceid']}");
showtableheader();
/*search={"announce":"action=announce"}*/
showtitle('announce_edit');
showsetting($lang['subject'], 'newsubject', $announce[subject], 'htmltext');
showsetting('start_time', 'starttimenew', $announce['starttime'], 'calendar', '', 0, '', 1);
@ -167,6 +168,7 @@ if(empty($operation)) {
showsetting('announce_message', 'messagenew', $announce['message'], 'textarea');
showsubmit('editsubmit');
showtablefooter();
/*search*/
showformfooter();
} else {

View File

@ -30,6 +30,7 @@ if($operation == 'add') {
array('add', 'blockxml&operation=add', 1)
));
/*search={"blockxml":"action=blockxml","search":"action=blockxml&operation=add"}*/
showtips('blockxml_tips');
showformheader('blockxml&operation=add');
showtableheader('blockxml_add');
@ -41,6 +42,7 @@ if($operation == 'add') {
showsubmit('addsubmit');
showtablefooter();
showformfooter();
/*search*/
}
} elseif($operation == 'edit' && !empty($_GET['id'])) {

View File

@ -83,9 +83,11 @@ if(!submitcheck('blogsubmit')) {
array('blog_search', !$searchsubmit),
array('nav_blog', $searchsubmit)
));
/*search={"nav_blog":"action=blog","newlist":"action=blog"}*/
if($muticondition) {
showtips('blog_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -96,6 +98,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_blog":"action=blog","search":"action=blog&search=true"}*/
showformheader("blog".(!empty($_GET['search']) ? '&search=true' : ''), '', 'blogforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -119,6 +122,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
if($_GET['blogids']) {

View File

@ -26,6 +26,7 @@ if($operation == 'list') {
array('list', 'blogcategory', 1)
));
/*search={"blogcategory":"action=blogcategory"}*/
showformheader('blogcategory');
showtableheader();
showsetting('system_category_stat', 'settingnew[blogcategorystat]', $_G['setting']['blogcategorystat'], 'radio', '', 1);
@ -41,6 +42,7 @@ if($operation == 'list') {
echo '<tr><td class="td25">&nbsp;</td><td colspan="3"><div><a class="addtr" onclick="addrow(this, 0, 0)" href="###">'.cplang('blogcategory_addcategory').'</a></div></td></tr>';
showtablefooter();
echo '</td></tr>';
/*search*/
showtableheader('', 'notop');
showsubmit('editsubmit');

View File

@ -83,9 +83,11 @@ if(!submitcheck('blogsubmit')) {
array('blog_search', !$searchsubmit),
array('nav_blog_recycle_bin', $searchsubmit)
));
/*search={"nav_blog_recycle_bin":"action=blogrecyclebin","bloglist":"action=blogrecyclebin"}*/
if($muticondition) {
showtips('blog_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -96,6 +98,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_blog":"action=blog","search":"action=blog&search=true"}*/
showformheader("blogrecyclebin".(!empty($_GET['search']) ? '&search=true' : ''), '', 'blogforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -119,6 +122,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
if($_GET['blogids']) {

View File

@ -54,7 +54,9 @@ if($operation == 'set') {
if(!submitcheck('cardsubmit')) {
showformheader('card&operation=set&');
showtableheader();
/*search={"card_config_open":"action=card"}*/
showsetting('card_config_open', 'card_config_open', ($card_setting['open'] ? $card_setting['open'] : 0), 'radio');
/*search*/
showsubmit('cardsubmit');
showtablefooter();
showformfooter();
@ -92,7 +94,9 @@ if($operation == 'set') {
$perpage = max(20, empty($_GET['perpage']) ? 20 : intval($_GET['perpage']));
echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
/*search={"card_manage_tips":"action=card&operation=manage"}*/
showtips('card_manage_tips');
/*search*/
$card_type_option = '';
foreach(C::t('common_card_type')->range(0, 0, 'ASC') as $result) {
$card_type[$result['id']] = $result;
@ -207,7 +211,9 @@ if($operation == 'set') {
}
}
}
/*search={"card_type_tips":"action=card&operation=type"}*/
showtips('card_type_tips');
/*search*/
showformheader('card&operation=type&');
showtableheader();
showtablerow('class="header"', array('', ''), array(
@ -248,6 +254,7 @@ EOT;
echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
showformheader('card&operation=make&');
/*search={"card_make_tips":"admin.php?action=card&operation=make"}*/
showtips('card_make_tips');
showtableheader();
@ -274,6 +281,7 @@ EOT;
showsetting('card_make_cleardateline', 'cleardateline', date("Y-m-d", $_G['timestamp']+31536000), 'calendar', '', 0, '');
showsetting('card_make_description', 'description', $card_log['description'] , 'text');
/*search*/
showsubmit('cardsubmit');
showtablefooter();
showformfooter();

View File

@ -24,7 +24,9 @@ if(empty($operation)) {
array('click_edit_picid', 'click&idtype=picid', $idtype == 'picid' ? 1 : 0),
array('click_edit_aid', 'click&idtype=aid', $idtype == 'aid' ? 1 : 0),
));
/*search={"nav_click":"action=click"}*/
showtips('click_edit_tips');
/*search*/
showformheader('click&idtype='.$idtype);
showtableheader();
showtablerow('', array('class="td25"', 'class="td28"', 'class="td25"', 'class="td25"', '', '', '', 'class="td23"', 'class="td25"'), array(

View File

@ -19,6 +19,7 @@ showsubmenu('collection', array(
array('collection_comment', 'collection&operation=comment', $current['comment']),
array('collection_recommend', 'collection&operation=recommend', $current['recommend'])
));
/*search={"collection":"action=collection"}*/
echo '<script src="static/js/calendar.js"></script>';
if($operation == 'comment') {
@ -257,4 +258,5 @@ function removeNonExistsCollection($collectionrecommend) {
}
return $collectionrecommend;
}
/*search*/
?>

View File

@ -46,6 +46,7 @@ if(empty($operation)) {
array('comment_article_comment', 'comment&operation=article', 0),
array('comment_topic_comment', 'comment&operation=topic', 0)
));
/*search={"nav_comment":"action=comment","comment_comment":"action=comment"}*/
showtips('comment_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
@ -81,6 +82,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
$cids = authcode($cids, 'DECODE');
@ -229,6 +231,7 @@ if($operation == 'article' || $operation == 'topic') {
array('comment_article_comment', 'comment&operation=article', $operation == 'article' ? 1 : 0),
array('comment_topic_comment', 'comment&operation=topic', $operation == 'topic' ? 1 : 0)
));
/*search={"nav_comment":"action=comment","comment_article_comment":"action=comment&operation=article","comment_topic_comment":"action=comment&operation=topic"}*/
showtips('comment_'.$operation.'_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
@ -254,6 +257,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {

View File

@ -462,7 +462,9 @@ if(submitcheck('forumsubmit', 1)) {
shownav('tools', 'nav_updatecounters');
showsubmenu('nav_updatecounters');
/*search={"nav_updatecounters":"action=counter"}*/
showtips('counter_tips');
/*search*/
showformheader('counter');
showtableheader();
showsubtitle(array('', 'counter_amount'));

View File

@ -81,6 +81,7 @@ if($operation == 'export') {
array('nav_db_optimize', 'db&operation=optimize', 0),
array('nav_db_dbcheck', 'db&operation=dbcheck', 0)
));
/*search={"nav_db":"action=db&operation=export","nav_db_export":"action=db&operation=export"}*/
showtips($db_export_tips);
showformheader('db&operation=export&setup=1');
showtableheader();
@ -122,6 +123,7 @@ if($operation == 'export') {
showsubmit('exportsubmit', 'submit', '', 'more_options');
showtablefooter();
showformfooter();
/*search}*/
} else {
@ -412,9 +414,11 @@ if($operation == 'export') {
array('nav_db_optimize', 'db&operation=optimize', 0),
array('nav_db_dbcheck', 'db&operation=dbcheck', 0)
));
/*search={"nav_db":"action=db&operation=export","nav_db_import":"action=db&operation=import"}*/
showtips('db_import_tips');
showtableheader('db_import');
showtablerow('', array('colspan="9" class="tipsblock"'), array(cplang('do_import_option', array('restore_url' => $restore_url))));
/*search*/
showformheader('db&operation=import');
showtitle('db_export_file');
@ -541,6 +545,7 @@ if($operation == 'export') {
array('nav_db_optimize', 'db&operation=optimize', 0),
array('nav_db_dbcheck', 'db&operation=dbcheck', 0)
));
/*search={"nav_db":"action=db&operation=export","nav_db_runquery":"action=db&operation=runquery"}*/
showtips('db_runquery_tips');
showtableheader();
showformheader('db&operation=runquery&option=simple');
@ -558,6 +563,7 @@ if($operation == 'export') {
}
showtablefooter();
/*search*/
} else {
$queries = $_GET['queries'];
@ -600,7 +606,9 @@ if($operation == 'export') {
array('nav_db_optimize', 'db&operation=optimize', 1),
array('nav_db_dbcheck', 'db&operation=dbcheck', 0)
));
/*search={"nav_db":"action=db&operation=export","nav_db_optimize":"action=db&operation=optimize"}*/
showtips('db_optimize_tips');
/*search*/
showformheader('db&operation=optimize');
showtableheader('db_optimize_tables');
showsubtitle(array('', 'db_optimize_table_name', 'type', 'db_optimize_rows', 'db_optimize_data', 'db_optimize_index', 'db_optimize_frag'));

View File

@ -80,7 +80,9 @@ if(submitcheck('editsubmit')) {
} else {
showsubmenu('district');
/*search={"district":"action=district"}*/
showtips('district_tips');
/*search*/
showformheader('district&pid='.$values[0].'&cid='.$values[1].'&did='.$values[2]);
showtableheader();

View File

@ -48,10 +48,12 @@ if(!submitcheck('doingsubmit')) {
array('doing_search', !$searchsubmit),
array('nav_doing', $searchsubmit)
));
/*search={"nav_doing":"action=doing"}*/
if(empty($newlist)) {
$search_tips = 1;
showtips('doing_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -62,6 +64,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_doing":"action=doing","search":"action=doing&search=true"}*/
showformheader("doing".(!empty($_GET['search']) ? '&search=true' : ''), '', 'doingforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -77,6 +80,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {

View File

@ -31,7 +31,9 @@ if($operation == 'app') {
'mobile' => $lang['mobile'],
'default' => $lang['default']
);
/*search={"setting_domain":"action=domain","setting_domain_app":"domain&operation=app"}*/
showtips('setting_domain_app_tips');
/*search*/
showformheader('domain&operation=app');
showtableheader();
@ -91,7 +93,9 @@ if($operation == 'app') {
'channel' => $lang['channel'],
);
if(!submitcheck('submit')) {
/*search={"setting_domain":"action=domain","setting_domain_root":"domain&operation=root"}*/
showtips('setting_domain_root_tips');
/*search*/
showformheader('domain&operation=root');
showtableheader();
showsubtitle(array('name', 'setting_domain_app_domain'));
@ -132,6 +136,7 @@ if($operation == 'app') {
} else {
if(!submitcheck('domainsubmit')) {
/*search={"setting_domain":"action=domain","setting_domain_base":"domain&operation=base"}*/
showtips('setting_domain_base_tips');
showformheader("domain");
showtableheader();
@ -149,6 +154,7 @@ if($operation == 'app') {
showsubmit('domainsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {
$settings = $_GET['settingnew'];

View File

@ -78,6 +78,7 @@ if($operation == 'alipay') {
array('nav_ec_inviteorders', 'ec&operation=inviteorders', 0)
));
/*search={"nav_ec":"action=setting&operation=ec","nav_ec_alipay":"action=ec&operation=alipay"}*/
showtips('ec_alipay_tips');
showformheader('ec&operation=alipay');
@ -92,6 +93,7 @@ if($operation == 'alipay') {
showsetting('ec_alipay_partner', 'settingsnew[ec_partner]', $ec_partner, 'text');
showsetting('ec_alipay_securitycode', 'settingsnew[ec_securitycode]', $ec_securitycodemask, 'text');
showtablefooter();
/*search*/
showtableheader('', 'notop');
showsubmit('alipaysubmit');
@ -191,6 +193,7 @@ EOT;
array('nav_ec_inviteorders', 'ec&operation=inviteorders', 0)
));
/*search={"nav_ec":"action=setting&operation=ec","nav_ec_tenpay":"action=ec&operation=tenpay"}*/
showtips('ec_tenpay_tips');
showformheader('ec&operation=tenpay');
@ -213,6 +216,7 @@ EOT;
'<a href="'.ADMINSCRIPT.'?action=ec&operation=tenpay&checktype=goods" target="_blank">'.$lang['ec_alipay_checklink_goods'].'</a><br />'
);
showtablefooter();
/*search*/
showtableheader('', 'notop');
showsubmit('tenpaysubmit');
@ -271,6 +275,7 @@ EOT;
array('nav_ec_tradelog', 'tradelog', 0),
array('nav_ec_inviteorders', 'ec&operation=inviteorders', 0)
));
/*search={"nav_ec":"action=setting&operation=ec","nav_ec_orders":"action=ec&operation=orders"}*/
showtips('ec_orders_tips');
showtagheader('div', 'ordersearch', !submitcheck('searchsubmit', 1));
showformheader('ec&operation=orders');
@ -291,6 +296,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
if(submitcheck('searchsubmit', 1)) {
@ -404,11 +410,13 @@ EOT;
array('nav_ec_inviteorders', 'ec&operation=inviteorders', 0)
));
/*search={"nav_ec":"action=setting&operation=ec","nav_ec_credit":"action=ec&operation=credit"}*/
showtips('ec_credit_tips');
showformheader('ec&operation=credit');
showtableheader('ec_credit', 'nobottom');
showsetting('ec_credit_maxcreditspermonth', 'ec_creditnew[maxcreditspermonth]', $ec_credit['maxcreditspermonth'], 'text');
showtablefooter('</tbody>');
/*search*/
showtableheader('ec_credit_rank', 'notop fixpadding');
showsubtitle(array('ec_credit_rank', 'ec_credit_between', 'ec_credit_sellericon', 'ec_credit_buyericon'));

View File

@ -43,6 +43,7 @@ if($operation == 'global') {
if(empty($feed['dateline'])) {
$feed['dateline'] = dgmdate($_G['timestamp'], 'Y-m-d H:i');
}
/*search={"nav_feed":"action=feed"}*/
showformheader('feed&operation=global', $feed['uid'] ? '' : 'onsubmit="edit_save();"');
echo '<script type="text/javascript" src="'.STATICURL.'image/editor/editor_function.js"></script>';
echo "<input type=\"hidden\" name=\"feednew[feedid]\" value=\"$feed[feedid]\" /><input type=\"hidden\" name=\"feednew[feeduid]\" value=\"$feed[uid]\" />";
@ -89,6 +90,7 @@ EOF;
showsubmit('globalsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {
$feednew = getgpc('feednew');
$feedid = intval($feednew['feedid']);

View File

@ -618,6 +618,7 @@ var rowtypedata = [
if(count($mforum) == 1 && $mforum[0]['type'] == 'group') {
$mforum[0]['extra'] = dunserialize($mforum[0]['extra']);
/*search={"forums_admin":"action=forums","forums_edit":"action=forums&operation=edit"}*/
showtableheader();
showsetting('forums_edit_basic_cat_name', 'namenew', $mforum[0]['name'], 'text');
showsetting('forums_edit_basic_cat_name_color', 'extranew[namecolor]', $mforum[0]['extra']['namecolor'], 'color');
@ -639,6 +640,7 @@ var rowtypedata = [
showsetting('forums_edit_basic_seodescription', 'seodescriptionnew', dhtmlspecialchars($mforum[0]['seodescription']), 'textarea');
showsubmit('detailsubmit');
showtablefooter();
/*search*/
} else {
@ -756,6 +758,7 @@ var rowtypedata = [
$_G['multisetting'] = $multiset ? 1 : 0;
showmultititle();
/*search={"forums_admin":"action=forums","forums_edit_basic":"action=forums&operation=edit&anchor=basic"}*/
showtagheader('div', 'basic', $anchor == 'basic');
if(!$multiset) {
showtips('forums_edit_tips');
@ -811,7 +814,9 @@ var rowtypedata = [
showsetting('forums_edit_basic_seodescription', 'seodescriptionnew', dhtmlspecialchars($forum['seodescription']), 'textarea');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"forums_admin":"action=forums","forums_edit_extend":"action=forums&operation=edit&anchor=extend"}*/
showtagheader('div', 'extend', $anchor == 'extend');
if(!$multiset) {
showtips('forums_edit_tips');
@ -887,7 +892,9 @@ var rowtypedata = [
showsetting('forums_edit_extend_recommend_dateline', 'modrecommendnew[dateline]', $forum['modrecommend']['dateline'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"forums_admin":"action=forums","forums_edit_posts":"action=forums&operation=edit&anchor=posts"}*/
showtagheader('div', 'posts', $anchor == 'posts');
if(!$multiset) {
showtips('forums_edit_tips');
@ -942,8 +949,10 @@ var rowtypedata = [
showtablefooter();
showtagfooter('div');
/*search*/
if(!$multiset) {
/*search={"forums_admin":"action=forums","forums_edit_attachtype":"action=forums&operation=edit&anchor=attachtype"}*/
showtagheader('div', 'attachtype', $anchor == 'attachtype');
showtips('forums_edit_attachtype_tips');
showtableheader();
@ -952,7 +961,9 @@ var rowtypedata = [
echo '<tr><td></td><td colspan="2"><div><a href="###" onclick="addrow(this, 1)" class="addtr">'.$lang['misc_attachtype_add'].'</a></div></tr>';
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"forums_admin":"action=forums","forums_edit_credits_policy":"action=forums&operation=edit&anchor=credits"}*/
showtagheader('div', 'credits', $anchor == 'credits');
if(!$multiset) {
showtips('forums_edit_tips');
@ -1011,6 +1022,7 @@ var rowtypedata = [
</script>
EOF;
showtagfooter('div');
/*search*/
}
if($allowthreadtypes && !$multiset) {
@ -1036,6 +1048,7 @@ EOF;
];
</script>
EOT;
/*search={"forums_admin":"action=forums","forums_edit_threadtypes_config":"action=forums&operation=edit&anchor=threadtypes"}*/
showtagheader('div', 'threadtypes', $anchor == 'threadtypes');
if(!$multiset) {
showtips('forums_edit_tips');
@ -1070,7 +1083,9 @@ EOT;
showtablefooter();
showtagfooter('div');
showtagfooter('div');
/*search*/
/*search={"forums_admin":"action=forums","forums_edit_threadsorts":"action=forums&operation=edit&anchor=threadsorts"}*/
showtagheader('div', 'threadsorts', $anchor == 'threadsorts');
if(!$multiset) {
showtips('forums_edit_tips');
@ -1094,8 +1109,10 @@ EOT;
showtablefooter();
showtagfooter('div');
showtagfooter('div');
/*search*/
}
/*search={"forums_admin":"action=forums","forums_edit_perm_forum":"action=forums&operation=edit&anchor=perm"}*/
showtagheader('div', 'perm', $anchor == 'perm');
if(!$multiset) {
showtips('forums_edit_tips');
@ -1252,6 +1269,7 @@ EOT;
showsetting('forums_edit_perm_spview', array('spviewpermnew', $spviewgroup), $forum['spviewperm'], 'mcheckbox');
showsetting('forums_edit_perm_formulapermmessage', 'formulapermmessagenew', $forum['formulapermmessage'], 'textarea');
showtablefooter();
/*search*/
}
if($pluginsetting) {

View File

@ -199,11 +199,13 @@ if($operation == 'perm') {
$members[$member['uid']] = $member;
}
}
/*search={"menu_founder_perm":"action=founder"}*/
if(!$founderexists) {
showtips(cplang('home_security_nofounder').cplang('home_security_founder'));
} else {
showtips('home_security_founder');
}
/*search*/
showformheader('founder&operation=perm&do=member');
showtableheader();
showsubtitle(array('', 'founder_username', 'founder_usergname', ''));

View File

@ -35,6 +35,7 @@ if($operation == 'setting') {
if(!submitcheck('updategroupsetting')) {
shownav('group', 'nav_group_setting');
showsubmenu('nav_group_setting');
/*search={"nav_group_setting":"action=group&operation=setting"}*/
showformheader('group&operation=setting');
showtableheader();
showtitle('groups_setting_basic');
@ -54,6 +55,7 @@ if($operation == 'setting') {
showsubmit('updategroupsetting');
showtablefooter();
showformfooter();
/*search*/
} else {
require_once libfile('function/group');
@ -641,6 +643,7 @@ var rowtypedata = [
shownav('group', 'nav_group_userperm');
$varname = array('newgroup_userperm', array(), 'isfloat');
showsubmenu(cplang('nav_group_userperm').' - '.cplang('group_userperm_moderator'));
/*search={"newgroup_userperm":"action=group&operation=userperm"}*/
showformheader("group&operation=userperm&id=$id");
showtableheader();
$varname[1] = array(
@ -694,6 +697,7 @@ var rowtypedata = [
showsubmit('permsubmit', 'submit');
showtablefooter();
showformfooter();
/*search*/
} else {
$default_perm = array('allowstickthread' => 0, 'allowbumpthread' => 0, 'allowhighlightthread' => 0, 'allowlivethread' => 0, 'allowstampthread' => 0, 'allowclosethread' => 0, 'allowmergethread' => 0, 'allowsplitthread' => 0, 'allowrepairthread' => 0, 'allowrefund' => 0, 'alloweditpoll' => 0, 'allowremovereward' => 0, 'alloweditactivity' => 0, 'allowedittrade' => 0, 'allowdigestthread' => 0, 'alloweditpost' => 0, 'allowwarnpost' => 0, 'allowbanpost' => 0, 'allowdelpost' => 0, 'allowupbanner' => 0, 'disablepostctrl' => 0, 'allowviewip' => 0);
$_GET['newgroup_userperm'] = array_merge($default_perm, $_GET['newgroup_userperm']);
@ -737,7 +741,9 @@ var rowtypedata = [
EOT;
shownav('group', 'nav_group_level');
showsubmenu('nav_group_level');
/*search={"nav_group_level":"action=group&operation=level"}*/
showtips('group_level_tips');
/*search*/
showformheader('group&operation=level');
showtableheader('group_level', 'fixpadding', 'id="grouplevel"');
@ -1092,6 +1098,7 @@ function searchgroups($submit) {
$dayselect .= "<option value=\"$d\" ".($birthday == $d ? 'selected' : '').">$d</option>\n";
}
/*search={"nav_group_manage":"action=group&operation=manage"}*/
showtagheader('div', 'searchgroups', !$submit);
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
showformheader("group&operation=manage");
@ -1112,6 +1119,7 @@ function searchgroups($submit) {
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
}
function countgroups() {

View File

@ -23,6 +23,7 @@ if($operation == 'admin') {
array('admin', 'magics&operation=admin', 1),
array('nav_magics_confer', 'members&operation=confermagic', 0)
));
/*search={"nav_magics":"action=magics"}*/
showtips('magics_tips');
$settings = C::t('common_setting')->fetch_all(array('magicstatus', 'magicdiscount'));
@ -31,6 +32,7 @@ if($operation == 'admin') {
showsetting('magics_config_open', 'settingsnew[magicstatus]', $settings['magicstatus'], 'radio');
showsetting('magics_config_discount', 'settingsnew[magicdiscount]', $settings['magicdiscount'], 'text');
showtablefooter();
/*search*/
showtableheader('magics_list', 'fixpadding');
$newmagics = getmagics();

View File

@ -49,6 +49,7 @@ if(!in_array($operation, array('aids', 'catids', 'topicids'))) {
showsubmenu('html', $_nav, '');
}
if($operation == 'all') {
/*search={"¨¦¨²3¨¦¨¨?2?":"action=makehtml&operation=all"}*/
showtips('makehtml_tips_all');
showformheader('makehtml&operation=all');
@ -136,6 +137,7 @@ function make_html_article(starttime) {
EOT;
showtablefooter();
showformfooter();
/*search*/
} elseif($operation == 'index') {
showtips('makehtml_tips_index');
@ -414,6 +416,7 @@ EOT;
} elseif ($operation == 'makehtmlsetting') {
if(!submitcheck('makehtmlsetting')) {
/*search={"html":"action=makehtml&operation=makehtmlsetting","setting_functions_makehtml":"action=makehtml&operation=makehtmlsetting"}*/
$setting = $_G['setting'];
showformheader("makehtml&operation=makehtmlsetting");
showtableheader('', 'nobottom', 'id="makehtml"'.($_GET['operation'] != 'makehtmlsetting' ? ' style="display: none"' : ''));
@ -433,6 +436,7 @@ EOT;
showtablefooter();
showsubmit('makehtmlsetting', 'submit');
showformfooter();
/*search*/
} else {
$settingnew = $_GET['settingnew'];
if(isset($settingnew['makehtml'])) {
@ -490,6 +494,7 @@ EOT;
cpmsg('admincp_makehtml_cleanhtml_error', 'action=makehtml&operation=makehtmlsetting', 'error');
} else {
if(!submitcheck('cleanhtml')) {
/*search={"??¨¤¨ªHTML":"action=makehtml&operation=htmlclean"}*/
showformheader("makehtml&operation=cleanhtml");
showtableheader();
@ -498,6 +503,7 @@ EOT;
showtablefooter();
showsubmit('cleanhtml', 'submit');
showformfooter();
/*search*/
} else {
if(isset($_GET['cleandata'])) {
$cleandata = $_GET['cleandata'];

View File

@ -22,7 +22,9 @@ if(!$operation) {
array('nav_medals_confer', 'members&operation=confermedal', 0),
array('nav_medals_mod', 'medals&operation=mod', 0)
));
/*search={"nav_medals":"action=medals"}*/
showtips('medals_tips');
/*search*/
showformheader('medals');
showtableheader('medals_list', 'fixpadding');
showsubtitle(array('', 'display_order', 'available', 'name', 'description', 'medals_image', 'medals_type', ''));

View File

@ -205,6 +205,7 @@ EOF;
if(empty($_GET['uid']) && empty($_GET['username']) && empty($_GET['ip'])) {
/*search={"nav_repeat":"action=members&operation=repeat"}*/
shownav('user', 'nav_members');
showsubmenu('nav_members', array(
array('search', 'members&operation=search', 0),
@ -220,6 +221,7 @@ EOF;
showsubmit('submit', 'submit');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -919,6 +921,7 @@ EOF;
($groupselect['special'] ? '<optgroup label="'.$lang['usergroups_special'].'">'.$groupselect['special'].'</optgroup>' : '').
($groupselect['specialadmin'] ? '<optgroup label="'.$lang['usergroups_specialadmin'].'">'.$groupselect['specialadmin'].'</optgroup>' : '').
'<optgroup label="'.$lang['usergroups_system'].'">'.$groupselect['system'].'</optgroup>';
/*search={"nav_members_add":"action=members&operation=add"}*/
shownav('user', 'nav_members_add');
showsubmenu('members_add');
showformheader('members&operation=add');
@ -931,6 +934,7 @@ EOF;
showsubmit('addsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1061,6 +1065,7 @@ EOF;
$groups['member'] = '<option value="'.$group['groupid'].'" gtype="member">'.$group['grouptitle'].'</option>';
}
/*search={"members_group":"action=members&operation=group"}*/
shownav('user', 'members_group');
showsubmenu('members_group_member', array(), '', array('username' => $member['username']));
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
@ -1087,6 +1092,7 @@ EOF;
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1229,6 +1235,7 @@ EOF;
EOT;
shownav('user', 'members_credit');
showsubmenu('members_credit');
/*search={"members_credit":"action=members&operation=credit"}*/
showtips('members_credit_tips');
showformheader("members&operation=credit&uid={$_GET['uid']}");
showtableheader('<em class="right"><a href="'.ADMINSCRIPT.'?action=logs&operation=credit&srch_uid='.$_GET['uid'].'&frame=yes" target="_blank">'.cplang('members_credit_logs').'</a></em>'.cplang('members_credit').' - '.$member['username'].'('.$member['grouptitle'].')', 'nobottom');
@ -1241,6 +1248,7 @@ EOT;
showsubmit('creditsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1754,6 +1762,7 @@ EOF;
shownav('user', 'members_access_edit');
showsubmenu('members_access_edit');
/*search={"members_access_edit":"action=members&operation=access"}*/
showtips('members_access_tips');
showtableheader(cplang('members_access_now').' - '.$member['username'], 'nobottom fixpadding');
showsubtitle(array('forum', 'members_access_view', 'members_access_post', 'members_access_reply', 'members_access_getattach', 'members_access_getimage', 'members_access_postattach', 'members_access_postimage', 'members_access_adminuser', 'members_access_dateline'));
@ -1807,6 +1816,7 @@ EOF;
showsubmit('accesssubmit', 'submit');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1926,6 +1936,7 @@ EOF;
$member['signature'] = html2bbcode($member['sightml']);
shownav('user', 'members_edit');
/*search={"members_edit":"action=members&operation=edit"}*/
showsubmenu("$lang[members_edit] - $member[username]", array(
array('connect_member_info', 'members&operation=edit&uid='.$uid, 1),
!empty($_G['setting']['connect']['allow']) ? array('connect_member_bindlog', 'members&operation=edit&do=bindlog&uid='.$uid, 0) : array(),
@ -1982,6 +1993,7 @@ EOF;
showsubmit('editsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -2755,6 +2767,7 @@ function showsearchform($operation = '') {
$usertagselect .= "<option value=\"$row[tagid]\" ".(in_array($row['tagid'], $tagid) ? 'selected' : '').">$row[tagname]</option>\n";
}
/*search={"nav_members":"action=members&operation=search"}*/
showtagheader('div', 'searchmembers', !$_GET['submit']);
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
echo '<style type="text/css">#residedistrictbox select, #birthdistrictbox select{width: auto;}</style>';
@ -2909,6 +2922,7 @@ function showsearchform($operation = '') {
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
}
function searchcondition($condition) {

View File

@ -25,7 +25,9 @@ if(!empty($_G['cache']['membersplitstep'])) {
if($operation == 'check') {
shownav('founder', 'nav_membersplit');
showsubmenu('membersplit');
/*search={"nav_membersplit":"action=membersplit","nav_membersplit":"action=membersplit&operation=check"}*/
showtips('membersplit_check_tips');
/*search*/
showformheader('membersplit&operation=manage');
showtableheader('membersplit_table_orig');
$membercount = $_G['cache']['userstats']['totalmembers'];
@ -53,7 +55,9 @@ if($operation == 'check') {
shownav('founder', 'nav_membersplit');
if(!submitcheck('membersplit_split_submit', 1)) {
showsubmenu('membersplit');
/*search={"nav_membersplit":"action=membersplit","nav_membersplit":"action=membersplit&operation=check"}*/
showtips('membersplit_tips');
/*search*/
showformheader('membersplit&operation=manage');
showtableheader('membersplit_table_orig');

View File

@ -96,7 +96,9 @@ var rowtypedata = [
shownav('extended', 'misc_link');
showsubmenu('nav_misc_links');
/*search={"misc_link":"action=misc&operation=link"}*/
showtips('misc_link_tips');
/*search*/
showformheader('misc&operation=link');
showtableheader();
showsubtitle(array('', 'display_order', 'misc_link_edit_name', 'misc_link_edit_url', 'misc_link_edit_description', 'misc_link_edit_logo', 'misc_link_group1', 'misc_link_group2', 'misc_link_group3','misc_link_group4'));
@ -192,7 +194,9 @@ var rowtypedata = [
shownav('extended', 'misc_relatedlink');
showsubmenu('nav_misc_relatedlink');
/*search={"misc_relatedlink":"action=misc&operation=relatedlink"}*/
showtips('misc_relatedlink_tips');
/*search*/
$tdstyle = array('width="50"', 'width="120"', 'width="330"', 'width="50"', 'width="80"', 'width="80"', '');
showformheader('misc&operation=relatedlink');
showtableheader();
@ -272,6 +276,7 @@ var rowtypedata = [
array('setting_editor_code', 'misc&operation=bbcode', 1),
));
/*search={"setting_editor":"action=setting&operation=editor","setting_editor_code":"action=setting&operation=bbcode"}*/
showtips('misc_bbcode_edit_tips');
showformheader('misc&operation=bbcode');
showtableheader('', 'fixpadding');
@ -301,6 +306,7 @@ var rowtypedata = [
showsubmit('bbcodessubmit', 'submit', 'del');
showtablefooter();
showformfooter();
/*search*/
} elseif(submitcheck('bbcodessubmit')) {
@ -573,9 +579,11 @@ var rowtypedata = [
array('misc_censor_batch_add', 'import', $anchor == 'import'),
array('misc_censor_wordtype_edit', 'wordtype', $anchor == 'wordtype'),
));
/*search={"nav_posting_censor":"action=misc&operation=censor"}*/
showtips('misc_censor_tips', 'list_tips', $anchor == 'list');
showtips('misc_censor_batch_add_tips', 'import_tips', $anchor == 'import');
showtips('misc_censor_wordtype_tips', 'wordtype_tips', $anchor == 'wordtype');
/*search*/
showtagheader('div', 'list', $anchor == 'list');
showformheader("misc&operation=censor&page=$page", '', 'keywordsearch');
@ -774,7 +782,9 @@ EOT;
));
showtagheader('div', 'list', $anchor == 'list');
/*search={"nav_thread_stamp":"action=misc&operation=stamp","misc_stamp_thread":"action=misc&operation=stamp&anchor=list"}*/
showtips('misc_stamp_listtips');
/*search*/
showformheader('misc&operation=stamp');
showhiddenfields(array('anchor' => 'list'));
showtableheader();
@ -821,7 +831,9 @@ EOT;
showtagfooter('div');
showtagheader('div', 'llist', $anchor == 'llist');
/*search={"nav_thread_stamp":"action=misc&operation=stamp","misc_stamp_list":"action=misc&operation=stamp&anchor=llist"}*/
showtips('misc_stamp_listtips');
/*search*/
showformheader('misc&operation=stamp&type=list');
showhiddenfields(array('anchor' => 'llist'));
showtableheader();
@ -845,6 +857,7 @@ EOT;
showtagheader('div', 'add', $anchor == 'add');
showformheader('misc&operation=stamp');
/*search={"nav_thread_stamp":"action=misc&operation=stamp","add":"action=misc&operation=stamp&anchor=add"}*/
showtips('misc_stamp_addtips');
showtableheader();
showsubtitle(array('add', 'misc_stamp_type', 'misc_stamp_id', 'misc_stamp_imagename', 'smilies_edit_image', 'smilies_edit_filename'));
@ -972,7 +985,9 @@ var rowtypedata = [
shownav('global', 'nav_posting_attachtype');
showsubmenu('nav_posting_attachtype');
/*search={"nav_posting_attachtype":"action=misc&operation=attachtype"}*/
showtips('misc_attachtype_tips');
/*search*/
showformheader('misc&operation=attachtype');
showtableheader();
showtablerow('class="partition"', array('class="td25"', 'class="td24"'), array('', cplang('misc_attachtype_ext'), cplang('misc_attachtype_maxsize')));
@ -1025,7 +1040,9 @@ var rowtypedata = [
shownav('tools', 'misc_cron');
showsubmenu('nav_misc_cron');
/*search={"misc_cron":"action=misc&operation=cron"}*/
showtips('misc_cron_tips');
/*search*/
showformheader('misc&operation=cron');
showtableheader('', 'fixpadding');
showsubtitle(array('', 'name', 'available', 'type', 'time', 'misc_cron_last_run', 'misc_cron_next_run', ''));
@ -1296,6 +1313,7 @@ var rowtypedata = [
array('admin', 'misc&operation=focus', 1),
array('add', 'misc&operation=focus&do=add')
));
/*search={"misc_focus":"action=misc&operation=focus","admin":"action=misc&operation=focus"}*/
showtips('misc_focus_tips');
showformheader('misc&operation=focus');
showtableheader('admin', 'fixpadding');
@ -1314,6 +1332,7 @@ var rowtypedata = [
showsubmit('focussubmit', 'submit', 'del');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1350,6 +1369,7 @@ var rowtypedata = [
array('admin', 'misc&operation=focus', 0),
array('add', 'misc&operation=focus&do=add', 1)
));
/*search={"misc_focus":"action=misc&operation=focus","add":"action=misc&operation=focus&do=add"}*/
showformheader('misc&operation=focus&do=add');
showtableheader('misc_focus_handadd', 'fixpadding');
showsetting('misc_focus_handurl', 'focus_url', '', 'text');
@ -1361,6 +1381,7 @@ var rowtypedata = [
showsubmit('addsubmit', 'submit', '', '');
showtablefooter();
showformfooter();
/*search*/
} else {
@ -1457,6 +1478,7 @@ var rowtypedata = [
array('admin', 'misc&operation=focus', 0),
array('add', 'misc&operation=focus&do=add', 0)
));
/*search={"misc_focus":"action=misc&operation=focus","config":"action=misc&operation=focus&do=config"}*/
showformheader('misc&operation=focus&do=config');
showtableheader('config', 'fixpadding');
showsetting('misc_focus_area_title', 'focus_title', empty($focus['title']) ? cplang('misc_focus') : $focus['title'], 'text');
@ -1464,6 +1486,7 @@ var rowtypedata = [
showsubmit('confsubmit', 'submit');
showtablefooter();
showformfooter();
/*search*/
} else {

View File

@ -70,9 +70,11 @@ if(!submitcheck('picsubmit')) {
array('pic_search', !$searchsubmit),
array('nav_pic', $searchsubmit)
));
/*search={"nav_pic":"action=pic"}*/
if($muticondition) {
showtips('pic_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -83,6 +85,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_pic":"action=pic","search":"action=pic&search=true"}*/
showformheader("pic".(!empty($_GET['search']) ? '&search=true' : ''), '', 'picforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -102,6 +105,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
$picids = authcode($picids, 'DECODE');

View File

@ -50,10 +50,12 @@ if(!submitcheck('postcommentsubmit')) {
array('postcomment_search', !$searchsubmit),
array('nav_postcomment', $searchsubmit)
));
/*search={"nav_postcomment":"action=postcomment"}*/
if(empty($newlist)) {
$search_tips = 1;
showtips('postcomment_tips');
}
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -64,6 +66,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_postcomment":"action=postcomment","search":"action=postcomment&search=true"}*/
showformheader("postcomment".(!empty($_GET['search']) ? '&search=true' : ''), '', 'postcommentforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -80,6 +83,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
$cids = authcode($cids, 'DECODE');

View File

@ -36,7 +36,9 @@ if($operation == 'manage') {
if(!submitcheck('postsplit_manage')) {
showsubmenu('nav_postsplit_manage');
/*search={"nav_postsplit":"action=postsplit&operation=manage","nav_postsplit_manage":"action=postsplit&operation=manage"}*/
showtips('postsplit_manage_tips');
/*search*/
showformheader('postsplit&operation=manage');
showtableheader();
@ -99,7 +101,9 @@ if($operation == 'manage') {
if(!submitcheck('splitsubmit')) {
showsubmenu('nav_postsplit_manage');
/*search={"nav_postsplit":"action=postsplit&operation=manage","nav_postsplit_manage":"action=postsplit&operation=manage"}*/
showtips('postsplit_manage_tips');
/*search*/
showformheader('postsplit&operation=split&tableid='.$tableid);
showtableheader();
showsetting('postsplit_from', '', '', getposttable($tableid, true).(!empty($posttable_info[$tableid]['memo']) ? '('.$posttable_info[$tableid]['memo'].')' : ''));

View File

@ -57,6 +57,7 @@ if(!submitcheck('prunesubmit')) {
array('prune_search', !$searchsubmit),
array('nav_prune', $searchsubmit)
));
/*search={"nav_prune":"action=prune"}*/
showtips('prune_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
@ -94,6 +95,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {

View File

@ -132,6 +132,7 @@ if(!$operation) {
array('search', 'recyclebin&operation=search', 1),
array('clean', 'recyclebin&operation=clean', 0)
));
/*search={"nav_recyclebin":"action=recyclebin","search":"action=recyclebin&operation=search"}*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -160,6 +161,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
if(submitcheck('searchsubmit')) {
@ -279,12 +281,14 @@ EOT;
array('search', 'recyclebin&operation=search', 0),
array('clean', 'recyclebin&operation=clean', 1)
));
/*search={"nav_recyclebin":"action=recyclebin","clean":"action=recyclebin&operation=clean"}*/
showformheader('recyclebin&operation=clean');
showtableheader('recyclebin_clean');
showsetting('recyclebin_clean_days', 'days', '30', 'text');
showsubmit('rbsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {

View File

@ -100,6 +100,7 @@ if(!$operation) {
array('search', 'recyclebinpost&operation=search', 1),
array('clean', 'recyclebinpost&operation=clean', 0)
));
/*search={"nav_recyclebinpost":"action=recyclebinpost","search":"action=recyclebinpost&operation=search"}*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -125,6 +126,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
if(submitcheck('searchsubmit')) {
@ -162,12 +164,14 @@ EOT;
array('search', 'recyclebinpost&operation=search', 0),
array('clean', 'recyclebinpost&operation=clean', 1)
));
/*search={"nav_recyclebinpost":"action=recyclebinpost","clean":"action=recyclebinpost&operation=clean"}*/
showformheader('recyclebinpost&operation=clean');
showtableheader('recyclebinpost_clean');
showsetting('recyclebinpost_clean_days', 'days', '30', 'text');
showsubmit('cleanrbsubmit');
showtablefooter();
showformfooter();
/*search*/
} else {

View File

@ -56,7 +56,9 @@ if($operation == 'newreport') {
array('report_resolved', 'report&operation=resolved', 0),
array('report_receiveuser', 'report&operation=receiveuser', 0)
));
/*search={"nav_report":"action=report"}*/
showtips('report_tips');
/*search*/
showformheader('report&operation=newreport');
showtableheader();
$curcredits = $_G['setting']['creditstransextra'][8] ? $_G['setting']['creditstransextra'][8] : $_G['setting']['creditstrans'];

View File

@ -197,6 +197,7 @@ if(!submitcheck('settingsubmit')) {
if($operation == 'basic') {
/*search={"setting_basic":"action=setting&operation=basic"}*/
showtableheader('');
showsetting('setting_basic_bbname', 'settingnew[bbname]', $setting['bbname'], 'text');
showsetting('setting_basic_sitename', 'settingnew[sitename]', $setting['sitename'], 'text');
@ -213,18 +214,22 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_basic_closedreason', 'settingnew[closedreason]', $setting['closedreason'], 'textarea');
showsetting('setting_basic_bbclosed_activation', 'settingnew[closedallowactivation]', $setting['closedallowactivation'], 'radio');
showtagfooter('tbody');
/*search*/
} elseif($operation == 'follow') {
require_once libfile('function/forumlist');
/*search={"setting_follow":"action=setting&operation=follow","setting_follow_base":"action=setting&operation=follow&anchor=base"}*/
showtableheader('', 'nobottom', 'id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : ''));
showsetting('setting_follow_base_default_follow_retain_day', 'settingnew[followretainday]', $setting['followretainday'], 'text');
showsetting('setting_follow_base_default_view_profile', 'settingnew[allowquickviewprofile]', $setting['allowquickviewprofile'], 'radio');
showtablefooter();
/*search*/
} elseif($operation == 'home') {
require_once libfile('function/forumlist');
/*search={"setting_home":"action=setting&operation=home","setting_home_base":"action=setting&operation=home&anchor=base"}*/
showtableheader('', 'nobottom', 'id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : ''));
showsetting('setting_home_base_feedday', 'settingnew[feedday]', $setting['feedday'], 'text');
showsetting('setting_home_base_feedmaxnum', 'settingnew[feedmaxnum]', $setting['feedmaxnum'], 'text');
@ -259,10 +264,12 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_home_base_default_doing', 'settingnew[defaultdoing]', $setting['defaultdoing'], 'textarea');
showtablefooter();
/*search*/
if(isset($setting['privacy'])) {
$setting['privacy'] = dunserialize($setting['privacy']);
}
/*search={"setting_home":"action=setting&operation=home","setting_home_privacy":"action=setting&operation=home&anchor=privacy"}*/
showtableheader('', 'nobottom', 'id="privacy"'.($_GET['anchor'] != 'privacy' ? ' style="display: none"' : ''));
showtitle('setting_home_privacy_new_user');
showsetting('setting_home_privacy_view_index', array('settingnew[privacy][view][index]', array(
@ -329,6 +336,7 @@ if(!submitcheck('settingsubmit')) {
array('newreply', $lang['setting_home_privacy_default_feed_newreply'], '1'),
)), $setting['privacy']['feed'], 'omcheckbox');
showtablefooter();
/*search*/
showtableheader();
} elseif($operation == 'profile') {
@ -407,6 +415,7 @@ if(!submitcheck('settingsubmit')) {
$taskarray[] = array($task['taskid'], $task['name']);
}
/*search={"setting_access":"action=setting&operation=access","setting_access_register":"action=setting&operation=access&anchor=register"}*/
showtableheader('', 'nobottom', 'id="register"'.($_GET['anchor'] != 'register' ? ' style="display: none"' : ''));
$regstatus = array();
if($setting['regstatus'] == 1 || $setting['regstatus'] == 3) {
@ -492,13 +501,16 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_access_register_bbrulestxt', 'settingnew[bbrulestxt]', $setting['bbrulestxt'], 'textarea');
showtagfooter('tbody');
showtablefooter();
/*search*/
/*search={"setting_access":"action=setting&operation=access","setting_access_access":"action=setting&operation=access&anchor=access"}*/
showtableheader('', 'nobottom', 'id="access"'.($_GET['anchor'] != 'access' ? ' style="display: none"' : ''));
showsetting('setting_access_access_newbiespan', 'settingnew[newbiespan]', $setting['newbiespan'], 'text');
showsetting('setting_access_access_ipaccess', 'settingnew[ipaccess]', $setting['ipaccess'], 'textarea');
showsetting('setting_access_access_adminipaccess', 'settingnew[adminipaccess]', $setting['adminipaccess'], 'textarea');
showsetting('setting_access_access_domainwhitelist', 'settingnew[domainwhitelist]', '', '<textarea class="tarea" cols="50" id="settingnew[domainwhitelist]" name="settingnew[domainwhitelist]" onkeydown="textareakey(this, event)" onkeyup="textareasize(this, 0)" ondblclick="textareasize(this, 1)" rows="6">'.$setting['domainwhitelist'].'</textarea><br><input class="checkbox" type="checkbox" value="1" name="settingnew[domainwhitelist_affectimg]" '.($setting['domainwhitelist_affectimg'] ? 'checked' : '').'>'.cplang('setting_access_access_domainwhitelist_affectimg'));
showtablefooter();
/*search*/
showtableheader('', 'notop');
showsubmit('settingsubmit');
@ -525,6 +537,7 @@ if(!submitcheck('settingsubmit')) {
$setting['guestviewthumb'] = dunserialize($setting['guestviewthumb']);
$setting['guesttipsinthread'] = dunserialize($setting['guesttipsinthread']);
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_global":"action=setting&operation=styles&anchor=global"}*/
showtips('setting_tips', 'global_tips', $_GET['anchor'] == 'global');
showtableheader('setting_styles_global', 'nobottom', 'id="global"'.($_GET['anchor'] != 'global' ? ' style="display: none"' : ''));
showsetting('setting_styles_global_home_style', array('settingnew[homestyle]', array(
@ -553,7 +566,9 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_styles_global_showusercard', 'settingnew[showusercard]', $setting['showusercard'], 'radio');
showsetting('setting_styles_global_anonymoustext', 'settingnew[anonymoustext]', $setting['anonymoustext'], 'text');
showtablefooter();
/*search*/
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_index":"action=setting&operation=styles&anchor=index"}*/
showtableheader('setting_styles_index', 'nobottom', 'id="index"'.($_GET['anchor'] != 'index' ? ' style="display: none"' : ''));
showsetting('setting_styles_index_indexhot_status', 'settingnew[indexhot][status]', $setting['indexhot']['status'], 'radio', 0, 1);
showsetting('setting_styles_index_indexhot_limit', 'settingnew[indexhot][limit]', $setting['indexhot']['limit'], 'text');
@ -576,7 +591,9 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_styles_index_showfollowcollection', 'settingnew[showfollowcollection]', $setting['showfollowcollection'], 'text');
showsetting('setting_styles_index_disfixednv', 'settingnew[disfixednv_forumindex]', !empty($setting['disfixednv_forumindex']), 'radio');
showtablefooter();
/*search*/
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_forumdisplay":"action=setting&operation=styles&anchor=forumdisplay"}*/
showtips('setting_tips', 'forumdisplay_tips', $_GET['anchor'] == 'forumdisplay');
showtableheader('setting_styles_forumdisplay', 'nobottom', 'id="forumdisplay"'.($_GET['anchor'] != 'forumdisplay' ? ' style="display: none"' : ''));
showsetting('setting_styles_forumdisplay_tpp', 'settingnew[topicperpage]', $setting['topicperpage'], 'text');
@ -604,7 +621,9 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_styles_forumdisplay_disfixednv_forumdisplay', 'settingnew[disfixednv_forumdisplay]', !empty($setting['disfixednv_forumdisplay']), 'radio');
showsetting('setting_styles_forumdisplay_threadpreview', 'settingnew[forumdisplaythreadpreview]', !empty($setting['forumdisplaythreadpreview']), 'radio');
showtablefooter();
/*search*/
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_viewthread":"action=setting&operation=styles&anchor=viewthread"}*/
showtagheader('div', 'viewthread', $_GET['anchor'] == 'viewthread');
showtableheader('nav_setting_viewthread', 'nobottom');
showsetting('setting_styles_viewthread_ppp', 'settingnew[postperpage]', $setting['postperpage'], 'text');
@ -667,7 +686,9 @@ if(!submitcheck('settingsubmit')) {
$setting['msgforward'] = !empty($setting['msgforward']) ? dunserialize($setting['msgforward']) : array();
$setting['msgforward']['messages'] = !empty($setting['msgforward']['messages']) ? implode("\n", $setting['msgforward']['messages']) : '';
showtablefooter();
/*search*/
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_threadprofile":"action=setting&operation=styles&anchor=threadprofile"}*/
loadcache('usergroups');
$threadprofiles = C::t('forum_threadprofile')->fetch_all();
$threadprofile_group = C::t('forum_threadprofile_group')->fetch_all();
@ -718,6 +739,7 @@ if(!submitcheck('settingsubmit')) {
echo '</td></tr></table>';
showtagfooter('div');
/*search*/
showtips('members_profile_numbercard_tips', 'numbercard_tips', $_GET['anchor'] == 'numbercard');
showtableheader('members_profile_numbercard', 'nobottom', 'id="numbercard"'.($_GET['anchor'] != 'numbercard' ? ' style="display: none"' : ''));
@ -740,13 +762,16 @@ if(!submitcheck('settingsubmit')) {
}
showtablefooter();
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_refresh":"action=setting&operation=styles&anchor=refresh"}*/
showtableheader('setting_styles_refresh', 'nobottom', 'id="refresh"'.($_GET['anchor'] != 'refresh' ? ' style="display: none"' : ''));
showsetting('setting_styles_refresh_refreshtime', 'settingnew[msgforward][refreshtime]', $setting['msgforward']['refreshtime'], 'text');
showsetting('setting_styles_refresh_quick', 'settingnew[msgforward][quick]', $setting['msgforward']['quick'], 'radio', '', 1);
showsetting('setting_styles_refresh_messages', 'settingnew[msgforward][messages]', $setting['msgforward']['messages'], 'textarea');
showtagfooter('tbody');
showtablefooter();
/*search*/
/*search={"setting_styles":"action=setting&operation=styles","setting_styles_sitemessage":"action=setting&operation=styles&anchor=sitemessage"}*/
showtableheader('setting_styles_sitemessage', 'nobottom', 'id="sitemessage"'.($_GET['anchor'] != 'sitemessage' ? ' style="display: none"' : ''));
showsetting('setting_styles_sitemessage_time', 'settingnew[sitemessage][time]', $setting['sitemessage']['time'], 'text');
showsetting('setting_styles_sitemessage_register', 'settingnew[sitemessage][register]', $setting['sitemessage']['register'], 'textarea');
@ -755,6 +780,7 @@ if(!submitcheck('settingsubmit')) {
showsetting('setting_styles_sitemessage_reply', 'settingnew[sitemessage][reply]', $setting['sitemessage']['reply'], 'textarea');
showtagfooter('tbody');
showtablefooter();
/*search*/
showtableheader('', 'notop');
showsubmit('settingsubmit');
@ -823,6 +849,7 @@ if(!submitcheck('settingsubmit')) {
}
if($_GET['do'] == 'add') {
/*search={"setting_styles":"action=setting&operation=threadprofile&do=add"}*/
showtips('setting_threadprofile_tpl_tpls');
showtableheader('');
showhiddenfields(array('do' => 'add'));
@ -830,6 +857,7 @@ if(!submitcheck('settingsubmit')) {
showsetting_threadprfile($authorinfoitems);
showtagfooter('tbody');
showtablefooter();
/*search*/
} elseif($_GET['do'] == 'edit') {
$id = intval($_GET['id']);
$threadprofile = C::t('forum_threadprofile')->fetch($id);
@ -861,6 +889,7 @@ if(!submitcheck('settingsubmit')) {
$rewritedata = rewritedata();
$setting['rewritestatus'] = isset($setting['rewritestatus']) ? dunserialize($setting['rewritestatus']) : '';
$setting['rewriterule'] = isset($setting['rewriterule']) ? dunserialize($setting['rewriterule']) : '';
/*search={"setting_optimize":"action=setting&operation=seo","setting_seo":"action=setting&operation=seo"}*/
echo '<div id="rewrite"'.($_GET['anchor'] != 'rewrite' ? ' style="display: none"' : '').'>';
showtips('setting_tips', 'tips_rewrite');
showtableheader('', 'nobottom');
@ -1043,10 +1072,12 @@ EOF;
echo '</div>';
}
showtagfooter('tbody');
/*search*/
} elseif($operation == 'cachethread') {
include_once libfile('function/forumlist');
$forumselect = '<select name="fids[]" multiple="multiple" size="10"><option value="all">'.$lang['all'].'</option><option value="">&nbsp;</option>'.forumselect(FALSE, 0, 0, TRUE).'</select>';
/*search={"setting_optimize":"action=setting&operation=seo","setting_cachethread":"action=setting&operation=cachethread"}*/
showtableheader();
showtitle('setting_cachethread');
showsetting('setting_cachethread_indexlife', 'settingnew[cacheindexlife]', $setting['cacheindexlife'], 'text');
@ -1056,6 +1087,7 @@ EOF;
showtitle('setting_cachethread_coefficient_set');
showsetting('setting_cachethread_coefficient', 'settingnew[threadcaches]', '', "<input type=\"text\" class=\"txt\" size=\"30\" name=\"settingnew[threadcaches]\" value=\"$setting[threadcaches]\">");
showsetting('setting_cachethread_coefficient_forum', '', '', $forumselect);
/*search*/
} elseif($operation == 'serveropti') {
@ -1077,6 +1109,7 @@ EOF;
$tcsspath['custom'] = 'checked="checked"';
}
/*search={"setting_optimize":"action=setting&operation=seo","setting_serveropti":"action=setting&operation=serveropti"}*/
showtips('setting_tips');
showtableheader();
showtitle('setting_serveropti');
@ -1113,6 +1146,7 @@ EOF;
showsetting('setting_serveropti_sessionclose', 'settingnew[sessionclose]', $setting['sessionclose'], 'radio', '', 1);
showsetting('setting_serveropti_onlineguestsmultiple', 'settingnew[onlineguestsmultiple]', $setting['onlineguestsmultiple'] ? $setting['onlineguestsmultiple'] : 10, 'text');
showtagheader('tbody', '', true);
/*search*/
} elseif($operation == 'editor') {
@ -1121,6 +1155,7 @@ EOF;
$setting['allowswitcheditor'] = $_G['setting']['editoroptions']{1};
$setting['simplemode'] = $_G['setting']['editoroptions']{2};
/*search={"setting_editor":"action=setting&operation=editor","setting_editor_global":"action=setting&operation=editor"}*/
showtableheader();
showsetting('setting_editor_mode_default', array('settingnew[defaulteditormode]', array(
array(0, $lang['setting_editor_mode_discuzcode']),
@ -1133,12 +1168,14 @@ EOF;
showsetting('setting_editor_smcols', 'settingnew[smcols]', $setting['smcols'], 'text');
showsetting('setting_editor_smrows', 'settingnew[smrows]', $setting['smrows'], 'text');
showtablefooter();
/*search*/
} elseif($operation == 'functions') {
$allowfuntype = array('portal', 'group', 'follow', 'collection', 'guide', 'feed', 'blog', 'doing', 'album', 'share', 'wall', 'homepage', 'ranklist');
$_GET['type'] = in_array($_GET['type'], $allowfuntype) ? trim($_GET['type']) : '';
echo "<script>disallowfloat = '{$_G[setting][disallowfloat]}';</script>";
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_curscript":"action=setting&operation=functions&anchor=curscript"}*/
showtableheader('setting_functions_curscript_list', 'nobottom', 'id="curscript"'.($_GET['anchor'] != 'curscript' ? ' style="display: none"' : ''));
$modulehtml = array();
$modulehtml[] = '<td class="td25"><img src="'.STATICURL.'image/feed/portal_b.png"/></td><td class="td23">'.$lang['setting_functions_curscript_portal'].'</td><td width="370">'.$lang['setting_functions_curscript_portal_intro'].'</td><td class="td30"><img class="vm" src="'.$_G['style']['imgdir'].'/data_'.($setting['portalstatus'] ? 'valid':'invalid').'.gif"></td><td><a href="forum.php?mod=ajax&action=setnav&do='.($setting['portalstatus'] ? 'close':'open').'&type=portal" onclick="showWindow(\'setnav\', this.href, \'get\', 0);return false;">'.($setting['portalstatus'] ? $lang['setting_functions_curscript_close']:$lang['setting_functions_curscript_open']).'</a></td>';
@ -1155,7 +1192,9 @@ EOF;
$modulehtml[] = '<td class="td25"><img src="'.STATICURL.'image/feed/ranklist_b.png"/></td><td class="td23">'.$lang['setting_functions_curscript_ranklist'].'</td><td width="370">'.$lang['setting_functions_curscript_ranklist_intro'].'</td><td class="td30"><img class="vm" src="'.$_G['style']['imgdir'].'/data_'.($setting['rankliststatus'] ? 'valid':'invalid').'.gif"></td><td><a href="forum.php?mod=ajax&action=setnav&do='.($setting['rankliststatus'] ? 'close':'open').'&type=ranklist" onclick="showWindow(\'setnav\', this.href, \'get\', 0);return false;">'.($setting['rankliststatus'] ? $lang['setting_functions_curscript_close']:$lang['setting_functions_curscript_open']).'</a></td>';
echo '<tr>'.implode('</tr><tr>', $modulehtml).'</tr>';
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_mod":"action=setting&operation=functions&anchor=mod"}*/
showtips('setting_tips', 'mod_tips', $_GET['anchor'] == 'mod');
showtableheader('', 'nobottom', 'id="mod"'.($_GET['anchor'] != 'mod' ? ' style="display: none"' : ''));
showsetting('setting_functions_mod_updatestat', 'settingnew[updatestat]', $setting['updatestat'], 'radio');
@ -1176,6 +1215,7 @@ EOF;
showsetting('setting_functions_mod_rewardexpiration', 'settingnew[rewardexpiration]', $setting['rewardexpiration'], 'text');
showsetting('setting_functions_mod_moddetail', 'settingnew[moddetail]', $setting['moddetail'], 'radio');
showtablefooter();
/*search*/
$setting['heatthread'] = dunserialize($setting['heatthread']);
$setting['recommendthread'] = dunserialize($setting['recommendthread']);
@ -1199,12 +1239,15 @@ EOF;
}
}
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_heatthread":"action=setting&operation=functions&anchor=heatthread"}*/
showtips('setting_functions_heatthread_tips', 'heatthread_tips', $_GET['anchor'] == 'heatthread');
showtableheader('', 'nobottom', 'id="heatthread"'.($_GET['anchor'] != 'heatthread' ? ' style="display: none"' : ''));
showsetting('setting_functions_heatthread_period', 'settingnew[heatthread][period]', $setting['heatthread']['period'], 'text');
showsetting('setting_functions_heatthread_iconlevels', '', '', '<input name="settingnew[heatthread][iconlevels]" class="txt" type="text" value="'.$setting['heatthread']['iconlevels'].'" /><br />'.$heatthreadicons);
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_recommend":"action=setting&operation=functions&anchor=recommend"}*/
showtips('setting_functions_recommend_tips', 'recommend_tips', $_GET['anchor'] == 'recommend');
showtableheader('', 'nobottom', 'id="recommend"'.($_GET['anchor'] != 'recommend' ? ' style="display: none"' : ''));
showsetting('setting_functions_recommend_status', 'settingnew[recommendthread][status]', $setting['recommendthread']['status'], 'radio', 0, 1);
@ -1214,7 +1257,9 @@ EOF;
showsetting('setting_functions_recommend_ownthread', 'settingnew[recommendthread][ownthread]', $setting['recommendthread']['ownthread'], 'radio');
showsetting('setting_functions_recommend_iconlevels', '', '', '<input name="settingnew[recommendthread][iconlevels]" class="txt" type="text" value="'.$setting['recommendthread']['iconlevels'].'" /><br />'.$recommendicons);
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_comment":"action=setting&operation=functions&anchor=comment"}*/
showtableheader('', 'nobottom', 'id="comment"'.($_GET['anchor'] != 'comment' ? ' style="display: none"' : ''));
showsetting('setting_functions_comment_allow', array('settingnew[allowpostcomment]', array(
array(1, $lang['setting_functions_comment_allow_1'], 'commentextra'),
@ -1234,7 +1279,9 @@ EOF;
showsetting($data['name'].cplang('setting_functions_comment_commentitem_threadplugin'), 'settingnew[commentitem]['.$tpid.']', $setting['commentitem'][$tpid], 'textarea', '', 0, cplang('setting_functions_comment_commentitem_threadplugin_comment'));
}
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_threadexp":"action=setting&operation=functions&anchor=threadexp"}*/
showtableheader('', 'nobottom', 'id="threadexp"'.($_GET['anchor'] != 'threadexp' ? ' style="display: none"' : ''));
showsetting('setting_functions_threadexp_repliesrank', 'settingnew[repliesrank]', $setting['repliesrank'], 'radio');
showsetting('setting_functions_threadexp_blacklist', 'settingnew[threadblacklist]', $setting['threadblacklist'], 'radio');
@ -1244,7 +1291,9 @@ EOF;
showsetting('setting_functions_threadexp_hidefilteredpost', 'settingnew[hidefilteredpost]', $setting['hidefilteredpost'], 'radio');
showsetting('setting_functions_threadexp_filterednovote', 'settingnew[filterednovote]', $setting['filterednovote'], 'radio');
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_other":"action=setting&operation=functions&anchor=other"}*/
showtips('setting_tips', 'other_tips', $_GET['anchor'] == 'other');
showtableheader('', 'nobottom', 'id="other"'.($_GET['anchor'] != 'other' ? ' style="display: none"' : ''));
showsetting('setting_functions_other_pwdsafety', 'settingnew[pwdsafety]', $setting['pwdsafety'], 'radio');
@ -1265,7 +1314,9 @@ EOF;
showsetting('setting_functions_other_darkroom', 'settingnew[darkroom]', $setting['darkroom'], 'radio');
showsetting('setting_functions_other_global_sign', 'settingnew[globalsightml]', $setting['globalsightml'], 'textarea');
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_guide":"action=setting&operation=functions&anchor=guide"}*/
$setting['guide'] = unserialize($setting['guide']);
showtableheader('', 'nobottom', 'id="guide"'.($_GET['anchor'] != 'guide' ? ' style="display: none"' : ''));
showsetting('setting_functions_heatthread_guidelimit', 'settingnew[heatthread][guidelimit]', $setting['heatthread']['guidelimit'], 'text');
@ -1278,7 +1329,9 @@ EOF;
showsetting('setting_functions_guide_hotdt', array('settingnew[guide][hotdt]', $dtarray), $setting['guide']['hotdt'], 'select');
showsetting('setting_functions_guide_digestdt', array('settingnew[guide][digestdt]', $dtarray), $setting['guide']['digestdt'], 'select');
showtablefooter();
/*search*/
/*search={"setting_functions":"action=setting&operation=functions","setting_functions_activity":"action=setting&operation=functions&anchor=activity"}*/
showtableheader('', 'nobottom', 'id="activity"'.($_GET['anchor'] != 'activity' ? ' style="display: none"' : ''));
showsetting('setting_functions_activity_type', 'settingnew[activitytype]', $setting['activitytype'], 'textarea');
$varname = array('settingnew[activityfield]', array(), 'isfloat');
@ -1298,6 +1351,7 @@ EOF;
showsetting('setting_functions_activity_credit', '', '' ,'<select name="settingnew[activitycredit]">'.$_G['setting']['creditstrans'].'</select>');
showsetting('setting_functions_activity_pp', 'settingnew[activitypp]', $setting['activitypp'], 'text');
showtablefooter();
/*search*/
showtableheader('', 'notop');
if($_GET['anchor'] != 'curscript') {
@ -1319,6 +1373,7 @@ EOF;
}
}
/*search={"setting_permissions":"action=setting&operation=permissions"}*/
showtableheader();
showsetting('setting_permissions_allowviewuserthread', 'settingnew[allowviewuserthread][allow]', $setting['allowviewuserthread']['allow'], 'radio', 0, 1);
showsetting('setting_permissions_allowviewuserthread_fids', '', '', $forumselect);
@ -1346,6 +1401,7 @@ EOF;
showsetting('setting_permissions_dupkarmarate', 'settingnew[dupkarmarate]', $setting['dupkarmarate'], 'radio');
showsetting('setting_permissions_editperdel', 'settingnew[editperdel]', $setting['editperdel'], 'radio');
showsetting('setting_permissions_hideexpiration', 'settingnew[hideexpiration]', $setting['hideexpiration'], 'text');
/*search*/
} elseif($operation == 'credits') {
@ -1356,6 +1412,7 @@ EOF;
echo '<div id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : '').'>';
/*search={"setting_credits":"action=setting&operation=credits","setting_credits_base":"action=setting&operation=credits&anchor=base"}*/
$setting['extcredits'] = dunserialize($setting['extcredits']);
$setting['initcredits'] = explode(',', $setting['initcredits']);
$extcreditsbtn = '';
@ -1490,12 +1547,14 @@ EOF;
showtablefooter();
echo '</div>';
showtableheader();
/*search*/
} elseif($operation == 'mail' && $isfounder) {
$setting['mail'] = dunserialize($setting['mail']);
$passwordmask = $setting['mail']['auth_password'] ? $setting['mail']['auth_password']{0}.'********'.substr($setting['mail']['auth_password'], -2) : '';
/*search={"setting_mail":"action=setting&operation=mail","setting_mail_setting":"action=setting&operation=mail&anchor=setting"}*/
showtableheader('', '', 'id="mailsetting"'.($_GET['anchor'] != 'setting' ? ' style="display: none"' : ''));
showsetting('setting_mail_setting_send', array('settingnew[mail][mailsend]', array(
@ -1601,12 +1660,15 @@ EOF;
showsetting('setting_mail_setting_silent', 'settingnew[mail][sendmail_silent]', $setting['mail']['sendmail_silent'], 'radio');
showsubmit('settingsubmit');
showtablefooter();
/*search*/
/*search={"setting_mail":"action=setting&operation=mail","setting_mail_check":"action=setting&operation=mail&anchor=check"}*/
showtableheader('', '', 'id="mailcheck"'.($_GET['anchor'] != 'check' ? ' style="display: none"' : ''));
showsetting('setting_mail_check_test_from', 'test_from', '', 'text');
showsetting('setting_mail_check_test_to', 'test_to', '', 'textarea');
showsubmit('', '', '<input type="submit" class="btn" name="mailcheck" value="'.cplang('setting_mail_check_submit').'" onclick="this.form.operation.value=\'mailcheck\';this.form.action=\''.ADMINSCRIPT.'?action=checktools&operation=mailcheck&frame=no\';this.form.target=\'mailcheckiframe\';">', '<iframe name="mailcheckiframe" style="display: none"></iframe>');
showtablefooter();
/*search*/
showformfooter();
exit;
@ -1616,6 +1678,7 @@ EOF;
loadcache('usergroups');
$setting['accountguard'] = dunserialize($setting['accountguard']);
$usergroups = C::t('common_usergroup_field')->fetch_all(array_keys($_G['cache']['usergroups']));
/*search={"setting_accountguard":"action=setting&operation=sec","setting_sec_reginput":"action=setting&operation=sec&anchor=accountguard"}*/
showtableheader('', 'nobottom');
$forcelogin = '<tr class="header"><td></td><td>'.cplang('usergroups_edit_basic_forcelogin_none').'</td>'.($_G['setting']['connect']['allow'] ? '<td>'.cplang('usergroups_edit_basic_forcelogin_qq').'</td>' : '').'<td>'.cplang('usergroups_edit_basic_forcelogin_mail').'</td></tr>';
ksort($_G['cache']['usergroups']);
@ -1642,6 +1705,7 @@ EOF;
showtableheader('setting_sec_accountguard_forcelogin', 'nobottom');
echo $forcelogin;
showtablefooter();
/*search*/
} elseif($operation == 'seccheck') {
@ -1662,6 +1726,7 @@ EOF;
$seccodetypearray = array_merge($seccodetypearray, getseccodes($seccodesettings));
/*search={"setting_seccheck":"action=setting&operation=sec","setting_sec_seccode":"action=setting&operation=sec&anchor=seccode"}*/
showtips('setting_sec_code_tips', 'seccode_tips', $_GET['anchor'] == 'seccode');
showtableheader('', '', 'id="seccode"'.($_GET['anchor'] != 'seccode' ? ' style="display: none"' : ''));
@ -1749,6 +1814,7 @@ EOF;
showsubmit('settingsubmit');
showtablefooter();
/*search*/
$setting['secqaa'] = dunserialize($setting['secqaa']);
$start_limit = ($page - 1) * 10;
@ -1763,6 +1829,7 @@ EOF;
];
</script>
EOT;
/*search={"setting_seccheck":"action=setting&operation=sec","setting_sec_secqaa":"action=setting&operation=sec&anchor=secqaa"}*/
showtips('setting_sec_qaa_tips', 'secqaa_tips', $_GET['anchor'] == 'secqaa');
showtagheader('div', 'secqaa', $_GET['anchor'] == 'secqaa');
showtableheader('setting_sec_secqaa', 'nobottom');
@ -1796,19 +1863,23 @@ EOT;
showsubmit('settingsubmit', 'submit', 'del', '', $multipage);
showtablefooter();
showtagfooter('div');
/*search*/
exit;
} elseif($operation == 'sec') {
$setting['reginput'] = dunserialize($setting['reginput']);
/*search={"setting_sec":"action=setting&operation=sec","setting_sec_base":"action=setting&operation=sec&anchor=base"}*/
showtableheader('', '', 'id="base"'.($_GET['anchor'] != 'base' ? ' style="display: none"' : ''));
showsetting('setting_sec_floodctrl', 'settingnew[floodctrl]', $setting['floodctrl'], 'text');
showsetting('setting_sec_base_need_email', 'settingnew[need_email]', $setting['need_email'], 'radio');
showsetting('setting_sec_base_need_avatar', 'settingnew[need_avatar]', $setting['need_avatar'], 'radio');
showsetting('setting_sec_base_need_friendnum', 'settingnew[need_friendnum]', $setting['need_friendnum'], 'text');
showtablefooter();
/*search*/
/*search={"setting_sec":"action=setting&operation=sec","setting_sec_reginput":"action=setting&operation=sec&anchor=reginput"}*/
showtagheader('div', 'reginput', $_GET['anchor'] == 'reginput');
showtableheader('setting_sec_reginput', 'nobottom');
showsetting('setting_sec_reginput_username', 'settingnew[reginput][username]', $setting['reginput']['username'], 'text');
@ -1817,7 +1888,9 @@ EOT;
showsetting('setting_sec_reginput_email', 'settingnew[reginput][email]', $setting['reginput']['email'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"setting_sec":"action=setting&operation=sec","setting_sec_reginput":"action=setting&operation=sec&anchor=postperiodtime"}*/
showtagheader('div', 'postperiodtime', $_GET['anchor'] == 'postperiodtime');
showtableheader('setting_sec_postperiodtime', 'nobottom');
showsetting('setting_datetime_postbanperiods', 'settingnew[postbanperiods]', $setting['postbanperiods'], 'textarea');
@ -1826,6 +1899,7 @@ EOT;
showsetting('setting_datetime_postignoreip', 'settingnew[postignoreip]', $setting['postignoreip'], 'textarea');
showtablefooter();
showtagfooter('div');
/*search*/
} elseif($operation == 'datetime') {
@ -1834,6 +1908,7 @@ EOT;
$setting['userdateformat'] = dateformat($setting['userdateformat']);
$setting['dateformat'] = dateformat($setting['dateformat']);
/*search={"setting_datetime":"action=setting&operation=datetime"}*/
showtableheader();
showtitle('setting_datetime_format');
showsetting('setting_datetime_dateformat', 'settingnew[dateformat]', $setting['dateformat'], 'text');
@ -1853,9 +1928,11 @@ EOT;
showsetting('setting_datetime_visitbanperiods', 'settingnew[visitbanperiods]', $setting['visitbanperiods'], 'textarea');
showsetting('setting_datetime_ban_downtime', 'settingnew[attachbanperiods]', $setting['attachbanperiods'], 'textarea');
showsetting('setting_datetime_searchbanperiods', 'settingnew[searchbanperiods]', $setting['searchbanperiods'], 'textarea');
/*search}*/
} elseif($operation == 'attach') {
/*search={"setting_attach":"action=setting&operation=attach","setting_attach_basic":"action=setting&operation=attach&anchor=basic"}*/
showtableheader('', '', 'id="basic"'.($_GET['anchor'] != 'basic' ? ' style="display: none"' : ''));
showsetting('setting_attach_basic_dir', 'settingnew[attachdir]', $setting['attachdir'], 'text');
showsetting('setting_attach_basic_url', 'settingnew[attachurl]', $setting['attachurl'], 'text');
@ -1869,7 +1946,9 @@ EOT;
showtagfooter('tbody');
showsubmit('settingsubmit');
showtablefooter();
/*search*/
/*search={"setting_attach":"action=setting&operation=attach","setting_attach_forumattach":"action=setting&operation=attach&anchor=forumattach"}*/
showtableheader('', '', 'id="forumattach"'.($_GET['anchor'] != 'forumattach' ? ' style="display: none"' : ''));
showsetting('setting_attach_basic_imgpost', 'settingnew[attachimgpost]', $setting['attachimgpost'], 'radio');
showsetting('setting_attach_basic_allowattachurl', 'settingnew[allowattachurl]', $setting['allowattachurl'], 'radio');
@ -1887,6 +1966,7 @@ EOT;
showsetting('setting_attach_antileech_expire', 'settingnew[attachexpire]', $setting['attachexpire'], 'text');
showsetting('setting_attach_antileech_refcheck', 'settingnew[attachrefcheck]', $setting['attachrefcheck'], 'radio');
showtagfooter('tbody');
/*search*/
showsubmit('settingsubmit');
showtablefooter();
@ -1900,6 +1980,7 @@ EOT;
require_once libfile('function/cache');
/*search={"setting_attach":"action=setting&operation=attach","setting_attach_remote":"action=setting&operation=attach&anchor=remote"}*/
showtableheader('', '', 'id="remote"'.($_GET['anchor'] != 'remote' ? ' style="display: none"' : ''));
showsetting('setting_attach_remote_enabled', array('settingnew[ftp][on]', array(
array(1, $lang['yes'], array('ftpext' => '', 'ftpcheckbutton' => '')),
@ -1924,18 +2005,23 @@ EOT;
showsubmit('settingsubmit');
showtablefooter();
/*search*/
}
/*search={"setting_attach":"action=setting&operation=attach","setting_attach_album":"action=setting&operation=attach&anchor=albumattach"}*/
showtableheader('', '', 'id="albumattach"'.($_GET['anchor'] != 'albumattach' ? ' style="display: none"' : ''));
showsetting('setting_attach_album_maxtimage', array('settingnew[maxthumbwidth]', 'settingnew[maxthumbheight]'), array(intval($setting['maxthumbwidth']), intval($setting['maxthumbheight'])), 'multiply');
showsubmit('settingsubmit');
showtablefooter();
/*search*/
/*search={"setting_attach":"action=setting&operation=attach","setting_attach_portal_article_attach":"action=setting&operation=attach&anchor=portalarticle"}*/
showtableheader('', '', 'id="portalarticle"'.($_GET['anchor'] != 'portalarticle' ? ' style="display: none"' : ''));
showsetting('setting_attach_portal_article_img_thumb_closed', 'settingnew[portalarticleimgthumbclosed]', !$setting['portalarticleimgthumbclosed'], 'radio');
showsetting('setting_attach_portal_article_imgsize', array('settingnew[portalarticleimgthumbwidth]', 'settingnew[portalarticleimgthumbheight]'), array(intval($setting['portalarticleimgthumbwidth']), intval($setting['portalarticleimgthumbheight'])), 'multiply');
showsubmit('settingsubmit');
showtablefooter();
/*search*/
showformfooter();
exit;
@ -1973,6 +2059,7 @@ EOT;
$checkwm['portal'] = array($setting['watermarkstatus']['portal'] => 'checked');
$checkwm['forum'] = array($setting['watermarkstatus']['forum'] => 'checked');
$checkwm['album'] = array($setting['watermarkstatus']['album'] => 'checked');
/*search={"setting_imgwater":"action=setting&operation=imgwater","setting_imgwater_portal":"action=setting&operation=imgwater&anchor=portal"}*/
showtableheader('setting_imgwater_image_watermarks_portal', '', 'id="portal"'.($_GET['anchor'] != 'portal' ? ' style="display: none"' : ''));
$fontlist['portal'] = '<select name="settingnew[watermarktext][fontpath][portal]">' . $fontlist['portal'];
showhiddenfields(array('imagelib' => $_G['setting']['imagelib']));
@ -2001,7 +2088,9 @@ EOT;
showtagfooter('tbody');
showsetting('setting_imgwater_preview', '', '', cplang('setting_imgwater_preview_portal'));
showtablefooter();
/*search*/
/*search={"setting_imgwater":"action=setting&operation=imgwater","setting_imgwater_forum":"action=setting&operation=imgwater&anchor=forum"}*/
showtableheader('setting_imgwater_image_watermarks_forum', '', 'id="forum"'.($_GET['anchor'] != 'forum' ? ' style="display: none"' : ''));
$fontlist['forum'] = '<select name="settingnew[watermarktext][fontpath][forum]">' . $fontlist['forum'];
showsetting('setting_imgwater_image_watermarkstatus', '', '', '<table style="margin-bottom: 3px; margin-top:3px;"><tr><td colspan="3"><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="0" '.$checkwm['forum'][0].'>'.$lang['setting_imgwater_image_watermarkstatus_none'].'</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="1" '.$checkwm['forum'][1].'> #1</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="2" '.$checkwm['forum'][2].'> #2</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="3" '.$checkwm['forum'][3].'> #3</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="4" '.$checkwm['forum'][4].'> #4</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="5" '.$checkwm['forum'][5].'> #5</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="6" '.$checkwm['forum'][6].'> #6</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="7" '.$checkwm['forum'][7].'> #7</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="8" '.$checkwm['forum'][8].'> #8</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][forum]" value="9" '.$checkwm['forum'][9].'> #9</td></tr></table>');
@ -2029,7 +2118,9 @@ EOT;
showtagfooter('tbody');
showsetting('setting_imgwater_preview', '', '', cplang('setting_imgwater_preview_forum'));
showtablefooter();
/*search*/
/*search={"setting_imgwater":"action=setting&operation=imgwater","setting_imgwater_album":"action=setting&operation=imgwater&anchor=album"}*/
showtableheader('setting_imgwater_image_watermarks_album', '', 'id="album"'.($_GET['anchor'] != 'album' ? ' style="display: none"' : ''));
$fontlist['album'] = '<select name="settingnew[watermarktext][fontpath][album]">' . $fontlist['album'];
showsetting('setting_imgwater_image_watermarkstatus', '', '', '<table style="margin-bottom: 3px; margin-top:3px;"><tr><td colspan="3"><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="0" '.$checkwm['album'][0].'>'.$lang['setting_imgwater_image_watermarkstatus_none'].'</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="1" '.$checkwm['album'][1].'> #1</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="2" '.$checkwm['album'][2].'> #2</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="3" '.$checkwm['album'][3].'> #3</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="4" '.$checkwm['album'][4].'> #4</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="5" '.$checkwm['album'][5].'> #5</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="6" '.$checkwm['album'][6].'> #6</td></tr><tr><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="7" '.$checkwm['album'][7].'> #7</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="8" '.$checkwm['album'][8].'> #8</td><td><input class="radio" type="radio" name="settingnew[watermarkstatus][album]" value="9" '.$checkwm['album'][9].'> #9</td></tr></table>');
@ -2057,9 +2148,11 @@ EOT;
showtagfooter('tbody');
showsetting('setting_imgwater_preview', '', '', cplang('setting_imgwater_preview_album'));
showtablefooter();
/*search*/
showtableheader();
} elseif($operation == 'search') {
/*search={"setting_search":"action=setting&operation=search"}*/
$setting['search'] = dunserialize($setting['search']);
showtableheader('setting_search_status', 'fixpadding');
showsubtitle(array('setting_search_onoff', 'search_item_name', 'setting_serveropti_searchctrl', 'setting_serveropti_maxspm', 'setting_serveropti_maxsearchresults'));
@ -2146,6 +2239,7 @@ EOT;
$selectspxrank .='</select>';
showsetting('settings_sphinx_sphinxrank', '', '', $selectspxrank);
showtablefooter();
/*search*/
showtableheader();
} elseif($operation == 'uc' && $isfounder) {
@ -2153,6 +2247,7 @@ EOT;
$disable = !is_writeable(DISCUZ_ROOT . './config/config_ucenter.php');
include DISCUZ_ROOT.'./config/config_ucenter.php';
/*search={"setting_uc":"action=setting&operation=uc"}*/
showtips('setting_uc_tips');
showtableheader();
showsetting('setting_uc_appid', 'settingnew[uc][appid]', UC_APPID, 'text', $disable);
@ -2180,18 +2275,22 @@ EOT;
array(0, $lang['setting_uc_avatarmethod_0']),
array(1, $lang['setting_uc_avatarmethod_1']),
)), $setting['avatarmethod'], 'mradio');
/*search*/
} elseif($operation == 'ec') {
/*search={"nav_ec":"action=setting&operation=ec","nav_ec_config":"action=setting&operation=ec"}*/
showtableheader();
showtitle('setting_ec_credittrade');
showsetting('setting_ec_ratio', 'settingnew[ec_ratio]', $setting['ec_ratio'], 'text');
showsetting('setting_ec_mincredits', 'settingnew[ec_mincredits]', $setting['ec_mincredits'], 'text');
showsetting('setting_ec_maxcredits', 'settingnew[ec_maxcredits]', $setting['ec_maxcredits'], 'text');
showsetting('setting_ec_maxcreditspermonth', 'settingnew[ec_maxcreditspermonth]', $setting['ec_maxcreditspermonth'], 'text');
/*search*/
} elseif($operation == 'memory') {
/*search={"setting_optimize":"action=setting&operation=seo","setting_memory":"action=setting&operation=memory"}*/
showtips('setting_memory_tips');
showtableheader('setting_memory_status', 'fixpadding');
showsubtitle(array('setting_memory_state_interface', 'setting_memory_state_extension', 'setting_memory_state_config', 'setting_memory_clear', ''));
@ -2247,9 +2346,11 @@ EOT;
));
}
/*search*/
} elseif($operation == 'memorydata') {
/*search={"setting_optimize":"action=setting&operation=seo","setting_memorydata":"action=setting&operation=memorydata"}*/
$cache_keys = getmemorycachekeys();
if(submitcheck('memorydatasubmit')) {
$flag = 0;
@ -2299,11 +2400,13 @@ EOT;
showsubmit('memorydatasubmit');
showtablefooter();
showtagfooter('div');
/*search*/
showformfooter();
exit;
} elseif($operation == 'ranklist') {
/*search={"setting_ranklist":"action=setting&operation=ranklist"}*/
$setting['ranklist'] = dunserialize($setting['ranklist']);
showtableheader('', 'nobottom', 'id="all"');
showsetting('setting_ranklist_status', 'settingnew[ranklist][status]', $setting['ranklist']['status'], 'radio');
@ -2348,11 +2451,13 @@ EOT;
showhiddenfields(array('updateranklistcache' => 0));
showsubmit('', '', '<input type="submit" class="btn" name="settingsubmit" value="'.cplang('setting_ranklist_update_cache').'" onclick="this.form.updateranklistcache.value=1">');
showtablefooter();
/*search*/
showformfooter();
exit;
} elseif ($operation == 'mobile'){
/*search={"setting_mobile":"action=setting&operation=mobile"}*/
$setting['mobile'] = dunserialize($setting['mobile']);
showtips('setting_mobile_status_tips');
showtableheader('setting_mobile_status', '', 'id="status"'.($_GET['anchor'] != 'status' ? ' style="display: none"' : ''));
@ -2380,6 +2485,7 @@ EOT;
showsubmit('settingsubmit');
showformfooter();
showtablefooter();
/*search*/
exit;
} elseif ($operation == 'antitheft'){

View File

@ -50,7 +50,9 @@ if(!submitcheck('sharesubmit')) {
array('share_search', !$searchsubmit),
array('nav_share', $searchsubmit)
));
/*search={"nav_share":"action=share"}*/
showtips('share_tips');
/*search*/
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
@ -61,6 +63,7 @@ function page(number) {
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
/*search={"nav_share":"action=share","search":"action=share&search=true"}*/
showformheader("share".(!empty($_GET['search']) ? '&search=true' : ''), '', 'shareforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
showtableheader();
@ -81,6 +84,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
} else {
$sids = authcode($sids, 'DECODE');

View File

@ -40,7 +40,9 @@ if(!$operation) {
array('smilies_type', 'smilies', 1),
array('smilies_import', 'smilies&operation=import', 0),
));
/*search={"nav_smilies":"action=smilies","smilies_type":"action=smilies"}*/
showtips('smilies_tips_smileytypes');
/*search*/
showformheader('smilies');
showtableheader();
showsubtitle(array('', 'display_order', 'enable', 'smilies_type', 'dir', 'smilies_nums', ''));
@ -387,7 +389,9 @@ EOT;
array('smilies_type', 'smilies', 0),
array('smilies_import', 'smilies&operation=import', 1),
));
/*search={"nav_smilies":"action=smilies","smilies_import":"action=smilies&operation=import"}*/
showtips('smilies_tips');
/*search*/
showformheader('smilies&operation=import', 'enctype');
showtableheader('smilies_import');
showimportdata();

View File

@ -221,7 +221,9 @@ if($operation == 'admin') {
array('import', 'styles&operation=import', '0'),
array('cloudaddons_style_link', 'cloudaddons')
), '<a href="'.ADMINSCRIPT.'?action=styles&operation=upgradecheck" class="bold" style="float:right;padding-right:40px;">'.$lang['plugins_validator'].'</a>');
/*search={"styles_admin":"action=styles"}*/
showtips('styles_admin_tips');
/*search*/
showformheader('styles');
showhiddenfields(array('updatecsscache' => 0));
showtableheader();

View File

@ -16,6 +16,7 @@ shownav('global', 'tag');
showsubmenu('tag', array(
array('search', 'tag&operation=admin', $current['admin']),
));
/*search={"tag":"action=tag"}*/
if($operation == 'admin') {
$tagarray = array();
if(submitcheck('submit') && !empty($_GET['tagidarray']) && is_array($_GET['tagidarray']) && !empty($_GET['operate_type'])) {
@ -92,4 +93,5 @@ if($operation == 'admin') {
showformfooter();
}
}
/*search*/
?>

View File

@ -74,10 +74,13 @@ EOT;
array('threads_search', !$_GET['searchsubmit']),
array('nav_maint_threads', $_GET['searchsubmit'])
));
/*search={"nav_maint_threads":"action=threads","newlist":"action=threads"}*/
if(empty($newlist)) {
$search_tips = 1;
showtips('threads_tips');
}
/*search*/
/*search={"nav_maint_threads":"action=threads","search":"action=threads&search=true"}*/
showtagheader('div', 'threadsearch', !submitcheck('searchsubmit', 1) && empty($newlist));
showformheader('threads'.($operation ? '&operation='.$operation : ''), '', 'threadforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
@ -149,6 +152,7 @@ EOT;
showtablefooter();
showformfooter();
showtagfooter('div');
/*search*/
if(submitcheck('searchsubmit', 1) || $newlist) {
$operation == 'group' && $_GET['inforum'] = 'isgroup';

View File

@ -31,6 +31,7 @@ if($operation == 'manage') {
array('nav_threadsplit_manage', 'threadsplit&operation=manage', 1),
array('nav_threadsplit_move', 'threadsplit&operation=move', 0),
));
/*search={"nav_threadsplit":"action=threadsplit","nav_threadsplit_manage":"action=threadsplit&operation=manage"}*/
showtips('threadsplit_manage_tips');
showformheader('threadsplit&operation=manage');
showtableheader('threadsplit_manage_table_orig');
@ -52,6 +53,7 @@ if($operation == 'manage') {
showtablefooter();
showsubmit('threadsplit_update_submit', 'threadsplit_manage_update', '', '<a href="?action=threadsplit&operation=addnewtable" style="border-style: solid; border-width: 1px;" class="btn">'.$lang['threadsplit_manage_table_add'].'</a>&nbsp;<a href="?action=threadsplit&operation=forumarchive" style="border-style: solid; border-width: 1px;" class="btn">'.$lang['threadsplit_manage_forum_update'].'</a>');
showformfooter();
/*search*/
} else {
$threadtable_info = array();
$_GET['memo'] = !empty($_GET['memo']) ? $_GET['memo'] : array();
@ -151,6 +153,7 @@ EOT;
array('nav_threadsplit_manage', 'threadsplit&operation=manage', 0),
array('nav_threadsplit_move', 'threadsplit&operation=move', 1),
));
/*search={"nav_threadsplit":"action=threadsplit","nav_threadsplit_move":"action=threadsplit&operation=move"}*/
showtips('threadsplit_move_tips');
showtagheader('div', 'threadsearch', !submitcheck('threadsplit_move_search'));
showformheader('threadsplit&operation=move', '', 'threadform');
@ -323,6 +326,7 @@ EOT;
}
showformfooter();
showtagfooter('div');
/*search*/
}
} else {

View File

@ -23,7 +23,9 @@ if($operation == 'updatecache') {
array('nav_updatecache_completed', $step == 3)
));
/*search={"nav_updatecache":"action=tools&operation=updatecache"}*/
showtips('tools_updatecache_tips');
/*search*/
if($step == 1) {
cpmsg("<input type=\"checkbox\" name=\"type[]\" value=\"data\" id=\"datacache\" class=\"checkbox\" checked /><label for=\"datacache\">".$lang[tools_updatecache_data]."</label><input type=\"checkbox\" name=\"type[]\" value=\"tpl\" id=\"tplcache\" class=\"checkbox\" checked /><label for=\"tplcache\">".$lang[tools_updatecache_tpl]."</label><input type=\"checkbox\" name=\"type[]\" value=\"blockclass\" id=\"blockclasscache\" class=\"checkbox\" /><label for=\"blockclasscache\">".$lang[tools_updatecache_blockclass].'</label>', 'action=tools&operation=updatecache&step=2', 'form', '', FALSE);

View File

@ -115,7 +115,9 @@ EOT;
array('usergroups_special', 'specialgroups', $_GET['type'] == 'special'),
array('usergroups_system', 'systemgroups', $_GET['type'] == 'system')
));
/*search={"nav_usergroups":"action=usergroups"}*/
showtips('usergroups_tips');
/*search*/
showformheader('usergroups&type=member');
showtableheader('usergroups_member', 'fixpadding', 'id="membergroups"'.($_GET['type'] && $_GET['type'] != 'member' ? ' style="display: none"' : ''));
@ -526,6 +528,7 @@ EOT;
$mgids[] = $gid;
if(!$multiset && $group['type'] == 'special' && $group['radminid'] < 1) {
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_basic":"action=usergroups&operation=edit&anchor=system"}*/
showtagheader('div', 'system', $anchor == 'system');
showtableheader();
if($group['system'] == 'private') {
@ -539,8 +542,10 @@ EOT;
showsetting('usergroups_edit_system_minspan', 'system_minspannew', $system['minspan'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
}
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_basic":"action=usergroups&operation=edit&anchor=basic"}*/
showmultititle();
showtagheader('div', 'basic', $anchor == 'basic');
showtableheader();
@ -623,7 +628,9 @@ EOT;
showsetting('usergroups_edit_basic_close_ad', 'closeadnew', $group['closead'], 'radio');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_special":"action=usergroups&operation=edit&anchor=special"}*/
showtagheader('div', 'special', $anchor == 'special');
showtableheader();
showtitle('usergroups_edit_special');
@ -648,7 +655,9 @@ EOT;
}
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_post":"action=usergroups&operation=edit&anchor=post"}*/
showtagheader('div', 'post', $anchor == 'post');
showtableheader();
showtitle('usergroups_edit_post');
@ -707,7 +716,9 @@ EOT;
showsetting('usergroups_edit_attach_ext', 'attachextensionsnew', $group['attachextensions'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_magic":"action=usergroups&operation=edit&anchor=magic"}*/
showtagheader('div', 'magic', $anchor == 'magic');
showtableheader();
showtitle('usergroups_edit_magic');
@ -720,7 +731,9 @@ EOT;
showsetting('usergroups_edit_magic_max', 'maxmagicsweightnew', $group['maxmagicsweight'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_invite":"action=usergroups&operation=edit&anchor=invite"}*/
showtagheader('div', 'invite', $anchor == 'invite');
showtableheader();
showtitle('usergroups_edit_invite');
@ -731,6 +744,7 @@ EOT;
showsetting('usergroups_edit_invite_maxinviteday', 'maxinvitedaynew', $group['maxinviteday'], 'text');
showtablefooter();
showtagfooter('div');
/*search*/
$raterangearray = array();
foreach(explode("\n", $group['raterange']) as $range) {
@ -765,6 +779,7 @@ EOT;
showtablefooter();
showtagfooter('div');
} else {
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_credit":"action=usergroups&operation=edit&anchor=credit"}*/
showtagheader('div', 'credit', $anchor == 'credit');
showtableheader();
showtitle('usergroups_edit_credit');
@ -822,8 +837,10 @@ EOT;
echo '<tr><td class="lineheight" colspan="9">'.$lang['usergroups_edit_credit_rate_tips'].'</td></tr>';
showtablefooter();
showtagfooter('div');
/*search*/
}
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_home":"action=usergroups&operation=edit&anchor=home"}*/
showtagheader('div', 'home', $anchor == 'home');
showtableheader();
showtitle('usergroups_edit_home');
@ -853,7 +870,9 @@ EOT;
showsetting('usergroups_edit_home_allow_space_diy_imgcode', 'allowspacediyimgcodenew', $group['allowspacediyimgcode'], 'radio');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_group":"action=usergroups&operation=edit&anchor=group"}*/
showtagheader('div', 'group', $anchor == 'group');
showtableheader();
showtitle('usergroups_edit_group');
@ -873,7 +892,9 @@ EOT;
)), $group['allowgroupposturl'], 'mradio');
showtablefooter();
showtagfooter('div');
/*search*/
/*search={"nav_usergroups":"action=usergroups","usergroups_edit_portal":"action=usergroups&operation=edit&anchor=portal"}*/
showtagheader('div', 'portal', $anchor == 'portal');
showtableheader();
showtitle('usergroups_edit_portal');
@ -883,6 +904,7 @@ EOT;
showsetting('usergroups_edit_portal_allow_post_article_moderate', 'allowpostarticlemodnew', $group['allowpostarticlemod'], 'radio');
showtablefooter();
showtagfooter('div');
/*search*/
if($pluginsetting) {
showtagheader('div', 'plugin', $anchor == 'plugin');

View File

@ -13,6 +13,7 @@ cpheader();
shownav('user', 'usertag');
$lpp = empty($_GET['lpp']) ? 20 : $_GET['lpp'];
$start = ($page - 1) * $lpp;
/*search={"usertag":"action=usertag"}*/
if($operation == '') {
if($_GET['srchname']) {
$addurl = '&srchname='.$_GET['srchname'];
@ -104,4 +105,5 @@ if($operation == '') {
showsubmit('submit', 'submit');
showformfooter();
}
/*search*/
?>

File diff suppressed because it is too large Load Diff