showsubtitle(array('enable', 'forums_edit_threadtypes_name', 'forums_edit_threadtypes_note', 'forums_edit_threadtypes_show', 'forums_edit_threadtypes_defaultshow')); echo $sortselect; showtablefooter(); showtagfooter('div'); showtagfooter('div'); } showtagheader('div', 'perm', $anchor == 'perm'); showtableheader('forums_edit_perm_forum', 'nobottom'); showsetting('forums_edit_perm_passwd', 'passwordnew', $forum['password'], 'text'); showsetting('forums_edit_perm_users', 'formulapermusersnew', dstripslashes($forum['formulapermusers']), 'textarea'); $colums = array(); loadcache('medals'); foreach ($_G['cache']['medals'] as $medalid => $medal) { $colums[] = array($medalid, $medal['name']); } showtagheader('tbody', '', $_G['setting']['medalstatus']); showsetting('forums_edit_perm_medal', array('medalnew', $colums), $forum['medal'], 'mcheckbox'); showtagfooter('tbody'); showtablefooter(); if (!$multiset) { showtableheader('forums_edit_perm_forum', 'noborder fixpadding'); showsubtitle(array('', '<input class="checkbox" type="checkbox" name="chkall1" onclick="checkAll(\'prefix\', this.form, \'viewperm\', \'chkall1\')" id="chkall1" /><label for="chkall1"><br />' . cplang('forums_edit_perm_view') . '</label>', '<input class="checkbox" type="checkbox" name="chkall2" onclick="checkAll(\'prefix\', this.form, \'postperm\', \'chkall2\')" id="chkall2" /><label for="chkall2"><br />' . cplang('forums_edit_perm_post') . '</label>', '<input class="checkbox" type="checkbox" name="chkall3" onclick="checkAll(\'prefix\', this.form, \'replyperm\', \'chkall3\')" id="chkall3" /><label for="chkall3"><br />' . cplang('forums_edit_perm_reply') . '</label>', '<input class="checkbox" type="checkbox" name="chkall4" onclick="checkAll(\'prefix\', this.form, \'getattachperm\', \'chkall4\')" id="chkall4" /><label for="chkall4"><br />' . cplang('forums_edit_perm_getattach') . '</label>', '<input class="checkbox" type="checkbox" name="chkall5" onclick="checkAll(\'prefix\', this.form, \'postattachperm\', \'chkall5\')" id="chkall5" /><label for="chkall5"><br />' . cplang('forums_edit_perm_postattach') . '</label>', '<input class="checkbox" type="checkbox" name="chkall6" onclick="checkAll(\'prefix\', this.form, \'postimageperm\', \'chkall6\')" id="chkall6" /><label for="chkall6"><br />' . cplang('forums_edit_perm_postimage') . '</label>')); foreach (array('member', 'special', 'specialadmin', 'system') as $type) { $tgroups = is_array($groups[$type]) ? $groups[$type] : array(); showtablerow('', '', array('<b>' . cplang('usergroups_' . $type) . '</b>')); foreach ($tgroups as $group) { $colums = array('<input class="checkbox" title="' . cplang('select_all') . '" type="checkbox" name="chkallv' . $group['groupid'] . '" onclick="checkAll(\'value\', this.form, ' . $group['groupid'] . ', \'chkallv' . $group['groupid'] . '\')" id="chkallv_' . $group['groupid'] . '" /><label for="chkallv_' . $group['groupid'] . '"> ' . $group['grouptitle'] . '</label>'); foreach ($perms as $perm) { $checked = strstr($forum[$perm], "\t{$group['groupid']}\t") ? 'checked="checked"' : NULL; $colums[] = '<input class="checkbox" type="checkbox" name="' . $perm . '[]" value="' . $group['groupid'] . '" chkvalue="' . $group['groupid'] . '" ' . $checked . '>'; }
$sharetitle = lang('admincp', 'share_type_space'); break; case 'blog': $shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=blog&id={$share['itemid']}&modblogkey={$share['modkey']}"; $sharetitle = lang('admincp', 'share_type_blog'); break; case 'album': $shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=album&id={$share['itemid']}&modalbumkey={$share['modkey']}"; $sharetitle = lang('admincp', 'share_type_album'); break; case 'article': $shareurl = "portal.php?mod=view&aid={$share['itemid']}&modarticlekey={$share['modkey']}"; $sharetitle = lang('admincp', 'share_type_article'); break; } showtagheader('tbody', '', true, 'hover'); showtablerow("id=\"mod_{$share['sid']}_row1\"", array("id=\"mod_{$share['sid']}_row1_op\" rowspan=\"3\" class=\"rowform threadopt\" style=\"width:80px;\"", '', 'width="120"', 'width="120"', 'width="55"', 'width="55"'), array("<ul class=\"nofloat\"><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_1\" value=\"validate\" onclick=\"mod_setbg({$share['sid']}, 'validate');\"><label for=\"mod_{$share['sid']}_1\">{$lang['validate']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_2\" value=\"delete\" onclick=\"mod_setbg({$share['sid']}, 'delete');\"><label for=\"mod_{$share['sid']}_2\">{$lang['delete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$doing['doid']}_3\" value=\"ignore\" onclick=\"mod_setbg({$share['sid']}, 'ignore');\"><label for=\"mod_{$share['sid']}_3\">{$lang['ignore']}</label></li></ul>", "<h3><a href=\"javascript:;\" onclick=\"display_toggle({$share[sid]});\">{$short_desc} {$share_censor_text}</a></h3>", $sharetitle, "<p><a target=\"_blank\" href=\"" . ADMINSCRIPT . "?action=members&operation=search&uid={$share['uid']}&submit=yes\">{$share['username']}</a></p> <p>{$share['dateline']}</p>", "<a target=\"_blank\" href=\"{$shareurl}\">{$lang['view']}</a>")); showtablerow("id=\"mod_{$share['sid']}_row2\"", 'colspan="4" style="padding: 10px; line-height: 180%;"', '<div style="overflow: auto; overflow-x: hidden; max-height:120px; height:auto !important; height:100px; word-break: break-all;">' . $share['body_general'] . '</div>'); showtablerow("id=\"mod_{$share['sid']}_row3\"", 'class="threadopt threadtitle" colspan="4"', "<a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=validate&page={$page}&frame=no\" target=\"fasthandle\">{$lang['validate']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=delete&page={$page}&frame=no\" target=\"fasthandle\">{$lang['delete']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=ignore&page={$page}&frame=no\" target=\"fasthandle\">{$lang['ignore']}</a>"); showtagfooter('tbody'); } showsubmit('modsubmit', 'submit', '', '<a href="#all" onclick="mod_setbg_all(\'validate\')">' . cplang('moderate_all_validate') . '</a> <a href="#all" onclick="mod_setbg_all(\'delete\')">' . cplang('moderate_all_delete') . '</a> <a href="#all" onclick="mod_setbg_all(\'ignore\')">' . cplang('moderate_all_ignore') . '</a> <a href="#all" onclick="mod_cancel_all();">' . cplang('moderate_all_cancel') . '</a>', $multipage, false); showtablefooter(); showformfooter(); } else { $moderation = array('validate' => array(), 'delete' => array(), 'ignore' => array()); $validates = $deletes = $ignores = 0; if (is_array($moderate)) { foreach ($moderate as $sid => $act) { $moderation[$act][] = $sid; }
showsetting('postsplit', '', '', getposttableselect()); if ($secStatus) { showsetting('recyclebin_search_security_thread', 'security', $security, 'radio'); } showsubmit('searchsubmit'); showtablefooter(); showformfooter(); showtagfooter('div'); if (submitcheck('searchsubmit')) { $security = $secStatus && $security; if ($security) { $postlistcount = C::t('#security#security_evilpost')->count_by_search($posttableid, null, $keywords, -5, $inforum, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($pstarttime), strtotime($pendtime)); } else { $postlistcount = C::t('forum_post')->count_by_search($posttableid, null, $keywords, -5, $inforum, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($pstarttime), strtotime($pendtime)); } showtagheader('div', 'postlist', $searchsubmit); showformheader('recyclebinpost&operation=search&frame=no', 'target="rbframe"', 'rbform'); showtableheader(cplang('recyclebinpost_result') . ' ' . $postlistcount . ' <a href="#" onclick="$(\'postlist\').style.display=\'none\';$(\'postsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'fixpadding'); if ($postlistcount && recyclebinpostshowpostlist($inforum, $authors, $pstarttime, $pendtime, $keywords, $start_limit, $lpp)) { $multi = multi($postlistcount, $lpp, $page, ADMINSCRIPT . "?action=recyclebinpost"); $multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=recyclebinpost&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi); $multi = str_replace("window.location='" . ADMINSCRIPT . "?action=recyclebinpost&page='+this.value", "page(this.value)", $multi); } showsubmit('rbsubmit', 'submit', '', '<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'delete\')">' . cplang('recyclebin_all_delete') . '</a> <a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'undelete\')">' . cplang('recyclebin_all_undelete') . '</a> <a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'ignore\')">' . cplang('recyclebin_all_ignore') . '</a> ', $multi); showtablefooter(); showformfooter(); echo '<iframe name="rbframe" style="display:none"></iframe>'; showtagfooter('div'); } } elseif ($operation == 'clean') { if (!submitcheck('cleanrbsubmit', 1)) {
showtagfooter('tbody'); showtagheader('tbody', 'reward_invite', $task['reward'] == 'invite'); showsetting('tasks_add_invitenum', 'prize_invite', $task['prize'], 'text'); showsetting('tasks_add_inviteexp', 'bonus_invite', $task['bonus'], 'text'); showtagfooter('tbody'); showtagheader('tbody', 'reward_group', $task['reward'] == 'group'); showsetting('tasks_add_group', array('prize_group', fetcharray('groupid', 'grouptitle', 'common_usergroup', "type='special' AND radminid='0'")), $task['prize'], 'select'); showsetting('tasks_add_groupexp', 'bonus_group', $task['bonus'], 'text'); showtagfooter('tbody'); showtitle('tasks_add_appyperm'); if (!$task['applyperm']) { $task['applyperm'] = 'all'; } $task['grouplimit'] = in_array($task['applyperm'], array('all', 'member', 'admin')) ? $task['applyperm'] : 'special'; showsetting('tasks_add_groupperm', array('grouplimit', array(array('all', cplang('tasks_add_group_all'), array('specialgroup' => 'none')), array('member', cplang('tasks_add_group_member'), array('specialgroup' => 'none')), array('admin', cplang('tasks_add_group_admin'), array('specialgroup' => 'none')), array('special', cplang('tasks_add_group_special'), array('specialgroup' => '')))), $task['grouplimit'], 'mradio'); showtagheader('tbody', 'specialgroup', $task['grouplimit'] == 'special'); showsetting('tasks_add_usergroup', array('applyperm[]', fetcharray('groupid', 'grouptitle', 'common_usergroup', '')), explode("\t", $task['applyperm']), 'mselect'); showtagfooter('tbody'); showsetting('tasks_add_relatedtask', array('relatedtaskid', fetcharray('taskid', 'name', 'common_task', "available='2' AND taskid!='{$task['taskid']}'")), $task['relatedtaskid'], 'select'); showsetting('tasks_add_maxnum', 'tasklimits', $task['tasklimits'], 'text'); $taskvars = array(); $query = DB::query("SELECT * FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'"); while ($taskvar = DB::fetch($query)) { if ($taskvar['sort'] == 'apply') { $taskvars['apply'][] = $taskvar; } elseif ($taskvar['sort'] == 'complete') { $taskvars['complete'][$taskvar['variable']] = $taskvar; } elseif ($taskvar['sort'] == 'setting' && $taskvar['name']) { $taskvars['setting'][$taskvar['variable']] = $taskvar; } }
showsetting('adv_edit_style_text_link', 'advnew[text][link]', $adv['parameters']['link'], 'text'); showsetting('adv_edit_style_text_size', 'advnew[text][size]', $adv['parameters']['size'], 'text'); showtagfooter('tbody'); showtagheader('tbody', 'style_image', $adv['parameters']['style'] == 'image'); showtitle('adv_edit_style_image'); showsetting('adv_edit_style_image_url', 'advnewimage', $adv['parameters']['url'], 'filetext'); showsetting('adv_edit_style_image_link', 'advnew[image][link]', $adv['parameters']['link'], 'text'); showsetting('adv_edit_style_image_alt', 'advnew[image][alt]', $adv['parameters']['alt'], 'text'); if ($imagesizes) { $v = $adv['parameters']['width'] . 'x' . $adv['parameters']['height']; showsetting('adv_edit_style_image_size', '', '', '<select onchange="setsize(this.value, \'image\')"><option value="x">' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>'); } showsetting('adv_edit_style_image_width', 'advnew[image][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="imagewidth" onchange="setpreview(\'image\')"'); showsetting('adv_edit_style_image_height', 'advnew[image][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="imageheight" onchange="setpreview(\'image\')"'); showtagfooter('tbody'); showtagheader('tbody', 'style_flash', $adv['parameters']['style'] == 'flash'); showtitle('adv_edit_style_flash'); showsetting('adv_edit_style_flash_url', 'advnewflash', $adv['parameters']['url'], 'filetext'); if ($imagesizes) { $v = $adv['parameters']['flash'] . 'x' . $adv['parameters']['flash']; showsetting('adv_edit_style_flash_size', '', '', '<select onchange="setsize(this.value, \'flash\')"><option>' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>'); } showsetting('adv_edit_style_flash_width', 'advnew[flash][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="flashwidth" onchange="setpreview(\'flash\')"'); showsetting('adv_edit_style_flash_height', 'advnew[flash][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="flashheight" onchange="setpreview(\'flash\')"'); showtagfooter('tbody'); echo '<tr><td colspan="2">'; if ($operation == 'edit') { echo '<input id="previewbtn" type="button" class="btn" onclick="$(\'advpreview\').style.display=\'\';this.form.preview.value=1;this.form.target=\'preview\';this.form.submit();" name="jspreview" value="' . $lang['preview'] . '"> '; } echo '<input type="submit" class="btn" name="advsubmit" onclick="this.form.preview.value=0;this.form.target=\'\'" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="0"></td></tr>'; showtablefooter();
foreach ($radioes as $radio) { $a .= '<li><input type="radio" name="' . $radioname . '" value="' . $radio[1] . '" class="radio" onclick="$(\'' . $textname . '\').value = this.value"' . ($radio[2] ? ' checked="checked"' : '') . ' /> ' . $radio[0] . '</li>'; } } $a .= '</ul>'; return $a; } shownav('tools', 'nav_creditwizard'); showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0))); showtips('creditwizard_tips_creditsuse'); showformheader('creditwizard&step=3'); showtableheader('creditwizard_step_menu_3'); showsetting('settings_credits_trans', '', '', '<select onchange="$(\'allowcreditstrans\').style.display = this.value != 0 ? \'\' : \'none\'" name="creditstransnew">' . $creditstransselect . '</select>'); showsetting('settings_credits_tax', '', '', showtextradio('creditstaxnew', $creditstax, 'creditstaxradio', array(array($lang['low'] . ' (0.01)', '0.01', $creditstax == '0.01'), array($lang['middle'] . ' (0.1)', '0.1', $creditstax == '0.1'), array($lang['high'] . ' (0.5)', '0.5', $creditstax == '0.5')))); showsetting('settings_credits_minexchange', '', '', showtextradio('exchangemincreditsnew', $exchangemincredits, 'exchangemincreditsradio', array(array($lang['low'] . ' (100)', 100, $exchangemincredits == 100), array($lang['middle'] . ' (1000)', 1000, $exchangemincredits == 1000), array($lang['high'] . ' (5000)', 5000, $exchangemincredits == 5000)))); showtagheader('tbody', 'allowcreditstrans', $creditstrans); showtitle('creditwizard_allowcreditstrans'); showsetting('settings_credits_mintransfer', '', '', showtextradio('transfermincreditsnew', $transfermincredits, 'transfermincreditsradio', array(array($lang['low'] . ' (100)', 100, $transfermincredits == 100), array($lang['middle'] . ' (1000)', 1000, $transfermincredits == 1000), array($lang['high'] . ' (5000)', 5000, $transfermincredits == 5000)))); showsetting('settings_credits_maxincperthread', '', '', showtextradio('maxincperthreadnew', $maxincperthread, 'maxincperthreadradio', array(array($lang['nolimit'] . ' (0)', 0, $maxincperthread == 0), array($lang['low'] . ' (10)', 10, $maxincperthread == 10), array($lang['middle'] . ' (50)', 50, $maxincperthread == 50), array($lang['high'] . ' (100)', 100, $maxincperthread == 100)))); showsetting('settings_credits_maxchargespan', '', '', showtextradio('maxchargespannew', $maxchargespan, 'maxchargespanradio', array(array($lang['nolimit'] . ' (0)', 0, $maxchargespan == 0), array($lang['low'] . ' (5)', 5, $maxchargespan == 5), array($lang['middle'] . ' (24)', 24, $maxchargespan == 24), array($lang['high'] . ' (48)', 48, $maxchargespan == 48)))); showtagfooter('tbody'); showsubmit('settingsubmit'); showtablefooter(); showformfooter(); } else { if ($creditstaxnew < 0 || $creditstaxnew >= 1) { $creditstaxnew = 0; } $creditstrans = explode(',', $creditstrans); $creditstrans[0] = (double) $creditstransnew; $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('creditstrans', '" . implode(',', $creditstrans) . "')");
function searchgroups($submit) { global $_G; require_once libfile('function/group'); empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array()); $groupselect = get_groupselect(0, $_GET['selectgroupid'], 0); $monthselect = $dayselect = $birthmonth = $birthday = ''; for ($m = 1; $m <= 12; $m++) { $m = sprintf("%02d", $m); $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n"; } for ($d = 1; $d <= 31; $d++) { $d = sprintf("%02d", $d); $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n"; } showtagheader('div', 'searchgroups', !$submit); echo '<script src="static/js/calendar.js" type="text/javascript"></script>'; showformheader("group&operation=manage"); showtableheader(); showsetting('groups_manage_name', 'srchname', $srchname, 'text'); showsetting('groups_manage_id', 'srchfid', $srchfid, 'text'); showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>'); showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range'); showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range'); showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range'); showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange'); showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange'); showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text'); showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text'); showtagfooter('tbody'); showsubmit('submit'); showtablefooter(); showformfooter(); showtagfooter('div'); }
$_G['gp_code'][$key] = trim($_G['gp_code'][$key]); $codeadd = !empty($_G['gp_code'][$key]) ? ", code='{$_G['gp_code'][$key]}'" : ''; DB::query("UPDATE " . DB::table('common_smiley') . " SET displayorder='{$_G['gp_displayorder'][$key]}' {$codeadd} WHERE id='{$key}'"); } } $fastsmiley[$id] = array_diff(array_unique(array_merge((array) $fastsmiley[$id], (array) $_G['gp_fast'])), $unsfast); DB::insert('common_setting', array('skey' => 'fastsmiley', 'svalue' => addslashes(serialize($fastsmiley))), false, true); updatecache(array('smilies', 'smileycodes', 'smilies_js')); cpmsg('smilies_edit_succeed', "action=smilies&operation=edit&id={$id}&page={$_G['gp_page']}", 'succeed'); } } elseif ($do == 'add') { if (!submitcheck('editsubmit')) { shownav('style', 'nav_smilies'); showsubmenu(cplang('smilies_edit') . ' - ' . $type[name], array(array('smilies_type', 'smilies', 0), array('admin', "smilies&operation=edit&id={$id}", !$do), array('add', "smilies&operation=edit&do=add&id={$id}", $do == 'add'))); showtips('smilies_tips'); showtagheader('div', 'addsmilies', TRUE); showtableheader('smilies_add', 'notop fixpadding'); showtablerow('', '', "<span class=\"bold marginright\">{$lang['smilies_type']}:</span>{$type['name']}"); showtablerow('', '', "<span class=\"bold marginright\">{$lang['dir']}:</span>{$smurl} {$lang['smilies_add_search']}"); showtablerow('', '', '<input type="button" class="btn" value="' . $lang['search'] . '" onclick="ajaxget(\'' . ADMINSCRIPT . '?action=smilies&operation=edit&do=add&id=' . $id . '&search=yes\', \'addsmilies\', \'addsmilies\', \'auto\');doane(event);">'); showtablefooter(); showtagfooter('div'); if ($_G['gp_search']) { $newid = 1; $newimages = ''; $imgfilter = array(); $query = DB::query("SELECT url FROM " . DB::table('common_smiley') . " WHERE typeid='{$id}' AND type='smiley'"); while ($img = DB::fetch($query)) { $imgfilter[] = $img[url]; } $smiliesdir = dir($smdir);
$fids[] = $thread['fid']; $thread['lastpost'] = dgmdate($thread['lastpost']); $threads .= showtablerow('', array('class="td25"', '', '', '', '', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"tidarray[]\" value=\"{$thread['tid']}\" checked=\"checked\" />", "<a href=\"forum.php?mod=viewthread&tid={$thread['tid']}\" target=\"_blank\">{$thread['subject']}</a>", "<a href=\"forum.php?mod=forumdisplay&fid={$thread['fid']}\" target=\"_blank\">{$_G['cache'][forums][$thread[fid]][name]}</a>", "<a href=\"home.php?mod=space&uid={$thread['authorid']}\" target=\"_blank\">{$thread['author']}</a>", $thread['replies'], $thread['views']), TRUE); } $multi = multi($threadcount, $topicperpage, $page, ADMINSCRIPT . "?action=threadsplit&operation=move"); $multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=threadsplit&operation=move&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi); $multi = str_replace("window.location='" . ADMINSCRIPT . "?action=threadsplit&operation=move&page='+this.value", "page(this.value)", $multi); } else { foreach ($threadlist as $thread) { $fids[] = $thread['fid']; $tids .= ',' . $thread['tid']; } $multi = ''; } $fids = implode(',', array_unique($fids)); showtagheader('div', 'threadlist', TRUE); showformheader("threadsplit&operation=move&sourcetableid={$_GET['sourcetableid']}&threadtomove=" . $threadtomove); showhiddenfields($_GET['detail'] ? array('fids' => $fids) : array('conditions' => serialize($conditions))); showtableheader(cplang('threads_result') . ' ' . $threadcount . ' <a href="###" onclick="$(\'threadlist\').style.display=\'none\';$(\'threadsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom'); showsubtitle(array('', 'threadsplit_move_to', 'threadsplit_manage_threadcount', 'threadsplit_manage_datalength', 'threadsplit_manage_indexlength', 'threadsplit_manage_table_createtime', 'threadsplit_manage_table_memo')); if (!$threadcount) { showtablerow('', 'colspan="3"', cplang('threads_thread_nonexistence')); } else { $threadtable_orig = C::t('forum_thread')->gettablestatus(); $tableid = 0; showtablerow('', array('class="td25"'), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == '0' ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"0\" />", $threadtable_orig['Name'], $threadtable_orig['Rows'], $threadtable_orig['Data_length'], $threadtable_orig['Index_length'], $threadtable_orig['Create_time'], $threadtable_info[0]['memo'])); foreach ($threadtableids as $tableid) { if ($tableid) { $tablename = "forum_thread_{$tableid}"; $tablestatus = C::t('forum_thread')->gettablestatus($tableid); showtablerow('', array(), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == $tableid ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"{$tableid}\" />", $tablestatus['Name'] . ($threadtable_info[$tableid]['displayname'] ? " (" . dhtmlspecialchars($threadtable_info[$tableid]['displayname']) . ")" : ''), $tablestatus['Rows'], $tablestatus['Data_length'], $tablestatus['Index_length'], $tablestatus['Create_time'], $threadtable_info[$tableid]['memo']));
$db_export_key = 'discuz'; $uc_backup_url = UC_API . '/admin.php?m=db&a=ls&iframe=1'; $db_export_tips = cplang('db_export_tips_nouc', array('uc_backup_url' => $uc_backup_url)) . cplang('db_export_tips'); $db_export_discuz_table = cplang('db_export_discuz_table'); } shownav('founder', 'nav_db', 'nav_db_export'); showsubmenu('nav_db', array(array('nav_db_export', 'db&operation=export', 1), array('nav_db_import', 'db&operation=import', 0), array('nav_db_runquery', 'db&operation=runquery', 0), array('nav_db_optimize', 'db&operation=optimize', 0), array('nav_db_dbcheck', 'db&operation=dbcheck', 0))); showtips($db_export_tips); showformheader('db&operation=export&setup=1'); showtableheader(); showsetting('db_export_type', array('type', array(array($db_export_key, $lang[$db_export], array('showtables' => 'none')), array('custom', $lang['db_export_custom'], array('showtables' => '')))), $db_export_key, 'mradio'); showtagheader('tbody', 'showtables'); showtablerow('', '', '<input class="checkbox" name="chkall" onclick="checkAll(\'prefix\', this.form, \'customtables\', \'chkall\', true)" checked="checked" type="checkbox" id="chkalltables" /><label for="chkalltables"> ' . cplang('db_export_custom_select_all') . ' - ' . $db_export_discuz_table) . '</label>'; showtablerow('', 'colspan="2"', mcheckbox('customtables', $dztables)); showtagfooter('tbody'); showtagheader('tbody', 'advanceoption'); showsetting('db_export_method', '', '', '<ul class="nofloat"><li><input class="radio" type="radio" name="method" value="shell" ' . $shelldisabled . ' onclick="if(\'' . intval($db->version() < '4.1') . '\') {if(this.form.sqlcompat[2].checked==true) this.form.sqlcompat[0].checked=true; this.form.sqlcompat[2].disabled=true; this.form.sizelimit.disabled=true;} else {this.form.sqlcharset[0].checked=true; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=true;}}" id="method_shell" /><label="method_shell"> ' . $lang['db_export_shell'] . '</label></li><li><input class="radio" type="radio" name="method" value="multivol" checked="checked" onclick="this.form.sqlcompat[2].disabled=false; this.form.sizelimit.disabled=false; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=false;}" id="method_multivol" /><label for="method_multivol"> ' . $lang['db_export_multivol'] . '</label> <input type="text" class="txt" size="40" name="sizelimit" value="2048" /></li></ul>'); showtitle('db_export_options'); showsetting('db_export_options_extended_insert', 'extendins', 0, 'radio'); showsetting('db_export_options_sql_compatible', array('sqlcompat', array(array('', $lang['default']), array('MYSQL40', 'MySQL 3.23/4.0.x'), array('MYSQL41', 'MySQL 4.1.x/5.x'))), '', 'mradio'); showsetting('db_export_options_charset', array('sqlcharset', array(array('', cplang('default')), $dbcharset ? array($dbcharset, strtoupper($dbcharset)) : array(), $db->version() > '4.1' && $dbcharset != 'utf8' ? array('utf8', 'UTF-8') : array()), TRUE), 0, 'mradio'); showsetting('db_export_usehex', 'usehex', 1, 'radio'); if (function_exists('gzcompress')) { showsetting('db_export_usezip', array('usezip', array(array('1', $lang['db_export_zip_1']), array('2', $lang['db_export_zip_2']), array('0', $lang['db_export_zip_3']))), 0, 'mradio'); } showsetting('db_export_filename', '', '', '<input type="text" class="txt" name="filename" value="' . $defaultfilename . '" />.sql'); showtagfooter('tbody'); showsubmit('exportsubmit', 'submit', '', 'more_options'); showtablefooter(); showformfooter(); } else {
showtagfooter('tbody'); showtagheader('tbody', "style_radio", $option['type'] == 'radio'); showtitle('threadtype_edit_vars_type_radio'); showsetting('threadtype_edit_choices', 'rules[radio][choices]', $option['rules']['choices'], 'textarea'); showtagfooter('tbody'); showtagheader('tbody', "style_checkbox", $option['type'] == 'checkbox'); showtitle('threadtype_edit_vars_type_checkbox'); showsetting('threadtype_edit_choices', 'rules[checkbox][choices]', $option['rules']['choices'], 'textarea'); showtagfooter('tbody'); showtagheader('tbody', "style_image", $option['type'] == 'image'); showtitle('threadtype_edit_vars_type_image'); showsetting('threadtype_edit_images_weight', 'rules[image][maxwidth]', $option['rules']['maxwidth'], 'text'); showsetting('threadtype_edit_images_height', 'rules[image][maxheight]', $option['rules']['maxheight'], 'text'); showsetting('threadtype_edit_inputsize', 'rules[image][inputsize]', $option['rules']['inputsize'], 'text'); showtagfooter('tbody'); showtagheader('tbody', "style_range", $option['type'] == 'range'); showtitle('threadtype_edit_vars_type_range'); showsetting('threadtype_edit_maxnum', 'rules[range][maxnum]', $option['rules']['maxnum'], 'text'); showsetting('threadtype_edit_minnum', 'rules[range][minnum]', $option['rules']['minnum'], 'text'); showsetting('threadtype_edit_inputsize', 'rules[range][inputsize]', $option['rules']['inputsize'], 'text'); showsetting('threadtype_edit_searchtxt', 'rules[range][searchtxt]', $option['rules']['searchtxt'], 'text'); showtagfooter('tbody'); showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { $titlenew = trim($_G['gp_titlenew']); $_G['gp_identifiernew'] = trim($_G['gp_identifiernew']); if (!$titlenew || !$_G['gp_identifiernew']) { cpmsg('threadtype_infotypes_option_invalid', '', 'error'); }
<br /><span class="smalltxt"><?php cplang('forums_edit_perm_formula_comment', null, true); ?> </span> </td></tr> <?php showtablefooter(); showtableheader('', 'noborder fixpadding'); $forum['spviewperm'] = explode("\t", $forum['spviewperm']); showsetting('forums_edit_perm_spview', array('spviewpermnew', $spviewgroup), $forum['spviewperm'], 'mcheckbox'); showsetting('forums_edit_perm_formulapermmessage', 'formulapermmessagenew', $forum['formulapermmessage'], 'textarea'); showtablefooter(); } if ($pluginsetting) { showtagfooter('div'); showtagheader('div', 'plugin', $anchor == 'plugin'); showtableheader('', 'noborder fixpadding'); foreach ($pluginsetting as $setting) { showtitle($setting['name']); foreach ($setting['setting'] as $varid => $var) { if ($var['type'] != 'select') { showsetting($var['title'], 'pluginnew[' . $varid . ']', $forum['plugin'][$varid], $var['type'], '', 0, $var['description']); } else { showsetting($var['title'], array('pluginnew[' . $varid . ']', $var['select']), $forum['plugin'][$varid], $var['type'], '', 0, $var['description']); } } } showtablefooter(); } showtagfooter('div'); showtableheader('', 'notop');
function searchmembers($operation = '') { global $db, $tablepre, $usergroupid, $username, $srchemail, $lower, $higher, $extcredits, $submit, $lang; $groupselect = array(); $usergroupid = isset($usergroupid) && is_array($usergroupid) ? $usergroupid : array(); $query = $db->query("SELECT type, groupid, grouptitle, radminid FROM {$tablepre}usergroups WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid"); while ($group = $db->fetch_array($query)) { $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type']; $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n"; } $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($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>'; $monthselect = $dayselect = ''; for ($m = 1; $m <= 12; $m++) { $m = sprintf("%02d", $m); $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n"; } for ($d = 1; $d <= 31; $d++) { $d = sprintf("%02d", $d); $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n"; } showtagheader('div', 'searchmembers', !$submit); echo '<script src="include/js/calendar.js" type="text/javascript"></script>'; showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\""); showtableheader(); showsetting('members_search_user', 'username', $username, 'text'); showsetting('members_search_uid', 'uid', $uid, 'text'); showsetting('members_search_group', '', '', '<select name="usergroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . lang('unlimited') . '</option>' . $groupselect . '</select>'); showtagheader('tbody', 'advanceoption'); showsetting('members_search_email', 'srchemail', $srchemail, 'text'); showsetting("{$lang['credits']} {$lang['members_search_between']}", array("higher[credits]", "lower[credits]"), array($higher[credits], $lower[credits]), 'range'); if (!empty($extcredits)) { foreach ($extcredits as $id => $credit) { showsetting("{$credit['title']} {$lang['members_search_between']}", array("higher[extcredits{$id}]", "lower[extcredits{$id}]"), array($higher['extcredits' . $id], $lower['extcredits' . $id]), 'range'); } } showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range'); showsetting('members_search_regip', 'regip', $regip, 'text'); showsetting('members_search_lastip', 'lastip', $lastip, 'text'); showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($regdateafter, $regdatebefore), 'daterange'); showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($lastvisitafter, $lastvisitbefore), 'daterange'); showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($lastpostafter, $lastpostbefore), 'daterange'); showsetting('members_search_birthday', '', '', '<input type="text" class="txt" name="birthyear" style="width:86px; margin-right:0" value="' . dhtmlspecialchars($year) . '"> ' . $lang['year'] . ' <input type="text" class="txt" name="birthmonth" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($month) . '"> ' . $lang['month'] . ' <input type="text" class="txt" name="birthday" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($day) . '"> ' . $lang['day']); showtagfooter('tbody'); showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options'); showtablefooter(); showformfooter(); showtagfooter('div'); }
} showsetting('setting_ranklist_update_cache_choose', array('update_ranklist_cache', $ranklistarray), '', 'mcheckbox'); showtablerow('', 'colspan="10" class="lineheight"', $lang['setting_ranklist_cache_comment']); showtablefooter(); showtableheader('', 'notop'); 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(); showformfooter(); exit; } elseif ($operation == 'mobile') { $setting['mobile'] = unserialize($setting['mobile']); showtips('setting_mobile_status_tips'); showtableheader('setting_mobile_status', '', 'id="status"' . ($_G['gp_anchor'] != 'status' ? ' style="display: none"' : '')); showsetting('setting_mobile_allowmobile', array('settingnew[mobile][allowmobile]', array(array(1, $lang['yes'], array('mobileext' => '')), array(0, $lang['no'], array('mobileext' => 'none'))), TRUE), $setting['mobile']['allowmobile'] ? $setting['mobile']['allowmobile'] : 0, 'mradio'); showtagheader('tbody', 'mobileext', $setting['mobile']['allowmobile'], 'sub'); showsetting('setting_mobile_mobileforward', 'settingnew[mobile][mobileforward]', $setting['mobile']['mobileforward'], 'radio'); showsetting('setting_mobile_register', 'settingnew[mobile][mobileregister]', $setting['mobile']['mobileregister'], 'radio'); showsetting('setting_mobile_seccode', 'settingnew[mobile][mobileseccode]', $setting['mobile']['mobileseccode'], 'radio'); showsetting('setting_mobile_simpletype', array('settingnew[mobile][mobilesimpletype]', array(array(0, cplang('setting_mobile_simpletype_no')), array(1, cplang('setting_mobile_simpletype_yes')))), $setting['mobile']['mobilesimpletype'] ? $setting['mobile']['mobilesimpletype'] : 0, 'mradio'); showsetting('setting_mobile_topicperpage', 'settingnew[mobile][mobiletopicperpage]', $setting['mobile']['mobiletopicperpage'] ? $setting['mobile']['mobiletopicperpage'] : 10, 'text'); showsetting('setting_mobile_postperpage', 'settingnew[mobile][mobilepostperpage]', $setting['mobile']['mobilepostperpage'] ? $setting['mobile']['mobilepostperpage'] : 5, 'text'); showsetting('setting_mobile_cachetime', 'settingnew[mobile][mobilecachetime]', $setting['mobile']['mobilecachetime'] ? $setting['mobile']['mobilecachetime'] : 0, 'text'); showsetting('setting_mobile_index_forumview', array('settingnew[mobile][mobileforumview]', array(array(1, $lang['pack']), array(0, $lang['unwind']))), $setting['mobile']['mobileforumview'] ? $setting['mobile']['mobileforumview'] : 0, 'mradio'); showsetting('setting_mobile_come_from', 'settingnew[mobile][mobilecomefrom]', $setting['mobile']['mobilecomefrom'], 'textarea'); showsetting('setting_mobile_preview', 'settingnew[mobile][mobilepreview]', $setting['mobile']['mobilepreview'], 'radio'); showtagfooter('tbody'); showsubmit('settingsubmit'); showformfooter(); showtablefooter(); exit;
function showsearchform($operation = '') { global $_G, $lang; $groupselect = array(); $usergroupid = isset($_G['gp_usergroupid']) && is_array($_G['gp_usergroupid']) ? $_G['gp_usergroupid'] : array(); $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid"); while ($group = DB::fetch($query)) { $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type']; $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n"; } $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($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>'; showtagheader('div', 'searchmembers', !$_G['gp_submit']); echo '<script src="static/js/calendar.js" type="text/javascript"></script>'; echo '<style type="text/css">#residedistrictbox select, #birthdistrictbox select{width: auto;}</style>'; showformheader("plugins&operation=config&do=" . $_G['gp_do'] . "&identifier=smstong&pmod=sendsms", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\""); showtableheader(); showsetting('members_search_user', 'username', $_G['gp_username'], 'text'); showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text'); showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10">' . $groupselect . '</select>'); showtablefooter(); showtableheader(); $_G['showsetting_multirow'] = 1; showtagheader('tbody', 'advanceoption'); if (!empty($_G['setting']['connect']['allow'])) { showsetting('members_search_conisbind', array('conisbind', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_conisbind'], 'mradio'); showsetting('members_search_uinblacklist', array('uin_low', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_uin_low'], 'mradio'); } showsetting('members_search_online', array('sid_noempty', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_online'], 'mradio'); showsetting('members_search_lockstatus', array('status', array(array(-1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_status'], 'mradio'); showsetting('members_search_emailstatus', array('emailstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_emailstatus'], 'mradio'); showsetting('members_search_avatarstatus', array('avatarstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_avatarstatus'], 'mradio'); showsetting('members_search_email', 'email', $_G['gp_email'], 'text'); showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_low", "credits_high"), array($_G['gp_credits_low'], $_G['gp_credtis_high']), 'range'); if (!empty($_G['setting']['extcredits'])) { foreach ($_G['setting']['extcredits'] as $id => $credit) { showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_low", "extcredits{$id}" . "_high"), array($_G['gp_extcredits' . $id . '_low'], $_G['gp_extcredits' . $id . '_high']), 'range'); } } showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_G['gp_friends_low'], $_G['gp_friends_high']), 'range'); showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_G['gp_posts_low'], $_G['gp_posts_high']), 'range'); showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text'); showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text'); showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_G['gp_regdate_after'], $_G['gp_regdate_before']), 'daterange'); showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_G['gp_lastvisit_after'], $_G['gp_lastvisit_before']), 'daterange'); showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_G['gp_lastpost_after'], $_G['gp_lastpost_before']), 'daterange'); showsetting('members_search_group_fid', 'fid', $_G['gp_fid'], 'text'); if ($_G['setting']['verify']) { $verifydata = array(); foreach ($_G['setting']['verify'] as $key => $value) { if ($value['available']) { $verifydata[] = array('verify' . $key, $value['title']); } } if (!empty($verifydata)) { showsetting('members_search_verify', array('verify', $verifydata), $_G['gp_verify'], 'mcheckbox'); } } $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n"; $yy = dgmdate(TIMESTAMP, 'Y'); for ($y = $yy; $y >= $yy - 100; $y--) { $y = sprintf("%04d", $y); $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n"; } for ($m = 1; $m <= 12; $m++) { $m = sprintf("%02d", $m); $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n"; } for ($d = 1; $d <= 31; $d++) { $d = sprintf("%02d", $d); $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n"; } showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']); loadcache('profilesetting'); unset($_G['cache']['profilesetting']['uid']); unset($_G['cache']['profilesetting']['birthyear']); unset($_G['cache']['profilesetting']['birthmonth']); unset($_G['cache']['profilesetting']['birthday']); require_once libfile('function/profile'); foreach ($_G['cache']['profilesetting'] as $fieldid => $value) { if (!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) { continue; } if ($fieldid == 'gender') { $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n"; $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n"; $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n"; $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n"; showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>'); } elseif ($fieldid == 'birthcity') { $elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity'); showsetting($value['title'], '', '', '<div id="birthdistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'birthdistrictbox', 1) . '</div>'); } elseif ($fieldid == 'residecity') { $elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity'); showsetting($value['title'], '', '', '<div id="residedistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'residedistrictbox', 1) . '</div>'); } elseif ($fieldid == 'constellation') { $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n"; for ($i = 1; $i <= 12; $i++) { $name = lang('space', 'constellation_' . $i); $select .= "<option value=\"{$name}\">{$name}</option>\n"; } showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>'); } elseif ($fieldid == 'zodiac') { $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n"; for ($i = 1; $i <= 12; $i++) { $option = lang('space', 'zodiac_' . $i); $select .= "<option value=\"{$option}\">{$option}</option>\n"; } showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>'); } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') { $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n"; $value['choices'] = explode("\n", $value['choices']); foreach ($value['choices'] as $option) { $option = trim($option); $select .= "<option value=\"{$option}\">{$option}</option>\n"; } showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>'); } else { showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />'); } } showtagfooter('tbody'); $_G['showsetting_multirow'] = 0; showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options'); showtablefooter(); showformfooter(); showtagfooter('div'); }
} } showtitle('tasks_add_conditions'); if ($task['scriptname'] == 'member') { showsetting('tasks_add_limit_act', array('act', array(array('buddy', lang('tasks_add_act_buddy'), array('timelimit' => 'none')), array('favorite', lang('tasks_add_act_favorite'), array('timelimit' => 'none')), array('magic', lang('tasks_add_act_magic'), array('timelimit' => '')))), $taskvars['complete']['act']['value'], 'mradio'); showsetting('tasks_add_limit_num', 'num', $taskvars['complete']['num']['value'], 'text'); showtagheader('tbody', 'timelimit', $taskvars['complete']['act']['value'] == 'magic'); showsetting('tasks_add_limit_time', 'time', $taskvars['complete']['time']['value'], 'text'); showtagfooter('tbody'); } elseif ($task['scriptname'] == 'post') { showsetting('tasks_add_limit_act', array('act', array(array('newthread', lang('tasks_add_act_newthread'), array('forumlimit' => '', 'speciallimit' => 'none')), array('newreply', lang('tasks_add_act_newreply'), array('forumlimit' => 'none', 'speciallimit' => '')), array('newpost', lang('tasks_add_act_newpost'), array('forumlimit' => '', 'speciallimit' => 'none')))), $taskvars['complete']['act']['value'], 'mradio'); require_once DISCUZ_ROOT . './include/forum.func.php'; showtagheader('tbody', 'forumlimit', $taskvars['complete']['act']['value'] != 'newreply'); showsetting('tasks_add_limit_forumid', '', '', '<SELECT name="forumid"><option value="">' . lang('nolimit') . '</option>' . forumselect(FALSE, 0, $taskvars['complete']['forumid']['value']) . '</select>'); showtagfooter('tbody'); showtagheader('tbody', 'speciallimit', $taskvars['complete']['act']['value'] == 'newreply'); showsetting('tasks_add_limit_threadid', 'threadid', $taskvars['complete']['threadid']['value'] ? $taskvars['complete']['threadid']['value'] : '', 'text'); $author = $taskvars['complete']['authorid']['value'] && ($author = $db->result_first("SELECT username FROM {$tablepre}members WHERE uid='{$taskvars[complete][authorid][value]}'")) ? $author : ''; showsetting('tasks_add_limit_authorid', 'author', $author, 'text'); showtagfooter('tbody'); showsetting('tasks_add_limit_num', 'num', $taskvars['complete']['num']['value'], 'text'); showsetting('tasks_add_limit_time', 'time', $taskvars['complete']['time']['value'], 'text'); } else { if ($taskvars['complete']) { foreach ($taskvars['complete'] as $taskvar) { if ($taskvar['variable']) { if ($taskvar['variable'] == 'forumid') { require_once DISCUZ_ROOT . './include/forum.func.php'; showsetting($taskvar['name'], '', '', '<SELECT name="forumid"><option value="">' . lang('nolimit') . '</option>' . forumselect(FALSE, 0, $taskvars['complete']['forumid']['value']) . '</select>'); } elseif ($taskvar['variable'] == 'authorid') { $author = $taskvars['complete']['authorid']['value'] && ($author = $db->result_first("SELECT username FROM {$tablepre}members WHERE uid='{$taskvars[complete][authorid][value]}'")) ? $author : '';
if (!submitcheck('varsubmit')) { shownav('plugin'); showsubmenu($lang['plugins_edit'] . ' - ' . $pluginvar['name'], array(array('plugins_list', 'plugins', 0), array('config', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=config', 0), array('plugins_config_module', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=modules', 0), array('plugins_config_vars', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=vars', 1), array('export', 'plugins&operation=export&pluginid=' . $pluginid, 0))); $typeselect = '<select name="typenew" onchange="if(this.value.indexOf(\'select\') != -1) $(\'extra\').style.display=\'\'; else $(\'extra\').style.display=\'none\';">'; foreach (array('number', 'text', 'radio', 'textarea', 'select', 'selects', 'color', 'date', 'datetime', 'forum', 'forums', 'group', 'groups', 'extcredit', 'forum_text', 'forum_textarea', 'forum_radio', 'forum_select', 'group_text', 'group_textarea', 'group_radio', 'group_select') as $type) { $typeselect .= '<option value="' . $type . '" ' . ($pluginvar['type'] == $type ? 'selected' : '') . '>' . $lang['plugins_edit_vars_type_' . $type] . '</option>'; } $typeselect .= '</select>'; showformheader("plugins&operation=vars&pluginid={$pluginid}&pluginvarid={$pluginvarid}"); showtableheader(); showtitle($lang['plugins_edit_vars'] . ' - ' . $pluginvar['title']); showsetting('plugins_edit_vars_title', 'titlenew', $pluginvar['title'], 'text'); showsetting('plugins_edit_vars_description', 'descriptionnew', $pluginvar['description'], 'textarea'); showsetting('plugins_edit_vars_type', '', '', $typeselect); showsetting('plugins_edit_vars_variable', 'variablenew', $pluginvar['variable'], 'text'); showtagheader('tbody', 'extra', $pluginvar['type'] == 'select' || $pluginvar['type'] == 'selects'); showsetting('plugins_edit_vars_extra', 'extranew', $pluginvar['extra'], 'textarea'); showtagfooter('tbody'); showsubmit('varsubmit'); showtablefooter(); showformfooter(); } else { $titlenew = cutstr(dhtmlspecialchars(trim($_G['gp_titlenew'])), 25); $descriptionnew = cutstr(dhtmlspecialchars(trim($_G['gp_descriptionnew'])), 255); $variablenew = trim($_G['gp_variablenew']); $extranew = dhtmlspecialchars(trim($_G['gp_extranew'])); if (!$titlenew) { cpmsg('plugins_edit_var_title_invalid', '', 'error'); } elseif ($variablenew != $pluginvar['variable']) { $query = DB::query("SELECT pluginvarid FROM " . DB::table('common_pluginvar') . " WHERE variable='{$variablenew}'"); if (DB::num_rows($query) || !$variablenew || strlen($variablenew) > 40 || !ispluginkey($variablenew)) {
function showimportdata() { showsetting('import_type', array('importtype', array(array('file', cplang('import_type_file'), array('importfile' => '', 'importtxt' => 'none')), array('txt', cplang('import_type_txt'), array('importfile' => 'none', 'importtxt' => '')))), 'file', 'mradio'); showtagheader('tbody', 'importfile', TRUE); showsetting('import_file', 'importfile', '', 'file'); showtagfooter('tbody'); showtagheader('tbody', 'importtxt'); showsetting('import_txt', 'importtxt', '', 'textarea'); showtagfooter('tbody'); }
updatecache('setting'); cpmsg('ec_credit_succeed', 'action=ec&operation=credit', 'succeed'); } } elseif ($operation == 'inviteorders') { if (!submitcheck('ordersubmit')) { $start_limit = ($page - 1) * $_G['tpp']; $sql = ''; $sql .= $_G['gp_orderstatus'] != '' ? " AND status='{$_G['gp_orderstatus']}'" : ''; $sql .= $_G['gp_orderid'] != '' ? " AND orderid='{$_G['gp_orderid']}'" : ''; $sql .= $_G['gp_email'] != '' ? " AND email='{$_G['gp_email']}'" : ''; $orderurl = array('alipay' => 'https://www.alipay.com/trade/query_trade_detail.htm?trade_no=', 'tenpay' => 'https://www.tenpay.com/med/tradeDetail.shtml?trans_id='); shownav('extended', 'nav_ec'); showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 0), array('nav_ec_alipay', 'ec&operation=alipay', 0), array('nav_ec_credit', 'ec&operation=credit', 0), array('nav_ec_orders', 'ec&operation=orders', 0), array('nav_ec_tradelog', 'tradelog', 0), array('nav_ec_inviteorders', 'ec&operation=inviteorders', 1))); $ordercount = DB::result_first("SELECT COUNT(*) FROM " . DB::table('forum_order') . " WHERE uid='0' {$sql}"); $multipage = multi($ordercount, $_G['tpp'], $page, ADMINSCRIPT . "?action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}"); showtagheader('div', 'orderlist', TRUE); showformheader('ec&operation=inviteorders'); showtableheader('ec_inviteorders_search'); $_G['showsetting_multirow'] = 1; showsetting('ec_orders_search_status', array('orderstatus', array(array('', $lang['ec_orders_search_status_all']), array(1, $lang['ec_orders_search_status_pending']), array(2, $lang['ec_orders_search_status_auto_finished']))), intval($_G['gp_orderstatus']), 'select'); showsetting('ec_orders_search_id', 'orderid', $_G['gp_orderid'], 'text'); showsetting('ec_orders_search_email', 'email', $_G['gp_email'], 'text'); showsubmit('searchsubmit', 'submit'); showtablefooter(); showtableheader('result'); showsubtitle(array('', 'ec_orders_id', 'ec_inviteorders_status', 'ec_inviteorders_buyer', 'ec_orders_amount', 'ec_orders_price', 'ec_orders_submitdate', 'ec_orders_confirmdate')); $query = DB::query("SELECT *\r\n\t\t\tFROM " . DB::table('forum_order') . " WHERE uid='0' {$sql} ORDER BY submitdate DESC\r\n\t\t\tLIMIT {$start_limit}, {$_G['tpp']}"); while ($order = DB::fetch($query)) { switch ($order['status']) { case 1: $order['orderstatus'] = $lang['ec_orders_search_status_pending'];
cpmsg('focus_add_num_limit', $BASESCRIPT . '?action=misc&operation=focus', 'error'); } if (!submitcheck('addsubmit')) { shownav('adv', 'misc_focus'); showsubmenu('misc_focus', array(array('config', 'misc&operation=focus&do=config', 0), array('admin', 'misc&operation=focus', 0), array(array('menu' => 'add', 'submenu' => array(array('misc_focus_handadd', 'misc&operation=focus&do=handadd'), array('misc_focus_threadadd', 'misc&operation=focus&do=threadadd'), array('misc_focus_autoadd', 'misc&operation=focus&do=recommend'))), '', 1))); showtips('misc_focus_add_tips'); showformheader('misc&operation=focus&do=threadadd'); showtableheader('misc_focus_threadadd', 'fixpadding'); showsetting('misc_focus_threadurl', 'focus_url', '', 'text'); echo '<input type="hidden" value="" name="focus_tid" id="focus_tid" />'; showtagheader('tbody', 'focus_detail'); showtagfooter('tbody'); showtagheader('tbody', 'fetchthread', TRUE); echo '<tr><td colspan="15"><div class="fixsel"><input type="button" value="' . lang('misc_focus_get_threadcontent') . '" name="fetchthread" class="btn" onclick="fetchThread();" /></div></td></tr>'; showtagfooter('tbody'); showtagheader('tbody', 'addsubmit'); showsubmit('addsubmit', 'submit', '', '<input type="button" class="btn" name="settingsubmit" value="' . lang('misc_focus_reget_threadcontent') . '" onclick="fetchThread();" class="act lightlink normal" />'); showtagfooter('tbody'); showtablefooter(); showformfooter(); echo <<<EOT <script type="text/JavaScript"> \tfunction fetchThread() { \t\tvar focustid = ''; \t\tvar focusurl = \$('cpform').focus_url.value; \t\tvar re = /tid=(\\d+)/ig; \t\tvar matches = re.exec(focusurl); \t\tif(matches != null) { \t\t\tfocustid = matches[1]; \t\t} else {
$attachments .= showtablerow('', array('class="td25"', 'title="' . $attachment['description'] . '" class="td21"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$attachment['aid']}\" />", $attachment['remote'] ? "<span class=\"diffcolor3\">{$attachment['filename']}" : $attachment['filename'], "<a href=\"{$attachment['url']}/{$attachment['attachment']}\" class=\"smalltxt\" target=\"_blank\">" . cutstr($attachment['attachment'], 30) . "</a>", $attachment['author'], "<a href=\"viewthread.php?tid={$attachment['tid']}\" target=\"_blank\">" . cutstr($attachment['subject'], 20) . "</a>", $attachsize, $attachment['downloads'], $matched ? "<em class=\"error\">{$matched}<em>" : "<a href=\"attachment.php?aid=" . aidencode($attachment['aid']) . "&noupdate=yes\" target=\"_blank\" class=\"act nomargin\">{$lang['download']}</a>"), TRUE); } } $attachmentcount = $db->result_first("SELECT count(*) FROM {$tablepre}attachments a LEFT JOIN {$tablepre}attachmentfields af ON a.aid=af.aid, {$tablepre}posts p, {$tablepre}threads t, {$tablepre}forums f\r\n\t\t\tWHERE t.tid=a.tid AND f.fid=p.fid AND t.displayorder>='0' AND p.invisible='0' AND {$sql}"); $multipage = multi($attachmentcount, $ppp, $page, "{$BASESCRIPT}?action=attachments"); $multipage = preg_replace("/href=\"{$BASESCRIPT}\\?action=attachments&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multipage); $multipage = str_replace("window.location={$BASESCRIPT}.'?action=attachments&page='+this.value", "page(this.value)", $multipage); echo <<<EOT <script type="text/JavaScript"> \tfunction page(number) { \t\t\$('attachmentforum').page.value=number; \t\t\$('attachmentforum').searchsubmit.click(); \t} </script> EOT; showtagheader('div', 'admin', $searchsubmit); showformheader('attach', '', 'attachmentforum'); showhiddenfields(array('page' => $page, 'nomatched' => $nomatched, 'inforum' => $inforum, 'sizeless' => $sizeless, 'sizemore' => $sizemore, 'dlcountless' => $dlcountless, 'dlcountmore' => $dlcountmore, 'daysold' => $daysold, 'filename' => $filename, 'keywords' => $keywords, 'author' => $author)); echo '<input type="submit" name="searchsubmit" value="' . lang('submit') . '" class="btn" style="display: none" />'; showformfooter(); showformheader('attach&frame=no', 'target="attachmentframe"'); showtableheader(); showsubtitle(array('', 'filename', 'attach_path', 'author', 'attach_thread', 'size', 'attach_downloadnums', '')); echo $attachments; showsubmit('deletesubmit', 'submit', 'del', '<a href="###" onclick="$(\'admin\').style.display=\'none\';$(\'search\').style.display=\'\';" class="act lightlink normal">' . lang('research') . '</a>', $multipage); showtablefooter(); showformfooter(); echo '<iframe name="attachmentframe" style="display:none"></iframe>'; showtagfooter('div'); } } else {
array(0, cplang('misc_customnav_url_open_default')), array(1, cplang('misc_customnav_url_open_blank')) ), TRUE), $nav['target'], 'mradio'); if(!$nav['parentid']) { showsetting('misc_customnav_logo', 'logonew', $nav['logo'], 'filetext', '', 0, cplang('misc_customnav_logo_comment').$logohtml); showsetting('misc_customnav_level', array('levelnew', array( array(0, cplang('nolimit')), array(1, cplang('member')), array(2, cplang('usergroups_system_3')), array(3, cplang('usergroups_system_1')), )), $nav['level'], 'select'); showsetting('misc_customnav_subtype', array('subtypenew', array( array(0, cplang('misc_customnav_subtype_menu'), array('subcols' => 'none')), array(1, cplang('misc_customnav_subtype_sub'), array('subcols' => '')), )), $nav['subtype'], 'mradio'); showtagheader('tbody', 'subcols', $nav['subtype'], 'sub'); showsetting('misc_customnav_subcols', 'subcolsnew', $nav['subcols'], 'text'); showtagfooter('tbody'); } showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { $namenew = trim(dhtmlspecialchars($_GET['namenew'])); $titlenew = trim(dhtmlspecialchars($_GET['titlenew'])); $urlnew = str_replace(array('&'), array('&'), dhtmlspecialchars($_GET['urlnew'])); $colornew = $_GET['colornew']; $parentidnew = $_GET['parentidnew']; $subtypenew = $_GET['subtypenew'];
showtagfooter('div'); showtagheader('div', 'llist', $anchor == 'llist'); showtips('misc_stamp_listtips'); showformheader('misc&operation=stamp&type=list'); showhiddenfields(array('anchor' => 'llist')); showtableheader(); showsubtitle(array('', 'misc_stamp_id', 'misc_stamp_listname', 'smilies_edit_image', 'smilies_edit_filename')); foreach ($stamplist as $smiley) { showtablerow('', array('class="td25"', 'class="td25"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$smiley['id']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayorder[{$smiley['id']}]\" value=\"{$smiley['displayorder']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"code[{$smiley['id']}]\" value=\"{$smiley['code']}\">", "<img src=\"static/image/stamp/{$smiley['url']}\">", $smiley['url'])); $imgfilter[] = $smiley['url']; } showsubmit('stampsubmit', 'submit', 'del'); showtablefooter(); showformfooter(); showtagfooter('div'); showtagheader('div', 'add', $anchor == 'add'); showformheader('misc&operation=stamp'); showtips('misc_stamp_addtips'); showtableheader(); showsubtitle(array('add', 'misc_stamp_type', 'misc_stamp_id', 'misc_stamp_imagename', 'smilies_edit_image', 'smilies_edit_filename')); $newid = 0; $imgextarray = array('png', 'gif'); $stampsdir = dir(DISCUZ_ROOT . './static/image/stamp'); while ($entry = $stampsdir->read()) { if (in_array(strtolower(fileext($entry)), $imgextarray) && !in_array($entry, $imgfilter) && is_file(DISCUZ_ROOT . './static/image/stamp/' . $entry)) { showtablerow('', array('class="td25"', 'class="td28 td24 rowform"', 'class="td23"'), array("<input type=\"checkbox\" name=\"addcheck[{$newid}]\" id=\"addcheck_{$newid}\" class=\"checkbox\">", "<ul onmouseover=\"altStyle(this);\">" . "<li class=\"checked\"><input type=\"radio\" name=\"addtype[{$newid}]\" value=\"0\" checked=\"checked\" class=\"radio\">" . cplang('misc_stamp_thread') . "</li>" . "<li><input type=\"radio\" name=\"addtype[{$newid}]\" value=\"1\" class=\"radio\" onclick=\"\$('addcheck_{$newid}').checked='true'\">" . cplang('misc_stamp_list') . "</li>" . "</ul>", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"adddisplayorder[{$newid}]\" value=\"0\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"addcode[{$newid}]\" value=\"\">", "<img src=\"static/image/stamp/{$entry}\" />", "<input type=\"hidden\" class=\"txt\" size=\"35\" name=\"addurl[{$newid}]\" value=\"{$entry}\">{$entry}")); $newid++; } } $stampsdir->close(); if (!$newid) {
showtagheader('tbody', '', true); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone') . '</strong>', $doctorService->checkDNSResult(3, $_G['setting']))); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone_test') . '</strong>', $doctorService->showTestJS(3))); showtagfooter('tbody'); showtagheader('tbody', 'cloud_tbody_qzone_test', false); showtagfooter('tbody'); showtagheader('tbody', 'cloud_tbody_site_test', true); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_site_test') . '</strong>', cplang('cloud_doctor_site_test_result', array('imgdir' => $_G['style']['imgdir'])))); showtagfooter('tbody'); showtagheader('tbody', '', true); showtitle('cloud_doctor_title_plugin'); $doctorService->showPlugins(); showtagfooter('tbody'); if ($appService->getCloudAppStatus('connect')) { if ($op == 'fixGuest') { $doctorService->fixGuestGroup(cplang('connect_guest_group_name')); } showtagheader('tbody', '', true); showtitle('cloud_doctor_title_connect'); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_id') . '</strong>', !empty($_G['setting']['connectappid']) ? $_G['setting']['connectappid'] : $lang['cloud_doctor_connect_reopen'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_key') . '</strong>', !empty($_G['setting']['connectappkey']) ? preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['connectappkey']) . ' ' . $lang['cloud_site_key_safetips'] : $lang['cloud_doctor_connect_reopen'])); $guestGroupStr = cplang('cloud_doctor_result_success') . ' ' . cplang('cloud_doctor_normal'); if (!$doctorService->checkGuestGroup()) { $guestGroupStr = cplang('cloud_doctor_result_failure') . ' ' . cplang('cloud_doctor_connect_fix'); } showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_guestgroup') . '</strong>', $guestGroupStr)); showtagfooter('tbody'); } showtablefooter(); $doctorService->showCloudDoctorJS(); }
} elseif (($operation == 'edit' || $operation == 'add') && $do == 'poi') { $anchor = in_array($_GET['anchor'], array('basic', 'html')) ? $_GET['anchor'] : 'basic'; @(include_once DISCUZ_ROOT . './data/cache/cache_domain.php'); echo '<div style="height:30px;line-height:30px;"><a href="admin.php?action=yuexiamen&operation=add&area=' . $area . '&do=poi" >增加</a> | <a href="admin.php?action=yuexiamen&operation=list&area=' . $area . '&do=poi">列表</a> </div>'; // $channeldomain = isset($rootdomain['channel']) && $rootdomain['channel'] ? $rootdomain['channel'] : array(); // print_r($channeldomain);exit; // var_dump(submitcheck('detailsubmit'));exit; // var_dump($_GET['formhash']) ;exit; if (!submitcheck('detailsubmit')) { $url = 'yuexiamen&operation=' . $operation . '&do=' . $do . '&poiid=' . $poiid . '&area=' . $area; $result = array(); if ($poiid) { $result = C::t('yuexiamen_poi')->fetch_all_by_id($poiid)[0]; } showtagheader('div', 'basic', $anchor == 'basic'); showformheader($url, $extra = 'enctype="multipart/form-data" '); showtableheader(); $catemsg = ''; echo <<<INPUT \t\t\t<script type="text/javascript"> function previewImage(file) { var MAXWIDTH = 100; var MAXHEIGHT = 100; var div = document.getElementById('preview'); if (file.files && file.files[0]) { div.innerHTML = '<img id=imghead>'; var img = document.getElementById('imghead'); img.onload = function(){
showsetting('category_note', 'note', $categorylist[$_GET['catid']]['note'], 'text'); } if ($_GET['op'] == 'edit') { showsetting('category_displayorder', 'displayorder', $categorylist[$_GET['catid']]['displayorder'], 'number'); } if ($type == 'shop' && $_GET['upid'] == 0 && $_G['setting']['commentmodel'] == 1) { $model = !empty($categorylist[$_GET['catid']]['cmid']) ? 1 : 0; $query = DB::query('SELECT * FROM ' . tname('commentmodels') . ' ORDER BY cmid ASC'); while ($commentmodel = DB::fetch($query)) { foreach (unserialize($commentmodel['scorename']) as $scorename) { $commentmodel['scorenamestr'] .= '[' . $scorename . ']'; } $commentmodelarr[] = $commentmodel; } showsetting('category_model', array('commtmodel', array(array(1, lang('yes'), array('catmodel' => '')), array(0, lang('no'), array('catmodel' => 'none'))), true), $model, 'mradio'); showtagheader('tbody', 'catmodel', $model, 'sub'); echo "<tr><td colspan='2'>"; if (!empty($commentmodelarr)) { echo "<table width='800' style='margin:10px;'>"; showsubtitle(array('', 'modelname', 'scorename', 'cmdateline')); foreach ($commentmodelarr as $value) { $checked = $value['cmid'] == $categorylist[$_GET['catid']]['cmid'] ? 'checked' : ''; showtablerow('', array('class="td27" style="width:30px;"'), array("<input class='radio' type='radio' name='cmid' value='{$value['cmid']}' {$checked}/>", $value['modelname'], $value['scorenamestr'], date('Y-m-d', $value['dateline']))); } echo "</table>"; } else { showtablerow('', array('class="td27"'), array(lang('catmodel_add'))); } echo "</td></tr>"; showtagfooter('tbody'); }
$allowsplit = false; if ($status && (!$tableid && $status['Data_length'] > 400 * 1048576 || $tableid && $status['Data_length'])) { if (!submitcheck('splitsubmit')) { showtips('postsplit_manage_tips'); showformheader('postsplit&operation=split&tableid=' . $tableid); showtableheader(); showsetting('postsplit_from', '', '', getposttable($tableid) . (!empty($posttable_info[$tableid]['memo']) ? '(' . $posttable_info[$tableid]['memo'] . ')' : '')); $tablelist = '<option value="-1">' . cplang('postsplit_create') . '</option>'; foreach ($posttable_info as $tid => $info) { if ($tableid != $tid) { $tablestatus = gettablestatus(DB::table(getposttable($tid))); $tablelist .= '<option value="' . $tid . '">' . ($info['memo'] ? $info['memo'] : 'forum_post' . ($tid ? '_' . $tid : '')) . '(' . $tablestatus['Data_length'] . ')' . '</option>'; } } showsetting('postsplit_to', '', '', '<select onchange="if(this.value >= 0) {$(\'tableinfo\').style.display = \'none\';} else {$(\'tableinfo\').style.display = \'\';}" name="targettable">' . $tablelist . '</select>'); showtagheader('tbody', 'tableinfo', true, 'sub'); showsetting('postsplit_manage_table_memo', "memo", '', 'text'); showtagfooter('tbody'); $datasize = round($status['Data_length'] / 1048576); $maxsize = round(($datasize - ($tableid ? 0 : 300)) / 100); $maxi = $maxsize > 10 ? 10 : ($maxsize < 1 ? 1 : $maxsize); for ($i = 1; $i <= $maxi; $i++) { $movesize = $i == 10 ? 1024 : $i * 100; $maxsizestr .= '<option value="' . $movesize . '">' . ($i == 10 ? sizecount($movesize * 1048576) : $movesize . 'MB') . '</option>'; } showsetting('postsplit_move_size', '', '', '<select name="movesize">' . $maxsizestr . '</select>'); showsubmit('splitsubmit', 'postsplit_manage_submit'); showtablefooter(); showformfooter(); } else { $targettable = intval($_G['gp_targettable']);
function shownewsletter() { global $lang; showtableheader(); showsetting('members_newsletter_subject', 'subject', '', 'text'); showsetting('members_newsletter_message', 'message', '', 'textarea'); if ($_GET['do'] == 'mobile') { showsetting('members_newsletter_system', 'system', 0, 'radio'); showhiddenfields(array('notifymembers' => 'mobile')); } else { showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio'); showtagheader('tbody', 'posttype', '', 'sub'); showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio'); showtagfooter('tbody'); showtagheader('tbody', 'pmextra', true, 'sub'); showsetting('members_newsletter_system', 'system', 0, 'radio'); showtagfooter('tbody'); } showsetting('members_newsletter_num', 'pertask', 100, 'text'); showtablefooter(); }
$pstarttime = $pstarttime != '' ? strtotime($pstarttime) : ''; $pendtime = $pendtime != '' ? strtotime($pendtime) : ''; $mstarttime = $mstarttime != '' ? strtotime($mstarttime) : ''; $mendtime = $mendtime != '' ? strtotime($mendtime) : ''; $security = $secStatus && $security; if ($security) { $threadcount = C::t('#security#security_evilpost')->count_by_recyclebine($fid, $isgroup, $author, $admins, $pstarttime, $pendtime, $mstarttime, $mendtime, $keywords); } else { $threadcount = C::t('forum_thread')->count_by_recyclebine($fid, $isgroup, $author, $admins, $pstarttime, $pendtime, $mstarttime, $mendtime, $keywords); } $pagetmp = $page; $multi = multi($threadcount, $_G['ppp'], $page, ADMINSCRIPT . "?action=recyclebin"); $multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=recyclebin&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi); $multi = str_replace("window.location='" . ADMINSCRIPT . "?action=recyclebin&page='+this.value", "page(this.value)", $multi); echo '<script type="text/JavaScript">var replyreload;function attachimg() {}</script>'; showtagheader('div', 'threadlist', $searchsubmit); showformheader('recyclebin&operation=search&frame=no', 'target="rbframe"', 'rbform'); showtableheader(cplang('recyclebin_result') . ' ' . $threadcount . ' <a href="#" onclick="$(\'threadlist\').style.display=\'none\';$(\'threadsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'fixpadding'); if ($threadcount) { if ($security) { $searchresult = C::t('#security#security_evilpost')->fetch_all_by_recyclebine($fid, $isgroup, $author, $admins, $pstarttime, $pendtime, $mstarttime, $mendtime, $keywords, ($pagetmp - 1) * $_G['ppp'], $_G['ppp']); } else { $searchresult = C::t('forum_thread')->fetch_all_by_recyclebine($fid, $isgroup, $author, $admins, $pstarttime, $pendtime, $mstarttime, $mendtime, $keywords, ($pagetmp - 1) * $_G['ppp'], $_G['ppp']); } $issettids = array(); foreach ($searchresult as $thread) { $disabledstr = ''; if (isset($issettids[$thread['tid']])) { $disabledstr = 'disabled'; } else { $issettids[$thread['tid']] = $thread['tid'];
C::t('common_setting')->update_batch($settings); updatecache('setting'); } $apilisturl = ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wechat_setting&viewapi=yes'; $groupselect = array(); foreach (C::t('common_usergroup')->range_orderby_credit() as $group) { if ($group['type'] != 'member' || $_G['setting']['newusergroupid'] == $group['groupid']) { $groupselect[$group['type']] .= '<option value="' . $group['groupid'] . '"' . ($setting['wechat_newusergroupid'] == $group['groupid'] ? ' selected' : '') . '>' . $group['grouptitle'] . '</option>'; } } $usergroups = '<select name="setting[wechat_newusergroupid]"><option value="">' . cplang('plugins_empty') . '</option>' . '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($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></select>'; showtips(lang('plugin/wechat', 'wechat_tips', array('url' => $apiurl, 'apiurl' => $apilisturl))); showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wechat_setting', 'enctype'); showtableheader(); showsetting(lang('plugin/wechat', 'wechat_mptype'), array('setting[wechat_mtype]', array(array(0, lang('plugin/wechat', 'wechat_mptype_0'), array('qrcode' => 'none')), array(2, lang('plugin/wechat', 'wechat_mptype_2'), array('qrcode' => 'none')))), $setting['wechat_mtype'], 'mradio', 0, 0, lang('plugin/wechat', 'wechat_mptype_comment')); showtagheader('tbody', 'qrcode', $setting['wechat_mtype'] == 1); showsetting(lang('plugin/wechat', 'wechat_qrcode'), 'wechat_qrcode', '', 'file', 0, 0, lang('plugin/wechat', 'wechat_qrcode_comment', array('qrcode' => $qrcode))); showtagfooter('tbody'); showtablefooter(); showtableheader(lang('plugin/wechat', 'wechat_service_setting')); showsetting(lang('plugin/wechat', 'wechat_url'), '', '', '<span style="white-space:nowrap">' . $apiurl . '</span>'); showsetting(lang('plugin/wechat', 'wechat_token'), 'setting[wechat_token]', $setting['wechat_token'], 'text'); showtablefooter(); showtableheader(lang('plugin/wechat', 'wechat_devid_setting')); showsetting(lang('plugin/wechat', 'wechat_appId'), 'setting[wechat_appId]', $setting['wechat_appId'], 'text'); showsetting(lang('plugin/wechat', 'wechat_appsecret'), 'setting[wechat_appsecret]', $setting['wechat_appsecret'], 'text'); showtablefooter(); showtableheader(lang('plugin/wechat', 'wechat_func_setting')); showsetting(lang('plugin/wechat', 'wechat_allowregister'), 'setting[wechat_allowregister]', $setting['wechat_allowregister'], 'radio', 0, 1, lang('plugin/wechat', 'wechat_allowregister_comment')); showsetting(lang('plugin/wechat', 'wechat_allowfastregister'), 'setting[wechat_allowfastregister]', $setting['wechat_allowfastregister'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_allowfastregister_comment')); showsetting(lang('plugin/wechat', 'wechat_disableregrule'), 'setting[wechat_disableregrule]', $setting['wechat_disableregrule'], 'radio', 0, 0, lang('plugin/wechat', 'wechat_disableregrule_comment'));