function menu() { global $_G; $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']); echo <<<EOF <style> .floattop { display: none; } .floattopempty { display: none; } .mymenu { height:35px; } .mymenu .floattop { display: inline; } .mymenu .floattopempty { display: inline; } </style> EOF; echo '<div class="mymenu">'; showsubmenu(lang('plugin/wechat', 'menu_root'), array(array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat')))), array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting')))), array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting'))); echo '</div>'; if ($_G['wechat']['setting']['wsq_siteid']) { $time = TIMESTAMP; echo <<<EOF <script> function pubEventCallbackCommon(re) { \tif(re.errCode) { \t\treturn; \t} \tif(typeof re.data.event.peId != 'undefined') { \t\t\$('pubEventNum').innerHTML = 'New!'; \t\t\$('pubEventNum').style.display = ''; \t} } </script> <script src="http://api.wsq.qq.com/publicEvent?sId={$_G[wechat][setting][wsq_siteid]}&resType=jsonp&isAjax=1&_={$time}&isDiscuz=1&callback=pubEventCallbackCommon"> </script> EOF; } }
function menu() { echo <<<EOF <style> .floattop { display: none; } .floattopempty { display: none; } .mymenu { height:35px; } .mymenu .floattop { display: inline; } .mymenu .floattopempty { display: inline; } </style> EOF; echo '<div class="mymenu">'; showsubmenu(lang('plugin/wechat', 'menu_root'), array(array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat')))), array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting')))), array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting'))); echo '</div>'; }
$hot2 = $_G['gp_hot2']; $starttime = $_G['gp_starttime']; $endtime = $_G['gp_endtime']; $searchsubmit = $_G['gp_searchsubmit']; $sids = $_G['gp_sids']; cpheader(); if (!submitcheck('sharesubmit')) { if (empty($_G['gp_search'])) { $newlist = 1; $detail = 1; $starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d'); } $starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d') : $starttime; $endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-m-d') : $endtime; shownav('topic', 'nav_share'); showsubmenu('nav_share', array(array('newlist', 'share', !empty($newlist)), array('search', 'share&search=true', empty($newlist)))); empty($newlist) && showsubmenusteps('', array(array('share_search', !$searchsubmit), array('nav_share', $searchsubmit))); showtips('share_tips'); echo <<<EOT <script type="text/javascript" src="static/js/calendar.js"></script> <script type="text/JavaScript"> function page(number) { \t\$('shareforum').page.value=number; \t\$('shareforum').searchsubmit.click(); } </script> EOT; showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist)); showformheader("share" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'shareforum'); showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage'])); showtableheader();
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: moderate_share.php 27434 2012-01-31 08:57:34Z chenmengshu $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } if (!submitcheck('modsubmit') && !$_GET['fast']) { shownav('topic', $lang['moderate_shares']); showsubmenu('nav_moderate_posts', $submenu); $select[$_GET['tpp']] = $_GET['tpp'] ? "selected='selected'" : ''; $tpp_options = "<option value='20' {$select['20']}>20</option><option value='50' {$select['50']}>50</option><option value='100' {$select['100']}>100</option>"; $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; }
$cover = empty($allthread) ? 0 : null; $_G['forum']['ismoderator'] = 1; 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'] . '" />'));
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;
$advnew['code'] = encodeadvcode($advnew); $extra = $type != 'custom' ? '' : '&customid=' . $parameters['extra']['customid']; $advnew['parameters'] = addslashes(serialize(array_merge(is_array($parameters) ? $parameters : array(), array('style' => $advnew['style']), $advnew['style'] == 'code' ? array() : $advnew[$advnew['style']], array('html' => $advnew['code']), array('displayorder' => $advnew['displayorder'])))); $advnew['code'] = addslashes($advnew['code']); $query = DB::query("UPDATE " . DB::table('advertisement') . " SET title='{$advnew['title']}', targets='{$advnew['targets']}', parameters='{$advnew['parameters']}', code='{$advnew['code']}', starttime='{$advnew['starttime']}', endtime='{$advnew['endtime']}' WHERE advid='{$advid}'"); updatecache('advs'); updatecache('setting'); if ($operation == 'edit') { cpmsg('adv_succeed', $_G['gp_referer'], 'succeed'); } else { cpmsg('adv_succeed', 'action=adv&operation=edit&advid=' . $advid . $extra, 'succeed'); } } } elseif ($operation == 'list') { shownav('global', 'adv_admin'); showsubmenu('adv_admin', array(array('adv_admin_list', 'adv&operation=list', 1), array('adv_admin_listall', 'adv&operation=ad', 0))); showtips('adv_list_tip'); $advs = getadvs(); showtableheader('', 'fixpadding'); $row = 4; $rowwidth = 1 / $row * 100; $customadv = $ads = array(); $tmp = $advs['adv_custom.php']; unset($advs['adv_custom.php']); $advs['adv_custom.php'] = $tmp; $query = DB::query("SELECT type, count(type) as count FROM " . DB::table('advertisement') . " GROUP BY type"); while ($ad = DB::fetch($query)) { $ads[$ad['type']] = $ad['count']; } $query = DB::query("SELECT parameters FROM " . DB::table('advertisement') . " WHERE type='custom'"); while ($ad = DB::fetch($query)) {
DB::query("UPDATE " . DB::table('common_taskvar') . " SET value='" . $value . "' WHERE taskid='{$id}' AND variable='{$item}'"); } } cpmsg('tasks_succeed', "action=tasks", 'succeed'); } } elseif ($operation == 'delete' && $id) { if (!$_G['gp_confirmed']) { cpmsg('tasks_del_confirm', "action=tasks&operation=delete&id={$id}", 'form'); } DB::query("DELETE FROM " . DB::table('common_task') . " WHERE taskid='{$id}'"); DB::query("DELETE FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'"); DB::query("DELETE FROM " . DB::table('common_mytask') . " WHERE taskid='{$id}'"); cpmsg('tasks_del', 'action=tasks', 'succeed'); } elseif ($operation == 'type') { shownav('extended', 'nav_tasks'); showsubmenu('nav_tasks', array(array('admin', 'tasks', 0), $submenus ? array(array('menu' => 'add', 'submenu' => $submenus), '', 0) : array(), array('nav_task_type', 'tasks&operation=type', 1))); showtips('tasks_tips_add_type'); $tasks = gettasks(); showtableheader('', 'fixpadding'); if ($tasks) { showsubtitle(array('name', 'tasks_version', 'copyright', '')); foreach ($tasks as $task) { showtablerow('', '', array($task['name'] . ($task['filemtime'] > TIMESTAMP - 86400 ? ' <font color="red">New!</font>' : ''), $task['version'], $task['copyright'], in_array($task['class'], $custom_scripts) ? "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=upgrade&script={$task['class']}\" class=\"act\">{$lang['tasks_upgrade']}</a> <a href=\"" . ADMINSCRIPT . "?action=tasks&operation=uninstall&script={$task['class']}\" class=\"act\">{$lang['tasks_uninstall']}</a><br />" : "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=install&script={$task['class']}\" class=\"act\">{$lang['tasks_install']}</a>")); } } else { showtablerow('', '', $lang['task_module_nonexistence']); } showtablefooter(); } elseif ($operation == 'install' && $_G['gp_script']) { if (DB::result_first("SELECT COUNT(*) FROM " . DB::table('common_task') . " WHERE scriptname='{$_G['gp_script']}'")) { cpmsg('tasks_install_duplicate', '', 'error');
$creditstransselect .= '<option value="' . $i . '" ' . ($i == intval($creditstrans[0]) ? 'selected' : '') . '>' . ($i ? 'extcredits' . $i . ' (' . $extcredits[$i]['title'] . ')' : $lang['none']) . '</option>'; } } 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();
unset($_G['cache']['pluginlanguage_install'][$identifier]); save_syscache('pluginlanguage_install', $_G['cache']['pluginlanguage_install']); } require_once libfile('function/cloudaddons'); cloudaddons_uninstall($dir . '.plugin', DISCUZ_ROOT . './source/plugin/' . $dir); cpmsg('plugins_delete_succeed', "action=plugins", 'succeed'); } } elseif ($operation == 'vars') { $pluginvarid = $_G['gp_pluginvarid']; $pluginvar = DB::fetch_first("SELECT * FROM " . DB::table('common_plugin') . " p, " . DB::table('common_pluginvar') . " pv WHERE p.pluginid='{$pluginid}' AND pv.pluginid=p.pluginid AND pv.pluginvarid='{$pluginvarid}'"); if (!$pluginvar) { cpmsg('pluginvar_not_found', '', 'error'); } 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');
if ($value['formtype'] == 'select' || $value['formtype'] == 'radio' || in_array($fieldid, $fieldids)) { $options[$fieldid] = $value['title']; } } if (!empty($_GET['fieldid']) && !isset($options[$_GET['fieldid']])) { cpmsg('members_stat_bad_fieldid', 'action=members&operation=stat', 'error'); } if (!empty($_GET['fieldid']) && $_GET['fieldid'] == 'groupid') { $usergroups = array(); foreach (C::t('common_usergroup')->range() as $value) { $usergroups[$value['groupid']] = $value['grouptitle']; } } if (!submitcheck('statsubmit')) { shownav('user', 'nav_members_stat'); showsubmenu('nav_members_stat'); showtips('members_stat_tips'); showformheader('members&operation=stat&fieldid=' . $_GET['fieldid']); showtableheader('members_stat_options'); $option_html = '<ul>'; foreach ($options as $key => $value) { $extra_style = $_GET['fieldid'] == $key ? ' font-weight: 900;' : ''; $option_html .= "" . "<li style=\"float: left; width: 160px;{$extra_style}\">" . "<a href=\"" . ADMINSCRIPT . "?action=members&operation=stat&fieldid={$key}\">{$value}</a>" . "</li>"; } $option_html .= '</ul><br style="clear: both;" />'; showtablerow('', array('colspan="5"'), array($option_html)); if ($_GET['fieldid']) { $list = array(); $total = 0; foreach ($list = C::t('common_member_stat_field')->fetch_all_by_fieldid($_GET['fieldid']) as $value) { $total += $value['users'];
/** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: admincp_collection.php 27779 2012-02-14 07:33:17Z chenmengshu $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } cpheader(); $operation = in_array($operation, array('admin', 'comment')) ? $operation : 'admin'; $current = array($operation => 1); $fromumanage = $_GET['fromumanage'] ? 1 : 0; shownav('global', 'collection'); showsubmenu('collection', array(array('collection_admin', 'collection&operation=admin', $current['admin']), array('collection_comment', 'collection&operation=comment', $current['comment']))); echo '<script src="static/js/calendar.js"></script>'; if ($operation == 'comment') { $tagarray = array(); if (submitcheck('submit') && !empty($_GET['cidarray']) && is_array($_GET['cidarray']) && count($_GET['cidarray']) && !empty($_GET['operate_type'])) { $class_tag = new tag(); $cidarray = array(); $operate_type = $_GET['operate_type']; $cidarray = $_GET['cidarray']; if ($operate_type == 'delete') { require_once libfile('function/delete'); $cidlist = C::t('forum_collectioncomment')->fetch_all($cidarray); C::t('forum_collectioncomment')->delete_by_cid_ctid($cidarray); foreach ($cidlist as $uniquecid) { $decreasnum[$uniquecid['ctid']]++; }
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'); } showhiddenfields(array('upid' => $_GET['upid'])); showhiddenfields(array('catid' => $_GET['catid'])); showhiddenfields(array('type' => $type)); showsubmit('valuesubmit'); showtablefooter(); showformfooter(); } else { //沒有提交數據的列表頁 shownav('catmanage', 'category_' . $type . '_list'); showsubmenu('menu_category_' . $type); showtips('category_list_tips_' . $type); showformheader('category&type=' . $type); showtableheader(''); showsubtitle(array('display_order', 'catid', 'catname', 'operation')); foreach ($categorylist as $value) { showtablerow('', array(), array('<input name="display[' . $value['catid'] . ']" type="text" size="2" value="' . $value['displayorder'] . '" />', $value['catid'], empty($value['url']) ? $value['pre'] . ' ' . $value['name'] : '<a href="' . $value['url'] . '" target="_blank">' . $value['pre'] . ' ' . $value['name'] . ' </a>', '[<a href="admin.php?action=category&op=add&type=' . $type . '&upid=' . $value['catid'] . '">' . lang('category_add_sub') . '</a>]' . ('[<a href="admin.php?action=category&op=edit&type=' . $type . '&upid=' . $value['upid'] . '&catid=' . $value['catid'] . '">' . lang('category_edit') . '</a>] ' . ($type != 'shop' && $type != 'region' && !$value['havechild'] ? '[<a href="admin.php?action=attribute&cid=' . $value['catid'] . '&type=' . $type . '">' . lang('attribute_list') . '</a>]' : '') . ' [<a href="admin.php?action=category&op=del&catid=' . $value['catid'] . '&type=' . $type . '">' . lang('category_del') . '</a>]'))); } echo '<tr class="hover"><td></td><td><a href="?action=category&op=add&type=' . $type . '" class="addtr">' . lang('category_add_' . $type) . '</a></td><td></td><td></td><td></td></tr>'; showsubmit('listsubmit'); showtablefooter(); showformfooter(); }
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: admincp_topic.php 18628 2010-11-30 06:04:06Z zhangguosheng $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } cpheader(); $operation = 'list'; shownav('portal', 'topic'); $searchctrl = '<span style="float: right; padding-right: 40px;">' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'\';$(\'a_search_show\').style.display=\'none\';$(\'a_search_hide\').style.display=\'\';" id="a_search_show" style="display:none">' . cplang('show_search') . '</a>' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'none\';$(\'a_search_show\').style.display=\'\';$(\'a_search_hide\').style.display=\'none\';" id="a_search_hide">' . cplang('hide_search') . '</a>' . '</span>'; showsubmenu('topic', array(array('list', 'topic', 1), array('topic_add', 'portal.php?mod=portalcp&ac=topic', 0, 1, 1)), $searchctrl); if (submitcheck('opsubmit')) { if (empty($_POST['ids'])) { cpmsg('topic_choose_at_least_one_topic', 'action=topic', 'error'); } if ($_POST['optype'] == 'delete') { require_once libfile('function/delete'); deleteportaltopic($_POST['ids']); cpmsg('topic_delete_succeed', 'action=topic', 'succeed'); } elseif ($_POST['optype'] == 'close') { DB::query('UPDATE ' . DB::table('portal_topic') . " SET closed = '1' WHERE topicid IN (" . dimplode($_POST['ids']) . ")"); cpmsg('topic_close_succeed', 'action=topic', 'succeed'); } elseif ($_POST['optype'] == 'open') { DB::query('UPDATE ' . DB::table('portal_topic') . " SET closed = '0' WHERE topicid IN (" . dimplode($_POST['ids']) . ")"); cpmsg('topic_open_succeed', 'action=topic', 'succeed'); } else {
showhiddenfields(array('op' => $op)); showtableheader(); showsetting('cloud_site_id', 'my_siteid', $_G['setting']['my_siteid'], 'text'); showsetting('cloud_site_key', 'my_sitekey', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']), 'text'); showsetting('cloud_site_status', array('cloud_status', array(array('0', $lang['cloud_doctor_status_0']), array('1', $lang['cloud_doctor_status_1']), array('2', $lang['cloud_doctor_status_2']))), $_G['setting']['cloud_status'], 'select'); showsubmit('setidkeysubmit'); showtablefooter(); showformfooter(); echo '</div>'; ajaxshowfooter(); } else { $appService = Cloud::loadClass('Service_App'); $doctorService = Cloud::loadClass('Service_Doctor'); require_once DISCUZ_ROOT . './source/discuz_version.php'; shownav('navcloud', 'menu_cloud_doctor'); showsubmenu('menu_cloud_doctor'); showtips('cloud_doctor_tips'); echo '<script type="text/javascript">var disallowfloat = "";</script>'; showtableheader(); showtagheader('tbody', '', true); showtitle('cloud_doctor_title_status'); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_url') . '</strong>', $_G['siteurl'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_id') . '</strong>', $_G['setting']['my_siteid'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_key') . '</strong>', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']) . ' ' . $lang['cloud_site_key_safetips'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_status') . '</strong>', isfounder() ? $doctorService->showCloudStatus($_G['setting']['cloud_status']) . ' <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=doctor&op=setidkey\'); return false;">' . $lang['cloud_doctor_modify_siteidkey'] . '</a>' : $doctorService->showCloudStatus($_G['setting']['cloud_status']))); showtablerow('', array('class="td24"'), array('<strong>' . cplang('setting_basic_bbclosed') . '</strong>', $_G['setting']['bbclosed'] ? $lang['cloud_doctor_close_yes'] : $lang['no'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_version') . '</strong>', DISCUZ_VERSION . ' ' . DISCUZ_RELEASE)); showtagfooter('tbody'); showtagheader('tbody', '', true); showtitle('cloud_doctor_title_result'); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_timecheck') . '</strong>', '<span id="cloud_time_check">' . cplang('cloud_doctor_time_check', array('imgdir' => $_G['style']['imgdir'])) . '</span>'));
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: admincp_domain.php 29304 2012-04-01 03:31:07Z zhengqingpeng $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } cpheader(); $operation = in_array($operation, array('global', 'app', 'root')) ? $operation : 'global'; $current = array($operation => 1); shownav('global', 'setting_domain'); showsubmenu('setting_domain', array(array('setting_domain_base', 'domain', $current['global']), array('setting_domain_app', 'domain&operation=app', $current['app']), array('setting_domain_root', 'domain&operation=root', $current['root']))); $navs = $_G['setting']['navs']; if ($operation == 'app') { if (!submitcheck('submit')) { $appkeyarr = array('portal' => $navs[1]['navname'], 'forum' => $navs[2]['navname'], 'group' => $navs[3]['navname'], 'home' => $navs[4]['navname'], 'mobile' => $lang['mobile'], 'default' => $lang['default']); showtips('setting_domain_app_tips'); showformheader('domain&operation=app'); showtableheader(); showsubtitle(array('name', 'setting_domain_app_domain')); $app = array(); $hiddenarr = array(); foreach ($appkeyarr as $key => $desc) { if (in_array($key, array('portal', 'group')) && !helper_access::check_module($key) || $key == 'home' && !helper_access::check_module('feed')) { $hiddenarr["appnew[{$key}]"] = ''; } else { showtablerow('', array('class="td25"', ''), array($desc, "<input type=\"text\" class=\"txt\" style=\"width:50%;\" name=\"appnew[{$key}]\" value=\"" . $_G['setting']['domain']['app'][$key] . "\">" . ($key == 'mobile' ? cplang('setting_domain_app_mobile_tips') : '')));
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: cloud_smilies.php 25510 2011-11-14 02:22:26Z yexinhao $ */ if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } cpheader(); $_GET['anchor'] = in_array($_GET['anchor'], array('base')) ? $_GET['anchor'] : 'base'; shownav('navcloud', 'cloud_storage'); showsubmenu('cloud_storage'); showtips('cloud_storage_tips');
cpmsg('category_not_found', '', 'error'); } $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'];
$ajaxoptionlist .= '<li><a href="' . $custom['url'] . '" target="' . (substr(rawurldecode($custom['url']), 0, 17) == ADMINSCRIPT . '?action=' ? 'main' : '_blank') . '">' . cplang($custom['title']) . '</a></li>'; } 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]);
<?php /** * [品牌空間] (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);
exit('Access Denied'); } 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));
$member['remark'] = $_GET['remark'][$uid] ? dhtmlspecialchars($_GET['remark'][$uid]) : $lang['none']; $moderate_member_message = lang('email', 'moderate_member_message', array('username' => $member['username'], 'bbname' => $_G['setting']['bbname'], 'regdate' => $member['regdate'], 'submitdate' => $member['submitdate'], 'submittimes' => $member['submittimes'], 'message' => $member['message'], 'modresult' => lang('email', 'moderate_member_' . $member['operation']), 'moddate' => $member['moddate'], 'adminusername' => $_G['member']['username'], 'remark' => $member['remark'], 'siteurl' => $_G['siteurl'])); 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']) {
$grouplogohtml = '<label>' . $langs['newslideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />'; } else { $grouplogohtml = $langs['newslideimgtip']; } showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml); 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');
$ec_creditnew['rank'] = $defaultrank; } DB::query("UPDATE " . DB::table('common_setting') . " SET svalue='" . serialize($ec_creditnew) . "' WHERE skey='ec_credit'"); 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)) {
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: admincp_portalcategory.php 32945 2013-03-26 05:01:12Z zhangguosheng $ */ if (!defined('IN_DISCUZ') || !defined('IN_DISCUZ')) { exit('Access Denied'); } require_once libfile('function/portalcp'); $maparea = array('beijing' => '1', 'shanghai' => '2', 'qingdao' => '3', 'jinan' => '3', 'dezhou' => '3'); cpheader(); $area = in_array($operation, array('delete', 'move', 'perm', 'add', 'edit', 'list')) ? $area : $operation; showsubmenu($area, array(array('简介', 'yuexiamen&operation=list&area=' . $area . '&do=jianjie', $do == 'jianjie'), array('百科', 'yuexiamen&operation=list&area=' . $area . '&do=baike', $do == 'baike'), array('景区', 'yuexiamen&operation=list&area=' . $area . '&do=poi', $do == 'poi'), array('景点', 'yuexiamen&operation=list&area=' . $area . '&do=place', $do == 'place'), array('餐厅', 'yuexiamen&operation=list&area=' . $area . '&do=canting', $do == 'canting'), array('商场', 'yuexiamen&operation=list&area=' . $area . '&do=shangchang', $do == 'shangchang'), array('娱乐场所', 'yuexiamen&operation=list&area=' . $area . '&do=yulechangsuo', $do == 'yulechangsuo'), array('飞机场,火车站,客运站', 'yuexiamen&operation=list&area=' . $area . '&do=feijichang', $do == 'feijichang'), array('交通', 'yuexiamen&operation=list&area=' . $area . '&do=jiaotong', $do == 'jiaotong'), array('住宿', 'yuexiamen&operation=list&area=' . $area . '&do=zhusu', $do == 'zhusu'), array('美食', 'yuexiamen&operation=list&area=' . $area . '&do=meishi', $do == 'meishi'), array('购物', 'yuexiamen&operation=list&area=' . $area . '&do=gouwu', $do == 'gouwu'), array('娱乐', 'yuexiamen&operation=list&area=' . $area . '&do=yule', $do == 'yule'))); if ($operation == 'list' && $do == 'poi') { $yuexiamen = C::t('yuexiamen_poi')->fetch_all_by_areaid($maparea[$area]); 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>'; $tdstyle = array('width="25"', 'width="60"', 'width="45"', 'width="55"'); showformheader('portalcategory'); showtableheader('', '', 'style="min-width:900px;*width:900px;"'); showsubtitle(array('id', '名称', '简介', '管理'), 'header', $tdstyle); foreach ($yuexiamen as $key => $value) { echo '<tr class="hover" id="cat4"> <td>' . $value['id'] . ' <td> <div class="parentboard">' . $value['name'] . '</div> </td> <td>
$query = DB::query("SELECT verifytype, COUNT(*) AS num FROM " . DB::table('common_member_verify_info') . " WHERE flag='0' GROUP BY verifytype"); while ($value = DB::fetch($query)) { if ($value['num']) { if ($value['verifytype']) { $verifyinfo = !empty($_G['setting']['verify'][$value['verifytype']]) ? $_G['setting']['verify'][$value['verifytype']] : array(); if ($verifyinfo['available']) { $verify .= '<a href="' . ADMINSCRIPT . '?action=verify&operation=verify&do=' . $value['verifytype'] . '">' . cplang('home_mod_verify_prefix') . $verifyinfo['title'] . '</a>(<em class="lightnum">' . $value['num'] . '</em>)'; } } else { $verify .= '<a href="' . ADMINSCRIPT . '?action=verify&operation=verify&do=0">' . cplang('home_mod_verify_prefix') . cplang('members_verify_profile') . '</a>(<em class="lightnum">' . $value['num'] . '</em>)'; } } } cpheader(); shownav(); showsubmenu('home_welcome', array(), '', array('bbname' => $_G['setting']['bbname'])); $save_mastermobile = DB::result_first("SELECT svalue FROM " . DB::table('common_setting') . " WHERE skey='mastermobile'"); $save_mastermobile = !empty($save_mastermobile) ? authcode($save_mastermobile, 'DECODE', $_G['config']['security']['authkey']) : ''; $securityadvise = ''; if ($isfounder) { $securityadvise .= !$_G['config']['admincp']['founder'] ? $lang['home_security_nofounder'] : ''; $securityadvise .= !$_G['config']['admincp']['checkip'] ? $lang['home_security_checkip'] : ''; $securityadvise .= $_G['config']['admincp']['runquery'] ? $lang['home_security_runquery'] : ''; if (!empty($_G['gp_securyservice'])) { $_G['gp_new_mastermobile'] = trim($_G['gp_new_mastermobile']); if (empty($_G['gp_new_mastermobile'])) { $save_mastermobile = $_G['gp_new_mastermobile']; DB::query("REPLACE INTO " . DB::table('common_setting') . " (skey, svalue) VALUES ('mastermobile', '{$_G['gp_new_mastermobile']}')"); } elseif ($save_mastermobile != $_G['gp_new_mastermobile'] && strlen($_G['gp_new_mastermobile']) == 11 && is_numeric($_G['gp_new_mastermobile']) && in_array(substr($_G['gp_new_mastermobile'], 0, 2), array('13', '15', '18'))) { $save_mastermobile = $_G['gp_new_mastermobile']; $_G['gp_new_mastermobile'] = authcode($_G['gp_new_mastermobile'], 'ENCODE', $_G['config']['security']['authkey']);
$_POST['ids'] = daddslashes($_POST['ids']); DB::query('DELETE FROM ' . DB::table('common_block_item') . " WHERE bid IN (" . dimplode($_POST['ids']) . ")"); DB::query('DELETE FROM ' . DB::table('common_block') . " WHERE bid IN (" . dimplode($_POST['ids']) . ")"); DB::delete('common_block_permission', 'bid IN (' . dimplode($_POST['ids']) . ')'); cpmsg('block_delete_succeed', 'action=block&operation=jscall', 'succeed'); } else { cpmsg('block_choose_at_least_one_block', 'action=block&operation=jscall', 'error'); } } elseif (submitcheck('clearsubmit')) { include_once libfile('function/block'); block_clear(); cpmsg('block_clear_unused_succeed', 'action=block', 'succeed'); } else { loadcache(array('diytemplatename')); $searchctrl = '<span style="float: right; padding-right: 40px;">' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'\';$(\'a_search_show\').style.display=\'none\';$(\'a_search_hide\').style.display=\'\';" id="a_search_show" style="display:none">' . cplang('show_search') . '</a>' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'none\';$(\'a_search_show\').style.display=\'\';$(\'a_search_hide\').style.display=\'none\';" id="a_search_hide">' . cplang('hide_search') . '</a>' . '</span>'; showsubmenu('block', array(array('block_list', 'block', $operation == 'list'), array('block_jscall', 'block&operation=jscall', $operation == 'jscall')), $searchctrl); $mpurl = ADMINSCRIPT . '?action=block&operation=' . $operation; $intkeys = array('bid'); $strkeys = array('blockclass'); $strkeys[] = 'targettplname'; $randkeys = array(); $likekeys = array('name'); $results = getwheres($intkeys, $strkeys, $randkeys, $likekeys); foreach ($likekeys as $k) { $_GET[$k] = htmlspecialchars(stripslashes($_GET[$k])); } $wherearr = $results['wherearr']; $mpurl .= '&' . implode('&', $results['urls']); $wherearr[] = $operation == 'jscall' ? "blocktype='1'" : "blocktype='0'"; if ($_GET['permname']) { $bids = '';
} cpmsg('group_mod_succeed', 'action=group&operation=mod', 'succeed'); } loadcache('grouptype'); $perpage = 50; $page = intval($_GET['page']) ? intval($_GET['page']) : 1; $startlimit = ($page - 1) * $perpage; $count = C::t('forum_forum')->validate_level_num(); $multipage = multi($count, $perpage, $page, ADMINSCRIPT . "?action=group&operation=mod&submit=yes"); $query = C::t('forum_forum')->fetch_all_validate($startlimit, $startlimit + $perpage); foreach ($query as $group) { $groups .= showtablerow('', array('class="td25"', '', ''), array("<input type=\"checkbox\" name=\"fidarray[]\" value=\"{$group['fid']}\" class=\"checkbox\">", "<a href=\"forum.php?mod=forumdisplay&fid={$group['fid']}\" target=\"_blank\">{$group['name']}</a>", empty($_G['cache']['grouptype']['first'][$group[fup]]) ? $_G['cache']['grouptype']['second'][$group[fup]]['name'] : $_G['cache']['grouptype']['first'][$group[fup]]['name'], "<a href=\"home.php?mod=space&uid={$group['founderuid']}\" target=\"_blank\">{$group['foundername']}</a>", dgmdate($group['dateline'])), TRUE); $groups .= showtablerow('', array('', 'colspan="4"'), array('', cplang('group_mod_description') . ' : ' . $group['description']), TRUE); } shownav('group', 'nav_group_mod'); showsubmenu('nav_group_mod'); showformheader("group&operation=mod"); showtableheader('group_mod_wait'); showsubtitle(array('', 'groups_manage_name', 'groups_editgroup_category', 'groups_manage_founder', 'groups_manage_createtime')); echo $groups; showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'fidarray\')" /><label for="chkall">' . cplang('select_all') . '</label> <input type="submit" class="btn" name="validate" value="' . cplang('validate') . '" /> <input type="submit" class="btn" name="delsubmit" value="' . cplang('delete') . '" onclick="return confirm(\'' . cplang('group_mod_delconfirm') . '\')" />', $multipage); showtablefooter(); showformfooter(); } function showgroup(&$forum, $type = '', $last = '') { global $_G; loadcache('grouptype'); if ($last == '') { $return = '<tr class="hover"><td class="td25"><input type="text" class="txt" name="order[' . $forum['fid'] . ']" value="' . $forum['displayorder'] . '" /></td><td>'; if ($type == 'group') {
if ($threadsdel || $threadsundel) { $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']; }
break; case 'consume': showsubmenu('menu_list_' . $_GET['action'] . 'consume'); break; case 'notice': 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);