function showlistphoto($mname, $mlist, $multipage) { //數據列表顯示 showformheader('batchmod&m=' . $mname); showtableheader($mname . '_listresult', 'notop'); showsubtitle(array()); showtablefooter(); echo '<div id="photo_list">'; echo $mlist; echo '<div style="clear:both;"><table><tr><td style="width:30px;vertical-align:middle;height:25px;"><input style="float:left;" type="checkbox" name="chkall" onclick="checkall(this.form, \'item\')" checked/></td><td style="width:30px;vertical-align:middle;height:30px;">' . lang('selectall') . '</td><td id="pagetd" style="width:500px;vertical-align:middle;">' . $multipage . '</td></tr></table></div>'; echo '<style> #pagetd .pages{margin-top:10px;} </style> </div>'; }
} function showtextradio($textname, $textvalue, $radioname, $radioes = array()) { $a = '<input type="text" class="txt marginbot" name="' . $textname . '" id="' . $textname . '" value="' . $textvalue . '" /><ul style="width: 340px;" onmouseover="altStyle(this);">'; if (is_array($radioes)) { 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) {
$setting = (array) unserialize($setting['wechatmenu']); require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; require_once DISCUZ_ROOT . './source/plugin/wechat/setting.class.php'; WeChatSetting::menu(); if (!$_G['wechat']['setting']['wechat_appId'] || !$_G['wechat']['setting']['wechat_appsecret']) { cpmsg(lang('plugin/wechat', 'wsq_menu_at_error'), '', 'error'); } if (!submitcheck('menusubmit') && !submitcheck('pubsubmit')) { $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']); if (in_array('plugin', $_G['setting']['rewritestatus'])) { $url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access', '', 'op=access'); } else { $url = $_G['siteurl'] . 'plugin.php?id=wechat:access'; } showtips(lang('plugin/wechat', 'menu_tips', array('url' => $url))); showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=menu_setting'); showtableheader(); echo '<tr class="header"><th class="td25"></th><th>' . $lang['display_order'] . '</th><th style="width:350px">' . lang('plugin/wechat', 'wsq_menu_name') . '</th><th>' . lang('plugin/wechat', 'wsq_menu_keyurl') . '</th></tr>'; foreach ($setting['button'] as $k => $button) { $disabled = !empty($button['sub_button']) ? 'disabled' : ''; showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][delete]\" value=\"yes\" {$disabled}>", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][displayorder]\" value=\"{$button['displayorder']}\">", "<div class=\"parentnode\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][name]\" value=\"" . dhtmlspecialchars($button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][keyurl]\" value=\"" . dhtmlspecialchars($button['keyurl']) . "\">")); if (!empty($button['sub_button'])) { foreach ($button['sub_button'] as $sk => $sub_button) { showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][sub_button][{$sk}][delete]\" value=\"yes\">", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][sub_button][{$sk}][displayorder]\" value=\"{$sub_button['displayorder']}\">", "<div class=\"node\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][name]\" value=\"" . dhtmlspecialchars($sub_button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][keyurl]\" value=\"" . dhtmlspecialchars($sub_button['keyurl']) . "\">")); } } echo '<tr><td></td><td></td><td colspan="2"><div class="lastnode"><a href="###" onclick="addrow(this, 1, ' . $k . ')" class="addtr">' . lang('plugin/wechat', 'wsq_menu_sub_button') . '</a></div></td></tr>'; } echo '<tr><td></td><td class="td23 td28"></td><td colspan="2"><div><a href="###" onclick="addrow(this, 0, 0)" class="addtr">' . lang('plugin/wechat', 'wsq_menu_button') . '</a></div></td></tr>'; echo <<<EOT <script type="text/JavaScript">
\t\t\t\t\t</table> \t\t\t\t</div> \t\t\t</form> \t\t\t<script type="text/javascript"> \t\t\tfunction addjscall() { \t\t\t\tvar blockclass = \$('blockclass').value; \t\t\t\tif(blockclass) { \t\t\t\t\tshowWindow('blockclass', 'portal.php?mod=portalcp&ac=block&op=block&blocktype=1&from=cp&classname=' + blockclass); \t\t\t\t} else { \t\t\t\t\talert('{$searchlang['block_choose_blockclass_to_add_jscall']}'); \t\t\t\t} \t\t\t} \t\t\t</script> SEARCH; $start = ($page - 1) * $perpage; showformheader('block&operation=' . $operation); showtableheader('block_list'); $list = $diypage = array(); include_once libfile('function/block'); if ($operation == 'jscall') { showsubtitle(array('', 'block_name', 'block_script', 'block_style', 'block_dateline', 'block_page', 'operation')); $multipage = ''; $count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON tb.bid=b.bid WHERE {$wheresql}"), 0); if ($count) { $query = DB::query("SELECT b.*, tb.targettplname FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON b.bid=tb.bid WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}"); while ($value = DB::fetch($query)) { if ($value['targettplname']) { $diyurl = block_getdiyurl($value['targettplname']); $diyurl = $diyurl['url']; $tplname = isset($_G['cache']['diytemplatename'][$value['targettplname']]) ? $_G['cache']['diytemplatename'][$value['targettplname']] : $value['targettplname']; $diypage[$value['bid']][$value['targettplname']] = $diyurl ? '<a href="' . $diyurl . '" target="_blank">' . $tplname . '</a>' : $tplname;
$tpp = !empty($_GET['tpp']) ? $_GET['tpp'] : '20'; $start_limit = ($page - 1) * $ppp; $dateline = $_GET['dateline'] ? $_GET['dateline'] : '604800'; $dateline_options = ''; foreach (array('all', '604800', '2592000', '7776000') as $v) { $selected = ''; if ($dateline == $v) { $selected = "selected='selected'"; } $dateline_options .= "<option value=\"{$v}\" {$selected}>" . cplang("dateline_{$v}"); } $share_status = 1; if ($_GET['filter'] == 'ignore') { $share_status = 2; } showformheader("moderate&operation=shares"); showtableheader('search'); showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array(cplang('username'), "<input size=\"15\" name=\"username\" type=\"text\" value=\"{$_GET['username']}\" />", cplang('moderate_content_keyword'), "<input size=\"15\" name=\"keyword\" type=\"text\" value=\"{$_GET['keyword']}\" />")); showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array("{$lang['perpage']}", "<select name=\"tpp\">{$tpp_options}</select><label><input name=\"showcensor\" type=\"checkbox\" class=\"checkbox\" value=\"yes\" " . ($showcensor ? ' checked="checked"' : '') . "/> {$lang['moderate_showcensor']}</label>", "{$lang['moderate_bound']}", "<select name=\"filter\">{$filteroptions}</select>\r\n <select name=\"dateline\">{$dateline_options}</select>\r\n <input class=\"btn\" type=\"submit\" value=\"{$lang['search']}\" />")); showtablefooter(); $pagetmp = $page; $sqlwhere = ''; if (!empty($_GET['username'])) { $sqlwhere .= " AND s.username='******'username']}'"; } if (!empty($dateline) && $dateline != 'all') { $sqlwhere .= " AND s.dateline>'" . (TIMESTAMP - $dateline) . "'"; } if (!empty($_GET['keyword'])) { $keyword = str_replace(array('%', '_'), array('\\%', '\\_'), $_GET['keyword']); $sqlwhere .= " AND s.body_general LIKE '%{$keyword}%'";
} } else { showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>')); } } elseif (isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600) { showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>')); } else { $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY); $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL); showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="red">' . $lang['callback_expired'] . '</font> <a href="' . $auth_url . '"><img src="source/plugin/dzapp_haodai/images/haodai_login.png" class="vmiddle"></a>')); } } showtablefooter(); } elseif ($_GET['want'] == 'import') { if (!submitcheck('ok')) { showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback&want=import'); showtableheader('import_callback'); showsetting($lang['appkey'], 'AKEY', defined('HD_AKEY') ? HD_AKEY : '', 'text'); showsetting($lang['appsecret'], 'SKEY', defined('HD_SKEY') ? HD_SKEY : '', 'text'); showsetting($lang['ref'], 'REF', defined('HD_REF') ? HD_REF : '', 'text'); showsetting($lang['callback_url'], 'CALLBACK_URL', defined('HD_CALLBACK_URL') ? HD_CALLBACK_URL : $_G['siteurl'] . 'plugin.php?id=dzapp_haodai:callback', 'text'); showsetting($lang['host_url'], 'API_HOST', defined('HD_API_HOST') ? HD_API_HOST : 'http://api.haodai.com/', 'text'); showsubmit('ok', "ok"); showtablefooter(); showformfooter(); } else { $config = array(); $config['HD_REF'] = $_GET['REF']; $config['HD_AKEY'] = $_GET['AKEY']; $config['HD_SKEY'] = $_GET['SKEY']; $config['HD_CALLBACK_URL'] = $_GET['CALLBACK_URL'];
showsetting($langs['bird_slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text'); } showsubmit('submit'); showtablefooter(); showformfooter(); return; } $type = intval($_G['sr_type']); !in_array($type, array(1, 2)) && ($type = 1); $result = DB::fetch_first("SELECT * FROM " . DB::table('sanree_brand_slide') . ' where id=' . $type); showsubmenu($menustr); showtableheader('', 'nobottom'); $typeclass = array(1, 2); showtablerow('', array(), array(shownavmenu($type, $typeclass, $langs))); showtablefooter(); showformheader($thisurl . '&type=' . $type, 'enctype'); showtableheader($langs['slide'], 'nobottom'); for ($j = 1; $j < 6; $j++) { $grouplogohtml = ''; $pic = ''; if ($result['pic' . $j]) { $pic = $result['pic' . $j]; $grouplogohtml = '<label>' . $langs['slideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />'; } showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml); showsetting($langs['slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text'); } showsubmit('submit'); showtablefooter(); showformfooter(); }
} cpheader(); if (!isfounder()) { cpmsg('noaccess_isfounder', '', 'error'); } $operation = empty($operation) ? 'admin' : $operation; if ($operation == 'admin') { if (!submitcheck('tplsubmit')) { $templates = ''; $query = DB::query("SELECT * FROM " . DB::table('common_template') . ""); while ($tpl = DB::fetch($query)) { $templates .= showtablerow('', array('class="td25"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" " . ($tpl['templateid'] == 1 ? 'disabled ' : '') . "value=\"{$tpl['templateid']}\">", "<input type=\"text\" class=\"txt\" size=\"8\" name=\"namenew[{$tpl['templateid']}]\" value=\"{$tpl['name']}\">", "<input type=\"text\" class=\"txt\" size=\"20\" name=\"directorynew[{$tpl['templateid']}]\" value=\"{$tpl['directory']}\">", !empty($tpl['copyright']) ? $tpl['copyright'] : "<input type=\"text\" class=\"txt\" size=\"8\" name=\"copyrightnew[{$tpl['templateid']}]\" value=>"), TRUE); } shownav('style', 'templates_admin'); showsubmenu('templates_admin'); showformheader('templates'); showtableheader(); showsubtitle(array('', 'templates_admin_name', 'dir', 'copyright', '')); echo $templates; echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" size="8" name="newname"></td><td class="td29"><input type="text" class="txt" size="20" name="newdirectory"></td><td><input type="text" class="txt" size="25" name="newcopyright"></td><td> </td></tr>'; showsubmit('tplsubmit', 'submit', 'del'); showtablefooter(); showformfooter(); } else { if ($_G['gp_newname']) { if (!$_G['gp_newdirectory']) { cpmsg('tpl_new_directory_invalid', '', 'error'); } elseif (!istpldir($_G['gp_newdirectory'])) { $directory = $_G['gp_newdirectory']; cpmsg('tpl_directory_invalid', '', 'error', array('directory' => $directory)); }
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']; break;
if (!sendmail("{$member['username']} <{$member['email']}>", lang('email', 'moderate_member_subject'), $moderate_member_message)) { runlog('sendmail', "{$member['email']} sendmail failed."); } } } } } } cpmsg('moderate_members_op_succeed', "action=moderate&operation=members&page={$page}", 'succeed', array('numvalidated' => $numvalidated, 'numinvalidated' => $numinvalidated, 'numdeleted' => $numdeleted)); } } elseif ($do == 'del') { if (!submitcheck('prunesubmit', 1)) { shownav('user', 'nav_modmembers'); showsubmenu('nav_moderate_users', array(array('nav_moderate_users_mod', 'moderate&operation=members&do=mod', 0), array('clean', 'moderate&operation=members&do=del', 1))); showtips('moderate_members_tips'); showformheader('moderate&operation=members&do=del'); showtableheader('moderate_members_prune'); showsetting('moderate_members_prune_submitmore', 'submitmore', '5', 'text'); showsetting('moderate_members_prune_regbefore', 'regbefore', '30', 'text'); showsetting('moderate_members_prune_modbefore', 'modbefore', '15', 'text'); showsetting('moderate_members_prune_regip', 'regip', '', 'text'); showsubmit('prunesubmit'); showtablefooter(); showformfooter(); } else { $uids = C::t('common_member_validate')->fetch_all_validate_uid($_GET['submitmore'], $_GET['regbefore'], $_GET['modbefore'], $_GET['regip']); if (!($membernum = count($uids))) { cpmsg('members_search_noresults', '', 'error'); } elseif (!$_GET['confirmed']) { cpmsg('members_delete_confirm', "action=moderate&operation=members&do=del&submitmore=" . rawurlencode($_GET['submitmore']) . "®before=" . rawurlencode($_GET['regbefore']) . "®ip=" . rawurlencode($_GET['regip']) . "&prunesubmit=yes", 'form', array('membernum' => $membernum)); } else {
/** * [品牌空間] (C)2001-2010 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: managelog.inc.php 4324 2010-09-04 07:08:16Z fanshengshuai $ */ if (!defined('IN_ADMIN')) { exit('Acess Denied'); } require_once B_ROOT . './source/adminfunc/tool.func.php'; shownav('oplog', 'managelog_list'); showsubmenu('managelog_list'); showtips('managelog_list_tips'); if (submitcheck('filtersubmit')) { showformheader('managelog'); showtableheader(''); showsubtitle(array('managelogusername', 'managelogobject', 'managelogedshopname', 'managelogop', 'managelogreason', 'mldateliane')); $wheresql = ''; $wheresql .= !empty($_REQUEST['managelogtype']) ? ' AND type=\'' . trim($_REQUEST['managelogtype']) . '\'' : ''; $wheresql .= !empty($_REQUEST['shopid']) ? ' AND shopid=\'' . intval($_REQUEST['shopid']) . '\'' : ''; if (!empty($wheresql)) { $wheresql = ' WHERE' . substr($wheresql, 4); } $managelog = $managelogarr = array(); $tpp = 15; $page = $_GET['page'] > 0 ? intval($_GET['page']) : 1; $mlstart = ($page - 1) * $tpp; $query = DB::query("SELECT count(mlogid) AS count FROM " . tname('managelog') . $wheresql . ";"); $value = DB::fetch($query); foreach ($_GET as $key => $_value) {
!defined('IN_DISCUZ') && exit('Access Denied'); !defined('IN_ADMINCP') && exit('Access Denied'); $setting = $_G['cache']['plugin']['k_gaiming']; if (!submitcheck('submit')) { $count = $start = 0; $perpage = 20; $page = max(1, intval($_GET['page'])); $start = ($page - 1) * $perpage; $count = DB::result_first("SELECT count(*) FROM " . DB::table("plugin_k_gaiming_log")); $query = DB::query("SELECT * FROM " . DB::table("plugin_k_gaiming_log") . " ORDER BY dateline DESC LIMIT " . $start . "," . $perpage); $logs = ''; while ($log = DB::fetch($query)) { $log['dateline'] = dgmdate($log['dateline'], 'u'); $log['username'] = getuserbyuid($log['uid']); $logs .= showtablerow('', array('class="td25"', 'class="td29"', 'class="td28"', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"" . $log['lid'] . "\">", "<a href=\"home.php?mod=space&uid=" . $log['uid'] . "\" target=\"_blank\">" . $log['username']['username'] . "</a> (UID: " . $log['uid'] . ")", "<font color=\"#2366A8\">" . $log['username']['username'] . "</font> " . lang('plugin/k_gaiming', 'logcp_1') . " <font color=\"#2366A8\">" . $log['dateline'] . "</font> " . lang('plugin/k_gaiming', 'logcp_2') . " <font color=\"#2366A8\">" . $log['oldname'] . "</font> " . lang('plugin/k_gaiming', 'logcp_3') . " <font color=\"#2366A8\">" . $log['newname'] . "</font>", $log['creditnum'] . " " . $_G['setting']['extcredits'][$log['creditunit']]['unit'] . $_G['setting']['extcredits'][$log['creditunit']]['title'], $log['dateline']), TRUE); } $multi = multi($count, $perpage, $page, ADMINSCRIPT . "?action=plugins&operation=config&do=" . $pluginid . "&identifier=k_gaiming&pmod=logcp"); showformheader("plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=" . $page, "enctype"); showtableheader(''); showsubtitle(array('', lang('plugin/k_gaiming', 'logcp_6'), lang('plugin/k_gaiming', 'logcp_5'), lang('plugin/k_gaiming', 'logcp_4'), lang('plugin/k_gaiming', 'logcp_7'))); echo $logs; showsubmit('submit', lang('plugin/k_gaiming', 'submit'), 'del', '', $multi); showtablefooter(); showformfooter(); } else { if (is_array($_GET['delete'])) { $ids = dimplode($_GET['delete']); DB::query("DELETE FROM " . DB::table('plugin_k_gaiming_log') . " WHERE lid IN ({$ids})"); } cpmsg(lang('plugin/k_gaiming', 'success'), 'action=plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=' . $page, 'succeed'); }
if ($setting['wsq_siteid']) { if (in_array('plugin', $_G['setting']['rewritestatus'])) { $url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access'); } else { $url = $_G['siteurl'] . 'plugin.php?id=wechat:access'; } } $apilisturl = ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting&viewapi=yes'; $setting['wsq_siteurl'] = $setting['wsq_siteurl'] ? $setting['wsq_siteurl'] : $_G['siteurl']; $setting['wsq_sitename'] = $setting['wsq_sitename'] ? $setting['wsq_sitename'] : $_G['setting']['bbname']; require_once libfile('function/forumlist'); $forums = '<select name="setting[wsq_fid]"><option value="">' . cplang('plugins_empty') . '</option>' . forumselect(FALSE, 0, $setting['wsq_fid'], TRUE) . '</select>'; $sitelogo = $setting['wsq_sitelogo'] ? '<img src="' . $setting['wsq_sitelogo'] . '" width="150" />' : ''; $qrcode = $setting['wechat_qrcode'] ? '<img src="' . $_G['setting']['attachurl'] . 'common/' . $setting['wechat_qrcode'] . '" width="150" />' : ''; showtips(lang('plugin/wechat', 'wsq_tips', array('ADMINSCRIPT' => ADMINSCRIPT . '?action=', 'apiurl' => $apilisturl))); showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting', 'enctype'); showtableheader(lang('plugin/wechat', 'wechat_wsq_setting') . ' ' . ($setting['wsq_status'] ? ' (' . lang('plugin/wechat', 'wsq_status_open') . ')' : ($setting['wsq_siteid'] ? ' (' . lang('plugin/wechat', 'wsq_status_ing') . (TIMESTAMP - $setting['wsq_lastrequest'] > 3600 ? ' <a href="' . ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting&recheck=yes">[' . lang('plugin/wechat', 'wsq_status_try') . ']</a>)' : ')') : ' (' . lang('plugin/wechat', 'wsq_status_close') . ')'))); showsetting(lang('plugin/wechat', 'wsq_allow'), 'setting[wsq_allow]', $setting['wsq_allow'], 'radio', 0, 0, lang('plugin/wechat', 'wsq_allow_comment')); if ($setting['wsq_allow'] && $setting['wsq_siteid']) { showtablefooter(); showtableheader(); showsetting(lang('plugin/wechat', 'wsq_url'), '', '', '<span style="white-space:nowrap">' . $url . '</span>'); showtablefooter(); showtableheader(); showsetting(lang('plugin/wechat', 'wsq_siteid'), '', '', $setting['wsq_siteid']); showsetting(lang('plugin/wechat', 'wsq_sitetoken'), '', '', $setting['wsq_sitetoken']); } showsetting(lang('plugin/wechat', 'wsq_sitename'), 'setting[wsq_sitename]', $setting['wsq_sitename'], 'text'); showsetting(lang('plugin/wechat', 'wsq_sitelogo'), 'wsq_sitelogo', $setting['wsq_sitelogo'], 'file', 0, 0, lang('plugin/wechat', 'wsq_sitelogo_comment', array('sitelogo' => $sitelogo))); showsetting(lang('plugin/wechat', 'wsq_sitesummary'), 'setting[wsq_sitesummary]', $setting['wsq_sitesummary'], 'textarea'); showsetting(lang('plugin/wechat', 'wsq_siteurl'), 'setting[wsq_siteurl]', $setting['wsq_siteurl'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteurl_comment'));
//公共部分 if (!$_GET['submit']) { $exsel = extc2seled(0, $_G['setting']['extcredits']); loadcache('usergroups'); $usergroups = $_G['cache']['usergroups']; $gidsel = usergroups2seled('-1', $usergroups); echo '<script type="text/JavaScript"> var rowtypedata = [[ [1,"", ""], [1,\'<input type="text" class="txt" name="days[]" size="7">\', ""], [1,\'' . $gidsel . '\', ""], [1,\'' . $exsel . '\', ""], [1,\'<input type="text" class="txt" name="reward[]" size="7">\', ""], ]] </script>'; showformheader('plugins&operation=config&identifier=dsu_amupper&pmod=admin'); showtips(lang("plugin/dsu_amupper", "admin2_p1")); showtableheader(lang("plugin/dsu_amupper", "admin2_h1")); showsubtitle(array(lang("plugin/dsu_amupper", "admin2_t0"), lang("plugin/dsu_amupper", "admin2_t1"), lang("plugin/dsu_amupper", "admin2_t4"), lang("plugin/dsu_amupper", "admin2_t2"), lang("plugin/dsu_amupper", "admin2_t3"))); $arr = DB::fetch_all("SELECT * FROM %t WHERE id>%d LIMIT %d", array('plugin_dsuamupperc', '-1', '100'), 'id'); if ($arr) { $i = 0; $data_f2a = dstripslashes($arr); foreach ($data_f2a as $id => $result) { $exsel = extc2seled($result['extcredits'], $_G['setting']['extcredits']); $gidsel = usergroups2seled($result['usergid'], $usergroups); showtablerow('', array(' ', ' ', ' ', ' '), array('<input type="checkbox" class="checkbox" name="delete[]" value="' . $i . '" />', '<INPUT TYPE="hidden" NAME="id[]" value="' . $result['id'] . '"><input type="text" class="txt" name="days[]" value="' . $result['days'] . '" size="7" />', '' . $gidsel . '', '' . $exsel . '', '<input type="text" class="txt" name="reward[]" value="' . $result['reward'] . '" size="7" />')); $i++; } } echo '<tr><td></td><td colspan="3"><div><a href="#addrow" name="addrow" onclick="addrow(this, 0)" class="addtr">' . lang("plugin/dsu_amupper", "admin2_s1") . '</a></div></td></tr>';
} $upid = $pdnovelcategory[$catid]['upid']; if ($upid == 0) { if ($pdnovelcategory[$catid]['children']) { cpmsg('category_chlidren_error', 'action=pdnovel&operation=category', 'error'); } else { DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';')); pdnovelcache('pdnovelcategory', 'pdnovel'); cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed'); } } else { $pdnovel_count = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('pdnovel_view') . (' WHERE catid = ' . $catid)); if ($pdnovel_count) { shownav('pdnovel', 'category'); showsubmenu('category', array(array('delete', 'pdnovel&operation=category&do=delete&catid=' . $catid, 1))); showformheader('pdnovel&operation=category&do=mdelete&catid=' . $catid); showtableheader(); echo "<tr><td colspan=\"2\" class=\"td27\">" . cplang('delete') . $pdnovelcategory[$catid]['catname'] . ":</td></tr>\r\n\t\t\t\t\t<tr class=\"noborder\">\r\n\t\t\t\t\t\t<td class=\"vtop rowform\">\r\n\t\t\t\t\t\t\t<ul class=\"nofloat\" onmouseover=\"altStyle(this);\">\r\n\t\t\t\t\t\t\t<li class=\"checked\"><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"move\" checked /> " . cplang('category_moveto') . ' ' . category_showselect('toid', $catid) . "</li>\r\n\t\t\t\t\t\t\t<li><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"delete\" /> " . cplang('category_delete') . "</li>\r\n\t\t\t\t\t\t\t</ul></td>\r\n\t\t\t\t\t\t<td class=\"vtop tips2\"></td>\r\n\t\t\t\t\t</tr>"; showsubmit('deletesubmit'); showtablefooter(); showformfooter(); } else { DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';')); pdnovelcache('pdnovelcategory', 'pdnovel'); cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed'); } } } else { if ($do = 'mdelete') { $catid = $_G['gp_catid']; $pdnovelop = $_G['gp_pdnovelop'];
} echo <<<EOT <script type="text/JavaScript"> \tvar rowtypedata = [ \t\t[ \t\t\t[1,'', 'td25'], \t\t\t[1,'<input type="text" class="txt" name="newdisplayorder[]" size="3">', 'td28'], \t\t\t[1,'<input type="text" class="txt" name="newtitle[]" size="25">'], \t\t\t[1,'<input type="text" class="txt" name="newurl[]" size="40">', 'td26'] \t\t] \t]; </script> EOT; shownav('tools', 'nav_custommenu'); showsubmenu('nav_custommenu'); showformheader('misc&operation=custommenu'); showtableheader(); showsubtitle(array('', 'display_order', 'name', 'URL')); echo $optionlist; echo '<tr><td></td><td colspan="3"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['custommenu_add'] . '</a></div></td></tr>'; showsubmit('optionsubmit', 'submit', 'del', '', $multipage); showtablefooter(); showformfooter(); } else { if ($ids = dimplode($_GET['delete'])) { C::t('common_admincp_cmenu')->delete($_GET['delete'], $_G['uid']); } if (is_array($_GET['titlenew'])) { foreach ($_GET['titlenew'] as $id => $title) { $_GET['urlnew'][$id] = rawurlencode($_GET['urlnew'][$id]); $title = dhtmlspecialchars($_GET['langnew'][$id] && cplang($_GET['langnew'][$id], false) ? $_GET['langnew'][$id] : $title);
if (!submitcheck('submit')) { ajaxshowheader(); showformheader("adv&operation=custom&do=edit&id={$_G['gp_id']}"); echo $lang['adv_custom_edit'] . '<br /><input name="customnew" class="txt" value="' . htmlspecialchars($name) . '" /> ' . '<input name="submit" class="btn" type="submit" value="' . $lang['submit'] . '" /> ' . '<input class="btn" type="button" onclick="location.href=\'' . ADMINSCRIPT . '?action=adv&operation=list\'" value="' . $lang['cancel'] . '" />'; showformfooter(); ajaxshowfooter(); } else { $customnew = strip_tags($_G['gp_customnew']); if ($_G['gp_customnew'] != $name) { DB::update('advertisement_custom', array('name' => $customnew), "id='{$_G['gp_id']}'"); } } } elseif ($do == 'delete') { if (!submitcheck('submit')) { ajaxshowheader(); showformheader("adv&operation=custom&do=delete&id={$_G['gp_id']}"); echo $lang['adv_custom_delete'] . '<br /><input name="submit" class="btn" type="submit" value="' . $lang['delete'] . '" /> ' . '<input class="btn" type="button" onclick="location.href=\'' . ADMINSCRIPT . '?action=adv&operation=list\'" value="' . $lang['cancel'] . '" />'; showformfooter(); ajaxshowfooter(); } else { DB::delete('advertisement_custom', "id='{$_G['gp_id']}'"); } } dheader('location: ' . ADMINSCRIPT . '?action=adv&operation=list'); } function encodeadvcode($advnew) { switch ($advnew['style']) { case 'code': $advnew['code'] = $advnew['code']['html']; break;
$query = DB::query("SELECT cps.uid,cps.dateline,m.username FROM " . DB::table('common_admincp_session') . " cps\r\n\tLEFT JOIN " . DB::table('common_member') . " m ON m.uid=cps.uid WHERE panel='1'\r\n\tORDER BY cps.dateline DESC"); while ($online = DB::fetch($query)) { $onlines .= '<a href="home.php?mod=space&uid=' . $online['uid'] . '" title="' . dgmdate($online['dateline']) . '">' . $online['username'] . '</a> '; } echo '<div id="boardnews"></div>'; echo '<style>.rssbook{margin:8px 0 0 25px;}</style>'; echo '<script >var nId = "4d1e7b6dd9c5070d1a82aeb8be5e72fc64db42701a1bc4d4",nWidth="400px",sColor="light",sText="' . cplang('subscribe_comsenz_email') . '" ;</script><script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js" charset="gb18030"></script>'; showtableheader('', 'nobottom fixpadding'); if ($membersmod || $threadsmod || $postsmod || $medalsmod || $blogsmod || $picturesmod || $doingsmod || $sharesmod || $commentsmod || $articlesmod || $articlecommentsmod || $topiccommentsmod || $threadsdel || !empty($verify)) { showtablerow('', '', '<h3 class="left margintop">' . cplang('home_mods') . ': </h3><p class="left difflink">' . ($membersmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=members">' . cplang('home_mod_members') . '</a>(<em class="lightnum">' . $membersmod . '</em>)' : '') . ($threadsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=threads&dateline=all">' . cplang('home_mod_threads') . '</a>(<em class="lightnum">' . $threadsmod . '</em>)' : '') . ($postsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=replies&dateline=all">' . cplang('home_mod_posts') . '</a>(<em class="lightnum">' . $postsmod . '</em>)' : '') . ($medalsmod ? '<a href="' . ADMINSCRIPT . '?action=medals&operation=mod">' . cplang('home_mod_medals') . '</a>(<em class="lightnum">' . $medalsmod . '</em>)' : '') . ($blogsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=blogs&dateline=all">' . cplang('home_mod_blogs') . '</a>(<em class="lightnum">' . $blogsmod . '</em>)' : '') . ($picturesmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=pictures&dateline=all">' . cplang('home_mod_pictures') . '</a>(<em class="lightnum">' . $picturesmod . '</em>)' : '') . ($doingsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=doings&dateline=all">' . cplang('home_mod_doings') . '</a>(<em class="lightnum">' . $doingsmod . '</em>)' : '') . ($sharesmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=shares&dateline=all">' . cplang('home_mod_shares') . '</a>(<em class="lightnum">' . $sharesmod . '</em>)' : '') . ($commentsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=comments&dateline=all">' . cplang('home_mod_comments') . '</a>(<em class="lightnum">' . $commentsmod . '</em>)' : '') . ($articlesmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=articles&dateline=all">' . cplang('home_mod_articles') . '</a>(<em class="lightnum">' . $articlesmod . '</em>)' : '') . ($articlecommentsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=articlecomments&dateline=all">' . cplang('home_mod_articlecomments') . '</a>(<em class="lightnum">' . $articlecommentsmod . '</em>)' : '') . ($topiccommentsmod ? '<a href="' . ADMINSCRIPT . '?action=moderate&operation=topiccomments&dateline=all">' . cplang('home_mod_topiccomments') . '</a>(<em class="lightnum">' . $topiccommentsmod . '</em>)' : '') . ($threadsdel ? '<a href="' . ADMINSCRIPT . '?action=recyclebin">' . cplang('home_del_threads') . '</a>(<em class="lightnum">' . $threadsdel . '</em>)' : '') . $verify . '</p><div class="clear"></div>'); } showtablefooter(); showtableheader('home_onlines', 'nobottom fixpadding'); echo '<tr><td>' . $onlines . '</td></tr>'; showtablefooter(); showformheader('index'); showtableheader('home_notes', 'fixpadding"', '', '3'); $query = DB::query("SELECT * FROM " . DB::table('common_adminnote') . " WHERE access='0' ORDER BY dateline DESC"); while ($note = DB::fetch($query)) { if ($note['expiration'] < TIMESTAMP) { DB::query("DELETE FROM " . DB::table('common_adminnote') . " WHERE id='{$note['id']}'"); } else { $note['adminenc'] = rawurlencode($note['admin']); $note['expiration'] = ceil(($note['expiration'] - $note['dateline']) / 86400); $note['dateline'] = dgmdate($note['dateline'], 'dt'); showtablerow('', array('', '', ''), array($isfounder || $_G['member']['username'] == $note['admin'] ? '<a href="' . ADMINSCRIPT . '?action=index¬esubmit=yes¬eid=' . $note['id'] . '"><img src="static/image/admincp/close.gif" width="7" height="8" title="' . cplang('delete') . '" /></a>' : '', "<span class=\"bold\"><a href=\"home.php?mod=space&username={$note['adminenc']}\" target=\"_blank\">{$note['admin']}</a></span> {$note['dateline']} (" . cplang('validity') . ": {$note['expiration']} " . cplang('days') . ")<br />{$note['message']}")); } } showtablerow('', array(), array(cplang('home_notes_add'), '<input type="text" class="txt" name="newmessage" value="" style="width:300px;" />' . cplang('validity') . ': <input type="text" class="txt" name="newexpiration" value="30" style="width:30px;" />' . cplang('days') . ' <input name="notesubmit" value="' . cplang('submit') . '" type="submit" class="btn" />')); showtablefooter(); showformfooter();
cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults); } require_once B_ROOT . './uc_client/client.php'; $ucresult = uc_user_edit($_G['username'], $_POST['password'], $_POST['newpassword1']); if ($ucresult == -1) { array_push($checkresults, array('password' => $lang['old_password_invalid'])); } elseif ($ucresult == -7) { array_push($checkresults, array('message' => $lang['no_change'])); } elseif ($ucresult == -8) { array_push($checkresults, array('message' => $lang['protection_of_users'])); } if (!empty($checkresults)) { cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults); } sclearcookie(); cpmsg('getpasswd_succeed', 'index.php', 'succeed'); } shownav('shop', 'nav_modifypasswd'); showsubmenu('nav_modifypasswd'); showtips('modifypasswd_list_tips'); showformheader('modifypasswd'); showtableheader(''); $required = '<span style="color:red">*</span>'; showsetting('modifypasswd_passwd', 'password', '', 'password', '', '', '', '', $required); showsetting('modifypasswd_newpasswd1', 'newpassword1', '', 'password', '', '', '', '', $required); showsetting('modifypasswd_newpasswd2', 'newpassword2', '', 'password', '', '', '', '', $required); showsubmit('valuesubmit'); showtablefooter(); showformfooter(); bind_ajax_form(); exit;
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'); }
foreach (C::t('forum_thread')->fetch_all_by_fid_cover_lastpost($fid, $cover, $starttime, $endtime, $current, $pertask) as $thread) { $processed = 1; $pid = C::t('forum_post')->fetch_threadpost_by_tid_invisible($thread['tid'], 0); $pid = $pid['pid']; setthreadcover($pid); } if ($processed) { cpmsg("{$lang['counter_thread_cover']}: " . cplang('counter_processing', array('current' => $current, 'next' => $next)), $nextlink, 'loading'); } else { cpmsg('counter_thread_cover_succeed', 'action=counter', 'succeed'); } } else { shownav('tools', 'nav_updatecounters'); showsubmenu('nav_updatecounters'); showtips('counter_tips'); showformheader('counter'); showtableheader(); showsubtitle(array('', 'counter_amount')); showhiddenfields(array('pertask' => '')); showtablerow('', array('class="td21"'), array("{$lang['counter_forum']}:", '<input name="pertask1" type="text" class="txt" value="15" /><input type="submit" class="btn" name="forumsubmit" onclick="this.form.pertask.value=this.form.pertask1.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_digest']}:", '<input name="pertask2" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="digestsubmit" onclick="this.form.pertask.value=this.form.pertask2.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_member']}:", '<input name="pertask3" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="membersubmit" onclick="this.form.pertask.value=this.form.pertask3.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_thread']}:", '<input name="pertask4" type="text" class="txt" value="500" /><input type="submit" class="btn" name="threadsubmit" onclick="this.form.pertask.value=this.form.pertask4.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_special']}:", '<input name="pertask7" type="text" class="txt" value="1" disabled/><input type="submit" class="btn" name="specialarrange" onclick="this.form.pertask.value=this.form.pertask7.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_groupnum']}:", '<input name="pertask8" type="text" class="txt" value="10" /><input type="submit" class="btn" name="groupnum" onclick="this.form.pertask.value=this.form.pertask8.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_num']}:", '<input name="pertask9" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmembernum" onclick="this.form.pertask.value=this.form.pertask9.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_post']}:", '<input name="pertask10" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmemberpost" onclick="this.form.pertask.value=this.form.pertask10.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_blog_replynum']}:", '<input name="pertask11" type="text" class="txt" value="100" /><input type="submit" class="btn" name="blogreplynum" onclick="this.form.pertask.value=this.form.pertask11.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_friendnum']}:", '<input name="pertask12" type="text" class="txt" value="100" /><input type="submit" class="btn" name="friendnum" onclick="this.form.pertask.value=this.form.pertask12.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_album_picnum']}:", '<input name="pertask13" type="text" class="txt" value="100" /><input type="submit" class="btn" name="albumpicnum" onclick="this.form.pertask.value=this.form.pertask13.value" value="' . $lang['submit'] . '" />')); showtablerow('', array('class="td21"'), array("{$lang['counter_thread_cover']}:", '<script type="text/javascript" src="static/js/calendar.js"></script><input name="pertask14" type="text" class="txt" value="100" /> ' . $lang['counter_forumid'] . ': <input type="text" class="txt" name="fid" value="" size="10"> <input type="checkbox" value="1" name="allthread">' . $lang['counter_have_cover'] . '<br><input type="text" onclick="showcalendar(event, this)" value="" name="starttime" class="txt"> -- <input type="text" onclick="showcalendar(event, this)" value="" name="endtime" class="txt">(' . $lang['counter_thread_cover_settime'] . ') <input type="submit" class="btn" name="setthreadcover" onclick="this.form.pertask.value=this.form.pertask14.value" value="' . $lang['submit'] . '" />'));
showsubmenu('menu_list_' . $_GET['action'] . 'notice'); break; case 'shop': if ($_GET['action'] == 'add') { showsubmenu('shop_add'); } else { $shopmenu = array(array('shop_edit', 'edit&m=shop&itemid=' . $_GET['itemid'], '1'), array('menu_shop_theme', 'theme&m=shop&itemid=' . $_GET['itemid']), array('menu_modifypasswd', 'modifypasswd&m=shop&itemid=' . $_GET['itemid'], 0)); if ($_G['setting']['enablemap'] == 1) { array_push($shopmenu, array('menu_shop_map', 'map&m=shop&itemid=' . $_GET['itemid'])); } showsubmenu('shop_edit', $shopmenu); } break; } showtips($mname . '_' . $_GET['action'] . '_tips'); showformheader('edit&m=' . $mname, 'enctype'); showtableheader(); if ($_GET['action'] == 'add' && $mname == 'shop') { showusernamefield(); //註冊顯示 } if ($mname == 'shop') { $grouplist = getgrouplist(); showsetting('shop_groupid', array('groupid', $grouplist), $editvalue['groupid'], 'select', '', '', '', '', '<span style="color:red">*</span>'); } showbasicfield($mname, $editvalue, $_SSCONFIG, $categorylist); //顯示基本字段 //讀取自定義字段 foreach ($cacheinfo['columns'] as $value) { if ($mname == "groupbuy" && preg_match('/^user_|^ext_/', $value['fieldname'])) { continue;
$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(){ var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight);
cpmsg('setting_domain_http_error', '', 'error'); } if ($_G['setting']['domain']['root'][$idtype] != $domain) { $updatetype = $idtype == 'forum' ? array('forum', 'channel') : $idtype; C::t('common_domain')->update_by_idtype($updatetype, array('domainroot' => $domain)); } $_G['setting']['domain']['root'][$idtype] = $domain; } C::t('common_setting')->update('domain', $_G['setting']['domain']); updatecache('setting'); cpmsg('setting_update_succeed', 'action=domain&operation=root', 'succeed'); } } else { if (!submitcheck('domainsubmit')) { showtips('setting_domain_base_tips'); showformheader("domain"); showtableheader(); if ($_G['setting']['homepagestyle']) { showsetting('setting_domain_allow_space', 'settingnew[allowspacedomain]', $_G['setting']['allowspacedomain'], 'radio'); } else { showhiddenfields(array('settingnew[allowspacedomain]' => 0)); } if (helper_access::check_module('group')) { showsetting('setting_domain_allow_group', 'settingnew[allowgroupdomain]', $_G['setting']['allowgroupdomain'], 'radio'); } else { showhiddenfields(array('settingnew[allowgroupdomain]' => 0)); } showsetting('setting_domain_hold_domain', 'settingnew[holddomain]', $_G['setting']['holddomain'], 'text'); showsubmit('domainsubmit'); showtablefooter(); showformfooter();
updatecache('setting'); cpmsg('postsplit_table_memo_update_succeed', 'action=postsplit&operation=manage', 'succeed'); } } elseif ($operation == 'split') { if (!$_G['setting']['bbclosed']) { cpmsg('postsplit_forum_must_be_closed', 'action=postsplit&operation=manage', 'error'); } $tableid = intval($_G['gp_tableid']); $tablename = getposttable($tableid); if ($tableid && $tablename != 'forum_post' || !$tableid) { $status = gettablestatus(DB::table($tablename), false); $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);
$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 { if ($ids = implodeids($delete)) { $tids = $pids = 0; $query = $db->query("SELECT tid, pid, attachment, thumb, remote FROM {$tablepre}attachments WHERE aid IN ({$ids})"); while ($attach = $db->fetch_array($query)) { dunlink($attach['attachment'], $attach['thumb'], $attach['remote']);
$multi = str_replace("window.location='" . ADMINSCRIPT . "?action=share&page='+this.value", "page(this.value)", $multi); } else { $sharecount = 0; $query = DB::query("SELECT s.sid FROM " . DB::table('home_share') . " s WHERE 1 {$sql}"); while ($share = DB::fetch($query)) { $sids .= ',' . $share['sid']; $sharecount++; } $multi = ''; } if (!$sharecount) { $error = 'share_post_nonexistence'; } } showtagheader('div', 'postlist', $searchsubmit || $newlist); showformheader('share&frame=no', 'target="shareframe"'); showhiddenfields(array('sids' => authcode($sids, 'ENCODE'))); showtableheader(cplang('share_result') . ' ' . $sharecount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'shareforum\').pp.value=\'\';$(\'shareforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding'); if ($error) { echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>"; } else { if ($detail) { showsubtitle(array('', 'author', 'share_title', 'share_body', 'share_type', 'time')); echo $shares; } } showsubmit('sharesubmit', 'delete', $detail ? 'del' : '', '', $multi); showtablefooter(); showformfooter(); echo '<iframe name="shareframe" style="display:none"></iframe>'; showtagfooter('div');
<?php /* if(file_exists(DISCUZ_ROOT.'./data/dsu_amupper.lock')) { cpmsg('dsu_amupper:admin_ed', 'action=plugins&operation=config&identifier=dsu_amupper','succeed'); exit; } */ !defined('IN_DISCUZ') && exit('Access Denied'); !defined('IN_ADMINCP') && exit('Access Denied'); if (!$_GET['submit']) { showtableheader(lang("plugin/dsu_amupper", "trans_h1")); showformheader("plugins&operation=config&identifier=dsu_amupper&pmod=trans&submit=1", ""); showsetting(lang('plugin/dsu_amupper', 'trans_f1'), 'reserve', '1', 'radio'); echo '<input type="hidden" name="formhash" value="' . FORMHASH . '">'; showsubmit('submit', "OK!"); showformfooter(); showtablefooter(); } elseif ($_GET['submit'] && $_GET['reserve'] && $_G['adminid'] == '1' && $_GET['formhash'] == FORMHASH) { $formhash = FORMHASH; $limit = 400; $tablename = DB::table('dsu_paulsign'); $amuppertable = DB::table('plugin_dsuamupper'); $query = DB::query("SHOW TABLES LIKE '{$tablename}'"); $paulsign_exist = 0; if (DB::num_rows($query) > 0) { $paulsign_exist = 1; } $query = DB::query("SHOW TABLES LIKE '{$amuppertable}'"); $amupper_exist = 0; if (DB::num_rows($query) > 0) {
$cpmsg = cplang('recyclebin_succeed', array('threadsdel' => $threadsdel, 'threadsundel' => $threadsundel)); } else { $cpmsg = cplang('recyclebin_nothread'); } ?> <script type="text/JavaScript">alert('<?php echo $cpmsg; ?> ');parent.$('rbsearchform').searchsubmit.click();</script> <?php } } elseif ($operation == 'clean') { if (!submitcheck('rbsubmit', 1)) { shownav('topic', 'nav_recyclebin'); showsubmenu('nav_recyclebin', array(array('recyclebin_list', 'recyclebin', 0), array('search', 'recyclebin&operation=search', 0), array('clean', 'recyclebin&operation=clean', 1))); showformheader('recyclebin&operation=clean'); showtableheader('recyclebin_clean'); showsetting('recyclebin_clean_days', 'days', '30', 'text'); showsubmit('rbsubmit'); showtablefooter(); showformfooter(); } else { $deletetids = array(); $timestamp = TIMESTAMP; $pernum = 500; $threadsdel = intval($_GET['threadsdel']); $days = intval($_GET['days']); foreach (C::t('forum_threadmod')->fetch_all_recyclebin_by_dateline($timestamp - $days * 86400, 0, $pernum) as $thread) { $deletetids[] = $thread['tid']; } if ($deletetids) {
$comment = lang('task/' . $_G['gp_script'], $taskvars['title'] . '_comment'); $comment = $comment != $taskvars['title'] . '_comment' ? $comment : ''; $data = array('taskid' => $taskid, 'sort' => $taskvars['sort'], 'name' => lang('task/' . $_G['gp_script'], $taskvars['title']), 'description' => $comment, 'variable' => $taskvarkey, 'value' => is_array($_G['gp_' . $taskvarkey]) ? addslashes(serialize($_G['gp_' . $taskvarkey])) : $_G['gp_' . $taskvarkey], 'type' => $taskvars['type']); DB::insert('common_taskvar', $data); } } } cpmsg('tasks_succeed', "action=tasks", 'succeed'); } } elseif ($operation == 'edit' && $id) { $task = DB::fetch_first("SELECT * FROM " . DB::table('common_task') . " WHERE taskid='{$id}'"); if (!submitcheck('editsubmit')) { echo '<script type="text/javascript" src="static/js/calendar.js"></script>'; shownav('extended', 'nav_tasks'); showsubmenu('nav_tasks', array(array('admin', 'tasks', 0), array(array('menu' => 'add', 'submenu' => $submenus), '', 0), array('nav_task_type', 'tasks&operation=type', 0))); showformheader('tasks&operation=edit&id=' . $id); showtableheader(cplang('tasks_edit') . ' - ' . $task['name'], 'fixpadding'); showsetting('tasks_add_name', 'name', $task['name'], 'text'); showsetting('tasks_add_desc', 'description', $task['description'], 'textarea'); showsetting('tasks_add_icon', 'iconnew', $task['icon'], 'text'); showsetting('tasks_add_starttime', 'starttime', $task['starttime'] ? dgmdate($task['starttime'], 'y-m-d') : '', 'calendar'); showsetting('tasks_add_endtime', 'endtime', $task['endtime'] ? dgmdate($task['endtime'], 'y-m-d') : '', 'calendar'); showsetting('tasks_add_periodtype', array('periodtype', array(array(0, cplang('tasks_add_periodtype_hour')), array(1, cplang('tasks_add_periodtype_day')), array(2, cplang('tasks_add_periodtype_week')), array(3, cplang('tasks_add_periodtype_month')))), $task['periodtype'], 'mradio'); showsetting('tasks_add_period', 'period', $task['period'], 'text'); showsetting('tasks_add_reward', array('reward', array(array('', cplang('none'), array('reward_credit' => 'none', 'reward_magic' => 'none', 'reward_medal' => 'none', 'reward_group' => 'none')), array('credit', cplang('credits'), array('reward_credit' => '', 'reward_magic' => 'none', 'reward_medal' => 'none', 'reward_group' => 'none')), $_G['setting']['magicstatus'] ? array('magic', cplang('tasks_reward_magic'), array('reward_credit' => 'none', 'reward_magic' => '', 'reward_medal' => 'none', 'reward_group' => 'none')) : '', $_G['setting']['medalstatus'] ? array('medal', cplang('medals'), array('reward_credit' => 'none', 'reward_magic' => 'none', 'reward_medal' => '', 'reward_group' => 'none')) : '', $_G['setting']['regstatus'] > 1 ? array('invite', cplang('tasks_reward_invite'), array('reward_credit' => 'none', 'reward_magic' => 'none', 'reward_medal' => 'none', 'reward_group' => 'none', 'reward_invite' => '')) : '', array('group', cplang('tasks_add_group'), array('reward_credit' => 'none', 'reward_magic' => 'none', 'reward_medal' => 'none', 'reward_group' => '')))), $task['reward'], 'mradio'); $extcreditarray = array(array(0, cplang('select'))); foreach ($_G['setting']['extcredits'] as $creditid => $extcredit) { $extcreditarray[] = array($creditid, $extcredit['title']); } showtagheader('tbody', 'reward_credit', $task['reward'] == 'credit'); showsetting('tasks_add_extcredit', array('prize_credit', $extcreditarray), $task['prize'], 'select');