<?php if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } showtableheader(); showtagheader('tbody class="psetting"', '', true); showtitle('未启用的扩展'); $sql = "SELECT * FROM " . DB::table('yinxingfei_zzza_kuozhan') . " WHERE available = '0' ORDER BY identifier ASC"; $query = DB::query($sql); while ($value = DB::fetch($query)) { if ($value['name']) { showtablerow('class="hover hover" style="overflow: hidden;"', array(), array(' <div style="float:left;width:20%;padding-bottom: 10px;"> <p><span class="bold">' . $value['name'] . '</span></p> <p><span class="sml"></span></p> </div> <div style="float:left;width:80%;padding-bottom: 10px;"> <p>说明:' . $value['description'] . '</p> <p style="overflow: hidden;"> <div style="float:left;width:50%;">版本:' . $value['version'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>作者:' . $value['copyright'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>类型:' . $value['type'] . '<em style="color:#ddd;padding: 0px 5px;">|</em>文件夹:' . $value['identifier'] . '</div> <div style="text-align: right;float:right;width:50%;"> <a href="' . ADMINSCRIPT . '?action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend&caozuo=kaiqi&kzid=' . $value['kzid'] . '">开启</a> <span> </span> <a href="' . ADMINSCRIPT . '?action=plugins&operation=config&identifier=yinxingfei_zzza&pmod=extend&caozuo=xiezai&kzid=' . $value['kzid'] . '">卸载</a> </div> </p> </div> ')); echo '<style>.yincang_' . $value['identifier'] . ' {display:none;}</style>'; }
$tradelog = array('orderid' => 'TEST' . dgmdate(TIMESTAMP, 'YmdHis') . random(18), 'baseprice' => 1, 'number' => 1, 'transportfee' => 0); dheader('location: ' . trade_payurl($pay, $trade, $tradelog)); } exit; } if (!submitcheck('tenpaysubmit')) { shownav('extended', 'nav_ec'); showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 1), 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', 0))); showtips('ec_tenpay_tips'); showformheader('ec&operation=tenpay'); showtableheader('', 'nobottom'); showtitle('ec_tenpay_opentrans'); showsetting('ec_tenpay_opentrans_chnid', 'settingsnew[ec_tenpay_opentrans_chnid]', $settings['ec_tenpay_opentrans_chnid'], 'text'); $tenpay_securitycodemask = $settings['ec_tenpay_opentrans_key'] ? $settings['ec_tenpay_opentrans_key'][0] . '********' . substr($settings['ec_tenpay_opentrans_key'], -4) : ''; showsetting('ec_tenpay_opentrans_key', 'settingsnew[ec_tenpay_opentrans_key]', $tenpay_securitycodemask, 'text'); showtitle('ec_tenpay'); showsetting('ec_tenpay_direct', 'settingsnew[ec_tenpay_direct]', $settings['ec_tenpay_direct'], 'radio'); showsetting('ec_tenpay_bargainor', 'settingsnew[ec_tenpay_bargainor]', $settings['ec_tenpay_bargainor'], 'text'); $tenpay_securitycodemask = $settings['ec_tenpay_key'] ? $settings['ec_tenpay_key'][0] . '********' . substr($settings['ec_tenpay_key'], -4) : ''; showsetting('ec_tenpay_key', 'settingsnew[ec_tenpay_key]', $tenpay_securitycodemask, 'text'); showsetting('ec_tenpay_check', '', '', '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=credit" target="_blank">' . $lang['ec_alipay_checklink_credit'] . '</a><br />' . '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=virtualgoods" target="_blank">' . $lang['ec_alipay_checklink_virtualgoods'] . '</a><br />' . '<a href="' . ADMINSCRIPT . '?action=ec&operation=tenpay&checktype=goods" target="_blank">' . $lang['ec_alipay_checklink_goods'] . '</a><br />'); showtablefooter(); showtableheader('', 'notop'); showsubmit('tenpaysubmit'); showtablefooter(); showformfooter(); } else { $settingsnew = $_G['gp_settingsnew']; $settingsnew['ec_tenpay_bargainor'] = trim($settingsnew['ec_tenpay_bargainor']); $settingsnew['ec_tenpay_key'] = trim($settingsnew['ec_tenpay_key']); $tenpay_securitycodemask = $settings['ec_tenpay_key'] ? $settings['ec_tenpay_key'][0] . '********' . substr($settings['ec_tenpay_key'], -4) : '';
$query = DB::query("SELECT * FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'"); while ($taskvar = DB::fetch($query)) { if ($taskvar['sort'] == 'apply') { $taskvars['apply'][] = $taskvar; } elseif ($taskvar['sort'] == 'complete') { $taskvars['complete'][$taskvar['variable']] = $taskvar; } elseif ($taskvar['sort'] == 'setting' && $taskvar['name']) { $taskvars['setting'][$taskvar['variable']] = $taskvar; } } if ($taskvars['apply']) { foreach ($taskvars['apply'] as $taskvar) { showsetting($taskvar['name'], $taskvar['variable'], $taskvar['value'], $taskvar['type'], '', 0, $taskvar['description']); } } showtitle('tasks_add_conditions'); require_once libfile('task/' . $task['scriptname'], 'class'); $taskclass = 'task_' . $task['scriptname']; $taskcv = new $taskclass(); if ($taskvars['complete']) { foreach ($taskvars['complete'] as $taskvar) { $taskcvar = $taskcv->conditions[$taskvar['variable']]; if (is_array($taskcvar['value'])) { foreach ($taskcvar['value'] as $k => $v) { $taskcvar['value'][$k][1] = lang('task/' . $task['scriptname'], $taskcvar['value'][$k][1]); } } $varname = in_array($taskvar['type'], array('mradio', 'mcheckbox', 'select', 'mselect')) ? $taskvar['type'] == 'mselect' ? array($taskvar['variable'] . '[]', $taskcvar['value']) : array($taskvar['variable'], $taskcvar['value']) : $taskvar['variable']; if (in_array($taskvar['type'], array('mcheckbox', 'mselect'))) { $taskvar['value'] = unserialize($taskvar['value']); }
showtagheader('tbody', '', true); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone') . '</strong>', $doctorService->checkDNSResult(3, $_G['setting']))); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_dns_qzone_test') . '</strong>', $doctorService->showTestJS(3))); showtagfooter('tbody'); showtagheader('tbody', 'cloud_tbody_qzone_test', false); showtagfooter('tbody'); showtagheader('tbody', 'cloud_tbody_site_test', true); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_site_test') . '</strong>', cplang('cloud_doctor_site_test_result', array('imgdir' => $_G['style']['imgdir'])))); showtagfooter('tbody'); showtagheader('tbody', '', true); showtitle('cloud_doctor_title_plugin'); $doctorService->showPlugins(); showtagfooter('tbody'); if ($appService->getCloudAppStatus('connect')) { if ($op == 'fixGuest') { $doctorService->fixGuestGroup(cplang('connect_guest_group_name')); } showtagheader('tbody', '', true); showtitle('cloud_doctor_title_connect'); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_id') . '</strong>', !empty($_G['setting']['connectappid']) ? $_G['setting']['connectappid'] : $lang['cloud_doctor_connect_reopen'])); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_app_key') . '</strong>', !empty($_G['setting']['connectappkey']) ? preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['connectappkey']) . ' ' . $lang['cloud_site_key_safetips'] : $lang['cloud_doctor_connect_reopen'])); $guestGroupStr = cplang('cloud_doctor_result_success') . ' ' . cplang('cloud_doctor_normal'); if (!$doctorService->checkGuestGroup()) { $guestGroupStr = cplang('cloud_doctor_result_failure') . ' ' . cplang('cloud_doctor_connect_fix'); } showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_doctor_connect_guestgroup') . '</strong>', $guestGroupStr)); showtagfooter('tbody'); } showtablefooter(); $doctorService->showCloudDoctorJS(); }
$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'); showsubmit('varsubmit'); showtablefooter(); showformfooter(); } else { $titlenew = cutstr(dhtmlspecialchars(trim($_G['gp_titlenew'])), 25); $descriptionnew = cutstr(dhtmlspecialchars(trim($_G['gp_descriptionnew'])), 255); $variablenew = trim($_G['gp_variablenew']); $extranew = dhtmlspecialchars(trim($_G['gp_extranew']));
showsetting('admingroup_edit_manage_hotuser', 'managehotusernew', $group['managehotuser'], 'radio'); showsetting('admingroup_edit_manage_defaultuser', 'managedefaultusernew', $group['managedefaultuser'], 'radio'); showsetting('admingroup_edit_manage_videophoto', 'managevideophotonew', $group['managevideophoto'], 'radio'); showsetting('admingroup_edit_manage_magic', 'managemagicnew', $group['managemagic'], 'radio'); showsetting('admingroup_edit_manage_click', 'manageclicknew', $group['manageclick'], 'radio'); showtagfooter('tbody'); showtagheader('tbody', 'otherperm', $_GET['anchor'] == 'otherperm'); showtitle('admingroup_edit_otherperm'); showsetting('admingroup_edit_view_ip', 'allowviewipnew', $group['allowviewip'], 'radio'); showsetting('admingroup_edit_manage_collection', 'allowmanagecollectionnew', $group['allowmanagecollection'], 'radio'); showtagfooter('tbody'); showtablefooter(); showtagheader('div', 'portalperm', $_GET['anchor'] == 'portalperm'); showtableheader(); showtagheader('tbody', '', true); showtitle('admingroup_edit_portalperm'); showsetting('admingroup_edit_manage_article', 'allowmanagearticlenew', $group['allowmanagearticle'], 'radio'); showtagfooter('tbody'); showtagheader('tbody', '', true); showsetting('admingroup_edit_add_topic', 'allowaddtopicnew', $group['allowaddtopic'], 'radio'); showsetting('admingroup_edit_manage_topic', 'allowmanagetopicnew', $group['allowmanagetopic'], 'radio'); showsetting('admingroup_edit_diy', 'allowdiynew', $group['allowdiy'], 'radio'); showtagfooter('tbody'); showtablefooter(); showtagfooter('div'); showsubmit('groupsubmit'); $_G['showsetting_multi']++; } if ($_G['showsetting_multicount'] > 1) { showhiddenfields(array('multi' => implode(',', $mgids))); showmulti();
showsetting('members_edit_email_emailstatus', 'emailstatusnew', $member['emailstatus'], 'radio'); showsetting('members_edit_posts', 'postsnew', $member['posts'], 'text'); showsetting('members_edit_digestposts', 'digestpostsnew', $member['digestposts'], 'text'); showsetting('members_edit_regip', 'regipnew', $member['regip'], 'text'); showsetting('members_edit_regdate', 'regdatenew', $member['regdate'], 'text'); showsetting('members_edit_lastvisit', 'lastvisitnew', $member['lastvisit'], 'text'); showsetting('members_edit_lastip', 'lastipnew', $member['lastip'], 'text'); showsetting('members_edit_addsize', 'addsizenew', $member['addsize'], 'text'); showsetting('members_edit_addfriend', 'addfriendnew', $member['addfriend'], 'text'); showsetting('members_edit_timeoffset', 'timeoffsetnew', $member['timeoffset'], 'text'); showsetting('members_edit_invisible', 'invisiblenew', $member['invisible'], 'radio'); showtitle('members_edit_option'); showsetting('members_edit_cstatus', 'cstatusnew', $member['customstatus'], 'text'); showsetting('members_edit_signature', 'signaturenew', $member['signature'], 'textarea'); if ($fields) { showtitle('profilefields_fields'); include_once libfile('function/profile'); foreach ($fields as $fieldid => $fieldtitle) { $html = profile_setting($fieldid, $member); if ($html) { showsetting($fieldtitle, '', '', $html); } } } showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { loaducenter(); require_once libfile('function/discuzcode'); $questionid = $_G['gp_clearquestion'] ? 0 : '';
showsubmenu('nav_plugins', array(array('plugins_list', 'plugins', 0), $isplugindeveloper ? array('plugins_add', 'plugins&operation=add', 0) : array(), array('cloudaddons_plugin_link', 'cloudaddons')), '<a href="' . ADMINSCRIPT . '?action=plugins&operation=upgradecheck" class="bold" style="float:right;padding-right:40px;">' . $lang['plugins_validator'] . '</a>'); showtableheader(); if ($nowarray) { showtitle('plugins_validator_nowupgrade'); foreach ($nowarray as $row) { showtablerow('class="hover"', array(), array($row)); } } if ($newarray) { showtitle('plugins_validator_newversion'); foreach ($newarray as $row) { showtablerow('class="hover"', array(), array($row)); } } if ($errarray) { showtitle('plugins_validator_error'); foreach ($errarray as $row) { showtablerow('class="hover"', array(), array($row)); } } showtablefooter(); } } elseif ($operation == 'sample') { $plugin = C::t('common_plugin')->fetch($pluginid); if (!$plugin) { cpmsg('plugin_not_found', '', 'error'); } $code = moduleample($_GET['typeid'], $_GET['module'], $plugin); if (!$code) { cpmsg('NO_OPERATION'); }
showformheader("styles&operation=edit&id={$id}"); showtableheader($lang['styles_edit'], 'nobottom'); showsetting('styles_edit_name', 'namenew', $style['name'], 'text'); showsetting('styles_edit_tpl', array('templateidnew', $tplselect), $style['templateid'], 'select'); showsetting('styles_edit_extstyle', array('extstylenew', $extstyle), $style['extstyle'], 'mcheckbox'); if ($extstyle) { showsetting('styles_edit_defaultextstyle', array('defaultextstylenew', $defaultextstyle), $style['defaultextstyle'], 'select'); } showsetting('styles_edit_smileytype', array("stylevar[{$stylestuff[stypeid][id]}]", $smileytypes), $stylestuff['stypeid']['subst'], 'select'); showsetting('styles_edit_imgdir', '', '', '<input type="text" class="txt" name="stylevar[' . $stylestuff['imgdir']['id'] . ']" id="imgdir" value="' . $stylestuff['imgdir']['subst'] . '" />'); showsetting('styles_edit_styleimgdir', '', '', '<input type="text" class="txt" name="stylevar[' . $stylestuff['styleimgdir']['id'] . ']" id="styleimgdir" value="' . $stylestuff['styleimgdir']['subst'] . '" />'); showsetting('styles_edit_logo', "stylevar[{$stylestuff[boardimg][id]}]", $stylestuff['boardimg']['subst'], 'text'); foreach ($predefinedvars as $predefinedvar => $v) { if ($v !== array()) { if (!empty($v[1])) { showtitle($v[1]); } $type = $v[0] == 1 ? 'text' : 'color'; $extra = ''; $comment = ($type == 'text' ? $lang['styles_edit_' . $predefinedvar . '_comment'] : $lang['styles_edit_hexcolor']) . $lang['styles_edit_' . $predefinedvar . '_comment']; if (substr($predefinedvar, -7, 7) == 'bgcolor') { $stylestuff[$predefinedvar]['subst'] = explode(' ', $stylestuff[$predefinedvar]['subst']); $bgimg = $stylestuff[$predefinedvar]['subst'][1]; $bgextra = implode(' ', array_slice($stylestuff[$predefinedvar]['subst'], 2)); $stylestuff[$predefinedvar]['subst'] = $stylestuff[$predefinedvar]['subst'][0]; $bgimgpre = $bgimg ? preg_match('/^http:\\/\\//i', $bgimg) ? $bgimg : ($stylestuff['styleimgdir']['subst'] ? $stylestuff['styleimgdir']['subst'] : ($stylestuff['imgdir']['subst'] ? $stylestuff['imgdir']['subst'] : 'static/image/common')) . '/' . $bgimg : 'static/image/common/none.gif'; $comment .= '<div id="bgpre_' . $stylestuff[$predefinedvar]['id'] . '" onclick="imgpre_switch(' . $stylestuff[$predefinedvar]['id'] . ')" style="background-image:url(' . $bgimgpre . ');cursor:pointer;float:right;width:350px;height:40px;overflow:hidden;border: 1px solid #ccc"></div>' . $lang['styles_edit_' . $predefinedvar . '_comment'] . $lang['styles_edit_bg']; $extra = '<br /><input name="stylevarbgimg[' . $stylestuff[$predefinedvar]['id'] . ']" value="' . $bgimg . '" onchange="imgpre_update(' . $stylestuff[$predefinedvar]['id'] . ', this)" type="text" class="txt" style="margin:5px 0;" />' . '<br /><input name="stylevarbgextra[' . $stylestuff[$predefinedvar]['id'] . ']" value="' . $bgextra . '" type="text" class="txt" />'; $varcomment = ' {' . strtoupper($predefinedvar) . '},{' . strtoupper(substr($predefinedvar, 0, -7)) . 'BGCODE}:'; } else { $varcomment = ' {' . strtoupper($predefinedvar) . '}:';
'; echo '<div style="margin: 0 10px; width: 700px;">'; showformheader('cloud'); showhiddenfields(array('operation' => $operation)); if ($_G['gp_callback']) { showhiddenfields(array('callback' => $_G['gp_callback'])); } showtableheader(); showsetting('cloud_api_ip', 'cloud_api_ip', $_G['setting']['cloud_api_ip'], 'text'); showsetting('cloud_manyou_ip', 'my_ip', $_G['setting']['my_ip'], 'text'); showsubmit('ipsubmit'); showtablefooter(); showformfooter(); echo '</div>'; ajaxshowfooter(); } else { shownav('navcloud', 'menu_cloud_siteinfo'); showsubmenu('menu_cloud_siteinfo'); showtips('cloud_siteinfo_tips'); echo '<script type="text/javascript">var disallowfloat = "";</script>'; showformheader('cloud'); showhiddenfields(array('operation' => $operation)); showtableheader(); showtitle('menu_cloud_siteinfo'); showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_name') . '</strong>', $_G['setting']['bbname'])); 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'])); showsubmit('syncsubmit', 'cloud_sync', '', '<input type="submit" class="btn" id="submit_resetsubmit" name="resetsubmit" value="' . $lang['cloud_resetkey'] . '" /> <input type="button" class="btn" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=siteinfo&anchor=cloud_ip\'); return false;" value="' . $lang['cloud_api_ip_btn'] . '" />'); showtablefooter(); showformfooter(); }
showsetting('magics_edit_description', 'descriptionnew', $magic['description'], 'textarea'); if (is_array($magicsetting)) { foreach ($magicsetting as $settingvar => $setting) { if (!empty($setting['value']) && is_array($setting['value'])) { foreach ($setting['value'] as $k => $v) { $setting['value'][$k][1] = lang('magic/' . $magic['identifier'], $setting['value'][$k][1]); } } $varname = in_array($setting['type'], array('mradio', 'mcheckbox', 'select', 'mselect')) ? $setting['type'] == 'mselect' ? array('perm[' . $settingvar . '][]', $setting['value']) : array('perm[' . $settingvar . ']', $setting['value']) : 'perm[' . $settingvar . ']'; $value = $magicperm[$settingvar] != '' ? $magicperm[$settingvar] : $setting['default']; $comment = lang('magic/' . $magic['identifier'], $setting['title'] . '_comment'); $comment = $comment != $setting['title'] . '_comment' ? $comment : ''; showsetting(lang('magic/' . $magic['identifier'], $setting['title']) . ':', $varname, $value, $setting['type'], '', 0, $comment); } } showtitle('magics_edit_perm'); showtablerow('', 'colspan="2" class="td27"', $lang['magics_edit_usergroupperm'] . ':<input class="checkbox" type="checkbox" name="chkall1" onclick="checkAll(\'prefix\', this.form, \'usergroupsperm\', \'chkall1\', true)" id="chkall1" /><label for="chkall1"> ' . cplang('select_all') . '</label>'); showtablerow('', 'colspan="2"', mcheckbox('usergroupsperm', $groups, explode("\t", $magicperm['usergroups']))); if (!empty($magicclass->targetgroupperm)) { showtablerow('', 'colspan="2" class="td27"', $lang['magics_edit_targetgroupperm'] . ':<input class="checkbox" type="checkbox" name="chkall2" onclick="checkAll(\'prefix\', this.form, \'targetgroupsperm\', \'chkall2\', true)" id="chkall2" /><label for="chkall2"> ' . cplang('select_all') . '</label>'); showtablerow('', 'colspan="2"', mcheckbox('targetgroupsperm', $groups, explode("\t", $magicperm['targetgroups']))); } showsubmit('magiceditsubmit'); showtablefooter(); showformfooter(); } else { $namenew = dhtmlspecialchars(trim($_GET['namenew'])); $identifiernew = dhtmlspecialchars(trim(strtoupper($_GET['identifiernew']))); $descriptionnew = dhtmlspecialchars($_GET['descriptionnew']); $availablenew = !$identifiernew ? 0 : 1; $magicperm['usergroups'] = is_array($_GET['usergroupsperm']) && !empty($_GET['usergroupsperm']) ? "\t" . implode("\t", $_GET['usergroupsperm']) . "\t" : '';
$tradetypeselect .= '<option value="' . $type['typeid'] . '"' . ($checked ? ' selected="selected"' : '') . '>' . $type['name'] . '</option>'; } $tradetypeselect .= '</select>'; showtableheader(); showtitle('settings_ec_credittrade'); showsetting('settings_ec_ratio', 'settingsnew[ec_ratio]', $settings['ec_ratio'], 'text'); showsetting('settings_ec_mincredits', 'settingsnew[ec_mincredits]', $settings['ec_mincredits'], 'text'); showsetting('settings_ec_maxcredits', 'settingsnew[ec_maxcredits]', $settings['ec_maxcredits'], 'text'); showsetting('settings_ec_maxcreditspermonth', 'settingsnew[ec_maxcreditspermonth]', $settings['ec_maxcreditspermonth'], 'text'); showtitle('settings_ec_goodstrade'); showsetting('settings_ec_type', '', '', $tradetypeselect); } elseif ($operation == 'msn') { $settings['msn'] = unserialize($settings['msn']); showtips('settings_msn_tips'); showtableheader(); showtitle('settings_msn_basic'); showsetting('settings_msn_on', 'settingsnew[msn][on]', $settings['msn']['on'], 'radio'); showsetting('settings_msn_domain', 'msndomain', $settings['msn']['domain'], 'text'); showsubmit('settingsubmit', 'submit', '', '<input type="button" class="btn" name="msncheck" value="' . $lang['settings_msn_domain_check'] . '" onclick="window.open(\'https://domains.live.com/members/signup.aspx?domain=\'+this.form.msndomain.value)" />'); showtablefooter(); exit; } else { cpmsg('undefined_action'); } showsubmit('settingsubmit', 'submit', '', $extbutton . (!empty($from) ? '<input type="hidden" name="from" value="' . $from . '">' : '')); showtablefooter(); showformfooter(); } else { if ($operation == 'credits') { $extcredits_exists = 0; foreach ($settingsnew['extcredits'] as $val) {
} if (!submitcheck('copysubmit')) { $groupselect = array(); foreach (C::t('common_usergroup')->fetch_all_not(array(6, 7), true) as $group) { $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type']; $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\">{$group['grouptitle']}</option>\n"; } $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : ''); $usergroupselect = '<select name="target" size="10">' . $groupselect . '</select>'; shownav('user', 'usergroups_merge'); showsubmenu('usergroups_merge'); showtips('usergroups_merge_tips'); showformheader('usergroups&operation=merge'); showhiddenfields(array('source' => $source)); showtableheader(); showtitle('usergroups_copy'); showsetting(cplang('usergroups_copy_source') . ':', '', '', $sourceusergroup['grouptitle']); showsetting('usergroups_merge_target', '', '', $usergroupselect); showsetting('usergroups_merge_delete_source', 'delete_source', 0, 'radio'); showsubmit('copysubmit'); showtablefooter(); showformfooter(); } else { $target = intval($_GET['target']); $targetusergroup = $_G['cache']['usergroups'][$target]; if (empty($targetusergroup) || $targetusergroup['type'] == 'system' || $targetusergroup['type'] == 'special' && $targetusergroup['radminid']) { cpmsg('usergroups_copy_target_invalid', '', 'error'); } C::t('common_member')->update_groupid_by_groupid($source, $target); if (helper_dbtool::isexisttable('common_member_archive')) { C::t('common_member_archive')->update_groupid_by_groupid($source, $target);
} elseif ($operation == 'edit') { loadcache('diytemplatename'); $targettplname = $_G['gp_targettplname']; $diydata = DB::fetch_first('SELECT * FROM ' . DB::table('common_diy_data') . " WHERE targettplname='{$targettplname}'"); if (empty($diydata)) { cpmsg_error('diytemplate_targettplname_error', dreferer()); } if (!submitcheck('editsubmit')) { if (empty($diydata['name'])) { $diydata['name'] = $_G['cache']['diytemplatename'][$diydata['targettplname']]; } shownav('portal', 'diytemplate', $diydata['name']); showsubmenu(cplang('diytemplate_edit') . ' - ' . $diydata['name'], array(array('list', 'diytemplate', 0), array('edit', 'diytemplate&operation=edit&targettplname=' . $_GET['targettplname'], 1))); showformheader("diytemplate&operation=edit&targettplname={$targettplname}"); showtableheader(); showtitle('edit'); showsetting('diytemplate_name', 'name', $diydata['name'], 'text'); showsetting('diytemplate_targettplname', '', '', cplang('diytemplate_path') . './data/diy/' . $diydata['targettplname'] . '.htm'); showsetting('diytemplate_primaltplname', '', '', cplang('diytemplate_path') . $_G['style']['tpldir'] . '/' . $diydata['primaltplname'] . '.htm'); showsetting('diytemplate_username', '', '', $diydata['username']); showsetting('diytemplate_dateline', '', '', $diydata['dateline'] ? dgmdate($diydata['dateline']) : ''); showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { $editdiydata = array('name' => $_G['gp_name']); DB::update('common_diy_data', $editdiydata, array('targettplname' => $targettplname)); include_once libfile('function/cache'); updatecache('diytemplatename'); cpmsg('diytemplate_edit_succeed', 'action=diytemplate', 'succeed'); }
showsetting('seodescription', 'dzapp_haodai_seo[main][seodescription]', $dzapp_haodai_seo['main']['seodescription'], 'text', '', 0, $codes['main']); showtitle('dzapp_haodai_search'); showsetting('seotitle', 'dzapp_haodai_seo[search][seotitle]', $dzapp_haodai_seo['search']['seotitle'], 'text', '', 0, $codes['search']); showsetting('seokeywords', 'dzapp_haodai_seo[search][seokeywords]', $dzapp_haodai_seo['search']['seokeywords'], 'text', '', 0, $codes['search']); showsetting('seodescription', 'dzapp_haodai_seo[search][seodescription]', $dzapp_haodai_seo['search']['seodescription'], 'text', '', 0, $codes['search']); showtitle('dzapp_haodai_view'); showsetting('seotitle', 'dzapp_haodai_seo[view][seotitle]', $dzapp_haodai_seo['view']['seotitle'], 'text', '', 0, $codes['view']); showsetting('seokeywords', 'dzapp_haodai_seo[view][seokeywords]', $dzapp_haodai_seo['view']['seokeywords'], 'text', '', 0, $codes['view']); showsetting('seodescription', 'dzapp_haodai_seo[view][seodescription]', $dzapp_haodai_seo['view']['seodescription'], 'text', '', 0, $codes['view']); showtitle('dzapp_haodai_news'); showsetting('seotitle', 'dzapp_haodai_seo[news][seotitle]', $dzapp_haodai_seo['news']['seotitle'], 'text', '', 0, $codes['news']); showsetting('seokeywords', 'dzapp_haodai_seo[news][seokeywords]', $dzapp_haodai_seo['news']['seokeywords'], 'text', '', 0, $codes['news']); showsetting('seodescription', 'dzapp_haodai_seo[news][seodescription]', $dzapp_haodai_seo['news']['seodescription'], 'text', '', 0, $codes['news']); showtitle('dzapp_haodai_apply'); showsetting('seotitle', 'dzapp_haodai_seo[apply][seotitle]', $dzapp_haodai_seo['apply']['seotitle'], 'text', '', 0, $codes['apply']); showsetting('seokeywords', 'dzapp_haodai_seo[apply][seokeywords]', $dzapp_haodai_seo['apply']['seokeywords'], 'text', '', 0, $codes['apply']); showsetting('seodescription', 'dzapp_haodai_seo[apply][seodescription]', $dzapp_haodai_seo['apply']['seodescription'], 'text', '', 0, $codes['apply']); showtitle('dzapp_haodai_calc'); showsetting('seotitle', 'dzapp_haodai_seo[calc][seotitle]', $dzapp_haodai_seo['calc']['seotitle'], 'text', '', 0, $codes['calc']); showsetting('seokeywords', 'dzapp_haodai_seo[calc][seokeywords]', $dzapp_haodai_seo['calc']['seokeywords'], 'text', '', 0, $codes['calc']); showsetting('seodescription', 'dzapp_haodai_seo[calc][seodescription]', $dzapp_haodai_seo['calc']['seodescription'], 'text', '', 0, $codes['calc']); showsubmit('seosubmit'); showtablefooter(); showformfooter(); } else { $dzapp_haodai_seo = serialize($_GET['dzapp_haodai_seo']); DB::query("REPLACE INTO " . DB::table('common_setting') . " (skey, svalue) VALUES ('dzapp_haodai_seo', '{$dzapp_haodai_seo}')"); updatecache('setting'); cpmsg('seo_update_succeed', 'action=plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_seo', 'succeed'); } }
$i = 'class="a"'; } if (preg_match('/<u>(.*?)<\\/u>/i', $announce['subject'])) { $u = 'class="a"'; } $colorselect = preg_replace('/<font color=(.*?)>(.*?)<\\/font>/i', '$1', $announce['subject']); $colorselect = strip_tags($colorselect); $_G['forum_colorarray'] = array(1 => '#EE1B2E', 2 => '#EE5023', 3 => '#996600', 4 => '#3C9D40', 5 => '#2897C5', 6 => '#2B65B7', 7 => '#8F2A90', 8 => '#EC1282'); if (in_array($colorselect, $_G['forum_colorarray'])) { $colorcheck = "style=\"background: {$colorselect}\""; } shownav('extended', 'announce'); showsubmenu('announce', array(array('admin', 'announce', 0), array('add', 'announce&operation=add', 0))); showformheader("announce&operation=edit&announceid={$_GET['announceid']}"); showtableheader(); showtitle('announce_edit'); showsetting($lang['subject'], 'newsubject', $announce[subject], 'htmltext'); showsetting('start_time', 'starttimenew', $announce['starttime'], 'calendar', '', 0, '', 1); showsetting('end_time', 'endtimenew', $announce['endtime'], 'calendar', '', 0, '', 1); showsetting('announce_type', array('typenew', array(array(0, $lang['announce_words']), array(1, $lang['announce_url']))), $announce['type'], 'mradio'); showsetting('announce_message', 'messagenew', $announce['message'], 'textarea'); showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { if (strpos($_GET['starttimenew'], '-')) { $starttimenew = strtotime($_GET['starttimenew']); } else { $starttimenew = 0; } if (strpos($_GET['endtimenew'], '-')) {
showsetting($taskvar['name'], '', '', '<SELECT name="forumid"><option value="">' . lang('nolimit') . '</option>' . forumselect(FALSE, 0, $taskvars['complete']['forumid']['value']) . '</select>'); } elseif ($taskvar['variable'] == 'authorid') { $author = $taskvars['complete']['authorid']['value'] && ($author = $db->result_first("SELECT username FROM {$tablepre}members WHERE uid='{$taskvars[complete][authorid][value]}'")) ? $author : ''; showsetting($taskvar['name'], 'author', $author, 'text', '', 0, $taskvar['description']); } else { showsetting($taskvar['name'], !empty($task_condition_variable[$taskvar['variable']]) ? $task_condition_variable[$taskvar['variable']] : $taskvar['variable'], $taskvar['value'], $taskvar['type'], '', 0, $taskvar['description']); } } else { showsetting($taskvar['name'], $taskvar['variable'], $taskvar['value'], $taskvar['description']); } } } else { showtablerow('', 'class="td27" colspan="2"', lang('nolimit')); } if ($taskvars['setting']) { showtitle('tasks_add_settings'); foreach ($taskvars['setting'] as $taskvar) { if ($taskvar['variable']) { showsetting($taskvar['name'], $taskvar['variable'], $taskvar['value'], $taskvar['type'], '', 0, $taskvar['description']); } else { showsetting($taskvar['name'], $taskvar['variable'], $taskvar['value'], $taskvar['description']); } } } } showsubmit('editsubmit', 'submit'); showtablefooter(); showformfooter(); } else { $applyperm = $grouplimit == 'special' && is_array($applyperm) ? implode("\t", $applyperm) : $grouplimit; $starttime = dmktime($starttime);
$uctablepre = substr($prestr, strrpos($prestr, '.') + 1); } showtagheader('tbody', 'ucmysql', UC_CONNECT, 'sub'); showsetting('setting_uc_dbhost', 'settingnew[uc][dbhost]', UC_DBHOST, 'text', $disable); showsetting('setting_uc_dbuser', 'settingnew[uc][dbuser]', UC_DBUSER, 'text', $disable); showsetting('setting_uc_dbpass', 'settingnew[uc][dbpass]', '********', 'text', $disable); showsetting('setting_uc_dbname', 'settingnew[uc][dbname]', UC_DBNAME, 'text', $disable); showsetting('setting_uc_dbtablepre', 'settingnew[uc][dbtablepre]', $uctablepre, 'text', $disable); showtagfooter('tbody'); showsetting('setting_uc_activation', 'settingnew[ucactivation]', $setting['ucactivation'], 'radio', 0, 1); showsetting('setting_uc_fastactivation', 'settingnew[fastactivation]', $setting['fastactivation'], 'radio'); showtagfooter('tbody'); showsetting('setting_uc_avatarmethod', array('settingnew[avatarmethod]', array(array(0, $lang['setting_uc_avatarmethod_0']), array(1, $lang['setting_uc_avatarmethod_1']))), $setting['avatarmethod'], 'mradio'); } elseif ($operation == 'ec') { showtableheader(); showtitle('setting_ec_credittrade'); showsetting('setting_ec_ratio', 'settingnew[ec_ratio]', $setting['ec_ratio'], 'text'); showsetting('setting_ec_mincredits', 'settingnew[ec_mincredits]', $setting['ec_mincredits'], 'text'); showsetting('setting_ec_maxcredits', 'settingnew[ec_maxcredits]', $setting['ec_maxcredits'], 'text'); showsetting('setting_ec_maxcreditspermonth', 'settingnew[ec_maxcreditspermonth]', $setting['ec_maxcreditspermonth'], 'text'); } elseif ($operation == 'memory') { showtips('setting_memory_tips'); showtableheader('setting_memory_status', 'fixpadding'); showsubtitle(array('setting_memory_state_interface', 'setting_memory_state_extension', 'setting_memory_state_config', 'setting_memory_clear', '')); $do_clear_ok = $do == 'clear' ? cplang('setting_memory_do_clear') : ''; $do_clear_link = '<a href="' . ADMINSCRIPT . '?action=setting&operation=memory&do=clear">' . cplang('setting_memory_clear') . '</a>' . $do_clear_ok; $ea = array('eAccelerator', $discuz->mem->extension['eaccelerator'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'), $discuz->mem->config['eaccelerator'] ? cplang('open') : cplang('closed'), $discuz->mem->type == 'eaccelerator' ? $do_clear_link : '--'); $apc = array('APC', $discuz->mem->extension['apc'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'), $discuz->mem->config['apc'] ? cplang('open') : cplang('closed'), $discuz->mem->type == 'apc' ? $do_clear_link : '--'); $memcache = array('memcache', $discuz->mem->extension['memcache'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'), $discuz->mem->config['memcache']['server'] ? cplang('open') : cplang('closed'), $discuz->mem->type == 'memcache' ? $do_clear_link : '--'); $xcache = array('Xcache', $discuz->mem->extension['xcache'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'), $discuz->mem->config['xcache'] ? cplang('open') : cplang('closed'), $discuz->mem->type == 'xcache' ? $do_clear_link : '--'); showtablerow('', array('width="100"', 'width="120"', 'width="120"'), $memcache);
} updatecache('settings'); cpmsg('nav_add_succeed', $BASESCRIPT . '?action=misc&operation=customnav', 'succeed'); } } elseif ($do == 'edit' && $id) { $nav = $db->fetch_first("SELECT * FROM {$tablepre}navs WHERE id='{$id}'"); if (!$nav) { cpmsg('undefined_action', '', 'error'); } if (!submitcheck('editsubmit')) { $string = sprintf('%02d', $nav['highlight']); shownav('global', 'misc_customnav'); showsubmenu('settings_styles', array(array('nav_settings_global', 'settings&operation=styles&anchor=global', 0), array('nav_settings_customnav', 'misc&operation=customnav', 1), array('nav_settings_index', 'settings&operation=styles&anchor=index', 0), array('nav_settings_forumdisplay', 'settings&operation=styles&anchor=forumdisplay', 0), array('nav_settings_viewthread', 'settings&operation=styles&anchor=viewthread', 0), array('nav_settings_member', 'settings&operation=styles&anchor=member', 0), array('nav_settings_refresh', 'settings&operation=styles&anchor=refresh', 0))); showformheader("misc&operation=customnav&do=edit&id={$id}"); showtableheader(); showtitle('misc_customnav_detail'); showsetting('misc_customnav_name', 'namenew', $nav['name'], 'text'); showsetting('misc_customnav_title', 'titlenew', $nav['title'], 'text'); showsetting('misc_customnav_url', 'urlnew', $nav['url'], 'text', $nav['type'] == '0'); showsetting('misc_customnav_style', array('stylenew', array(lang('misc_customnav_style_underline'), lang('misc_customnav_style_italic'), lang('misc_customnav_style_bold'))), $string[0], 'binmcheckbox'); showsetting('misc_customnav_style_color', array('colornew', array(array(0, '<span style="color: ' . LINK . ';">Default</span>'), array(1, '<span style="color: Red;">Red</span>'), array(2, '<span style="color: Orange;">Orange</span>'), array(3, '<span style="color: Yellow;">Yellow</span>'), array(4, '<span style="color: Green;">Green</span>'), array(5, '<span style="color: Cyan;">Cyan</span>'), array(6, '<span style="color: Blue;">Blue</span>'), array(7, '<span style="color: Purple;">Purple</span>'), array(8, '<span style="color: Gray;">Gray</span>'))), $string[1], 'mradio'); showsetting('misc_customnav_url_open', array('targetnew', array(array(0, lang('misc_customnav_url_open_default')), array(1, lang('misc_customnav_url_open_blank'))), TRUE), $nav['target'], 'mradio'); showsetting('plugins_edit_modules_adminid', array('levelnew', array(array(0, lang('nolimit')), array(1, lang('member')), array(2, lang('usergroups_system_3')), array(3, lang('usergroups_system_1')))), $nav['level'], 'select'); showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { $namenew = dhtmlspecialchars(trim($namenew)); $titlenew = dhtmlspecialchars(trim($titlenew)); $urlnew = dhtmlspecialchars(trim($urlnew)); $stylebin = '';
$optselect = '<select name="options[]" size="10" multiple="multiple">'; $fieldarray = array_merge($fields['forums'], $fields['forumfields']); $listfields = array_diff($fieldarray, array_merge($delfields['forums'], $delfields['forumfields'])); foreach ($listfields as $field) { if (isset($lang['project_option_forum_' . $field])) { $optselect .= '<option value="' . $field . '">' . $lang['project_option_forum_' . $field] . '</option>'; } } $optselect .= '</select>'; shownav('forum', 'forums_copy'); showsubmenu('forums_copy'); showtips('forums_copy_tips'); showformheader('forums&operation=copy'); showhiddenfields(array('source' => $source)); showtableheader(); showtitle('forums_copy'); showsetting(cplang('forums_copy_source') . ':', '', '', $sourceforum['name']); showsetting('forums_copy_target', '', '', $forumselect); showsetting('forums_copy_options', '', '', $optselect); showsubmit('copysubmit'); showtablefooter(); showformfooter(); } else { $fids = array(); if (is_array($_GET['target']) && count($_GET['target'])) { foreach ($_GET['target'] as $fid) { if (($fid = intval($fid)) && $fid != $source) { $fids[] = $fid; } } }
$nav = C::t('common_nav')->fetch_by_id_navtype($id, 4); if(!$nav) { cpmsg('nav_not_found', '', 'error'); } if(!submitcheck('editsubmit')) { $string = sprintf('%02d', $nav['highlight']); shownav('global', 'misc_customnav'); showsubmenu('nav_setting_customnav', $navdata); showformheader("nav&operation=topnav&do=edit&id=$id"); showtableheader(); showtitle(cplang('nav_nav_topnav').' - '.$nav['name']); showsetting('misc_customnav_name', 'namenew', $nav['name'], 'text'); showsetting('setting_styles_global_topnavtype', array('subtypenew', array( array(0, cplang('setting_styles_global_topnavtype_0')), array(1, cplang('setting_styles_global_topnavtype_1')), )), $nav['subtype'], 'select'); showsetting('misc_customnav_title', 'titlenew', $nav['title'], 'text'); showsetting('misc_customnav_url', 'urlnew', $nav['url'], 'text', $nav['type'] == '0'); showsetting('misc_customnav_style', array('stylenew', array(cplang('misc_customnav_style_underline'), cplang('misc_customnav_style_italic'), cplang('misc_customnav_style_bold'))), $string[0], 'binmcheckbox'); showsetting('misc_customnav_style_color', array('colornew', array( array(0, '<span style="color: '.LINK.';">Default</span>'), array(1, '<span style="color: Red;">Red</span>'), array(2, '<span style="color: Orange;">Orange</span>'), array(3, '<span style="color: Yellow;">Yellow</span>'), array(4, '<span style="color: Green;">Green</span>'), array(5, '<span style="color: Cyan;">Cyan</span>'),
$exportziplog[] = array('type' => 'zip', 'filename' => $entry, 'size' => filesize($entry), 'dateline' => filemtime($entry)); } } } $dir->close(); } else { cpmsg('database_export_dest_invalid', '', 'error'); } $restore_url = $_G['siteurl'] . 'data/restore.php'; shownav('founder', 'nav_db', 'nav_db_import'); showsubmenu('nav_db', array(array('nav_db_export', 'db&operation=export', 0), array('nav_db_import', 'db&operation=import', 1), array('nav_db_runquery', 'db&operation=runquery', 0), array('nav_db_optimize', 'db&operation=optimize', 0), array('nav_db_dbcheck', 'db&operation=dbcheck', 0))); showtips('db_import_tips'); showtableheader('db_import'); showtablerow('', array('colspan="9" class="tipsblock"'), array(cplang('do_import_option', array('restore_url' => $restore_url)))); showformheader('db&operation=import'); showtitle('db_export_file'); showsubtitle(array('', 'filename', 'version', 'time', 'type', 'size', 'db_method', 'db_volume', '')); $datasiteurl = $_G['siteurl'] . 'data/'; foreach ($exportlog as $key => $val) { $info = $val[1]; $info['dateline'] = is_int($info['dateline']) ? dgmdate($info['dateline']) : $lang['unknown']; $info['size'] = sizecount($exportsize[$key]); $info['volume'] = count($val); $info['method'] = $info['type'] != 'zip' ? $info['method'] == 'multivol' ? $lang['db_multivol'] : $lang['db_shell'] : ''; $datafile_server = '.' . $info['filename']; showtablerow('', '', array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"" . $key . "\">", "<a href=\"javascript:;\" onclick=\"display('exportlog_{$key}')\">" . $key . "</a>", $info['version'], $info['dateline'], $lang['db_export_' . $info['type']], $info['size'], $info['method'], $info['volume'], $info['type'] == 'zip' ? "<a href=\"" . $datasiteurl . "restore.php?operation=importzip&datafile_server={$datafile_server}&importsubmit=yes\" onclick=\"return confirm('{$lang['db_import_confirm_zip']}');\" class=\"act\" target=\"_blank\">{$lang['db_import_unzip']}</a>" : "<a class=\"act\" href=\"" . $datasiteurl . "restore.php?operation=import&from=server&datafile_server={$datafile_server}&importsubmit=yes\"" . ($info['version'] != $_G['setting']['version'] ? " onclick=\"return confirm('{$lang['db_import_confirm']}');\"" : " onclick=\"return confirm('{$lang['db_import_confirm_sql']}');\"") . " class=\"act\" target=\"_blank\">{$lang['import']}</a>")); echo '<tbody id="exportlog_' . $key . '" style="display:none">'; foreach ($val as $info) { $info['dateline'] = is_int($info['dateline']) ? dgmdate($info['dateline']) : $lang['unknown']; $info['size'] = sizecount($info['size']); showtablerow('', '', array('', "<a href=\"{$info['filename']}\">" . substr(strrchr($info['filename'], "/"), 1) . "</a>", $info['version'], $info['dateline'], '', $info['size'], '', $info['volume'], ''));
showsetting('members_edit_email_emailstatus', 'emailstatusnew', $member['emailstatus'], 'radio'); showsetting('members_edit_posts', 'postsnew', $member['posts'], 'text'); showsetting('members_edit_digestposts', 'digestpostsnew', $member['digestposts'], 'text'); showsetting('members_edit_regip', 'regipnew', $member['regip'], 'text'); showsetting('members_edit_regdate', 'regdatenew', $member['regdate'], 'text'); showsetting('members_edit_lastvisit', 'lastvisitnew', $member['lastvisit'], 'text'); showsetting('members_edit_lastip', 'lastipnew', $member['lastip'], 'text'); showsetting('members_edit_addsize', 'addsizenew', $member['addsize'], 'text'); showsetting('members_edit_addfriend', 'addfriendnew', $member['addfriend'], 'text'); showsetting('members_edit_timeoffset', 'timeoffsetnew', $member['timeoffset'], 'text'); showsetting('members_edit_invisible', 'invisiblenew', $member['invisible'], 'radio'); showtitle('members_edit_option'); showsetting('members_edit_cstatus', 'cstatusnew', $member['customstatus'], 'text'); showsetting('members_edit_signature', 'signaturenew', $member['signature'], 'textarea'); if ($fields) { showtitle('members_profile'); include_once libfile('function/profile'); foreach ($fields as $fieldid => $fieldtitle) { $html = profile_setting($fieldid, $member); if ($html) { showsetting($fieldtitle, '', '', $html); } } } showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { loaducenter(); require_once libfile('function/discuzcode'); $questionid = $_GET['clearquestion'] ? 0 : '';
function show() { $id = @$_REQUEST['bid']; $see = @$_REQUEST['tid']; $page = @$_REQUEST['p']; if (!$page) { $page = 1; } $page = intval($page); $results = request(array("bid" => $id, "tid" => $see, "p" => $page)); $pages = request(array("ask" => "getpages", "bid" => $id, "tid" => $see)); $pages = intval($pages[0]['pages']); echo '<capu>' . "\n"; $count = count($results); if ($count == 0) { echo '<info><code>1</code><msg>帖子不存在。</msg></info></capu>'; exit; } if (intval($id) == 1 && @$_REQUEST['token'] == "") { echo '<info><code>11</code><msg>您需要登录后才能查看此版面内容。</msg></info></capu>'; exit; } $title = $results[0]['title']; for ($i = 0; $i < $count; $i++) { $floor = $results[$i]; echo '<info>' . "\n"; if ($see == "") { showtitle($floor, $id, $page, $pages); } else { showtext($floor, $id, $see, $page, $pages, $title); $temp = request(array("bid" => $id, "tid" => $see, "ask" => "tidinfo")); echo '<click>' . $temp[0]['click'] . '</click>'; echo '<reply>' . $temp[0]['reply'] . '</reply>'; } echo '</info>' . "\n"; } echo '</capu>' . "\n"; exit; }
$a .= '<li><input type="radio" name="' . $radioname . '" value="' . $radio[1] . '" class="radio" onclick="$(\'' . $textname . '\').value = this.value"' . ($radio[2] ? ' checked="checked"' : '') . ' /> ' . $radio[0] . '</li>'; } } $a .= '</ul>'; return $a; } shownav('tools', 'nav_creditwizard'); showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0))); showtips('creditwizard_tips_creditsuse'); showformheader('creditwizard&step=3'); showtableheader('creditwizard_step_menu_3'); showsetting('settings_credits_trans', '', '', '<select onchange="$(\'allowcreditstrans\').style.display = this.value != 0 ? \'\' : \'none\'" name="creditstransnew">' . $creditstransselect . '</select>'); showsetting('settings_credits_tax', '', '', showtextradio('creditstaxnew', $creditstax, 'creditstaxradio', array(array($lang['low'] . ' (0.01)', '0.01', $creditstax == '0.01'), array($lang['middle'] . ' (0.1)', '0.1', $creditstax == '0.1'), array($lang['high'] . ' (0.5)', '0.5', $creditstax == '0.5')))); showsetting('settings_credits_minexchange', '', '', showtextradio('exchangemincreditsnew', $exchangemincredits, 'exchangemincreditsradio', array(array($lang['low'] . ' (100)', 100, $exchangemincredits == 100), array($lang['middle'] . ' (1000)', 1000, $exchangemincredits == 1000), array($lang['high'] . ' (5000)', 5000, $exchangemincredits == 5000)))); showtagheader('tbody', 'allowcreditstrans', $creditstrans); showtitle('creditwizard_allowcreditstrans'); showsetting('settings_credits_mintransfer', '', '', showtextradio('transfermincreditsnew', $transfermincredits, 'transfermincreditsradio', array(array($lang['low'] . ' (100)', 100, $transfermincredits == 100), array($lang['middle'] . ' (1000)', 1000, $transfermincredits == 1000), array($lang['high'] . ' (5000)', 5000, $transfermincredits == 5000)))); showsetting('settings_credits_maxincperthread', '', '', showtextradio('maxincperthreadnew', $maxincperthread, 'maxincperthreadradio', array(array($lang['nolimit'] . ' (0)', 0, $maxincperthread == 0), array($lang['low'] . ' (10)', 10, $maxincperthread == 10), array($lang['middle'] . ' (50)', 50, $maxincperthread == 50), array($lang['high'] . ' (100)', 100, $maxincperthread == 100)))); showsetting('settings_credits_maxchargespan', '', '', showtextradio('maxchargespannew', $maxchargespan, 'maxchargespanradio', array(array($lang['nolimit'] . ' (0)', 0, $maxchargespan == 0), array($lang['low'] . ' (5)', 5, $maxchargespan == 5), array($lang['middle'] . ' (24)', 24, $maxchargespan == 24), array($lang['high'] . ' (48)', 48, $maxchargespan == 48)))); showtagfooter('tbody'); showsubmit('settingsubmit'); showtablefooter(); showformfooter(); } else { if ($creditstaxnew < 0 || $creditstaxnew >= 1) { $creditstaxnew = 0; } $creditstrans = explode(',', $creditstrans); $creditstrans[0] = (double) $creditstransnew; $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('creditstrans', '" . implode(',', $creditstrans) . "')"); $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('creditstax', '" . (double) $creditstaxnew . "')");
if (!$item) { continue; } $checked = @in_array($item[1], $perms); $customchecked = @in_array($item[1], $member['customperm']); $extra = $checked ? ($customchecked ? '' : 'checked="checked" ') . ' onclick="checkclk(this)"' : 'disabled="disabled" '; if (!$checked || $customchecked) { $checkedall = false; } $row .= '<div class="item' . ($checked && !$customchecked ? ' checked' : '') . '"><label class="txt"><input name="permnew[]" value="' . $item[1] . '" class="checkbox" type="checkbox" ' . $extra . '/>' . cplang($item[0]) . '</label></div>'; } $row .= '</td></tr>'; if ($topkey != 'setting') { showtitle('<input class="checkbox" type="checkbox" onclick="permcheckall(this, \'perms_' . $topkey . '\')" ' . ($checkedall ? 'checked="checked" ' : '') . '/> ' . cplang('header_' . $topkey) . '</label>'); } else { showtitle('founder_perm_setting'); } echo $row; } showsubmit('submit'); showtablefooter(); showformfooter(); } else { $gp_permnew = !empty($_G['gp_permnew']) ? $_G['gp_permnew'] : array(); $cpgroupidnew = $_G['gp_cpgroupidnew']; $query = DB::query("SELECT * FROM " . DB::table('common_admincp_perm') . " WHERE cpgroupid='{$cpgroupidnew}'"); $perms = array(); while ($perm = DB::fetch($query)) { $perms[] = $perm['perm']; } $customperm = addslashes(serialize(array_diff($perms, $gp_permnew)));
$grouplevelicon = $_G['setting']['attachurl'] . 'common/' . $grouplevel['icon'] . '?' . random(6); } $groupleveliconhtml = '<label><input type="checkbox" class="checkbox" name="deleteicon[{$grouplevel[levelid]}]" value="yes" /> ' . $lang['delete'] . '</label><br /><img src="' . $grouplevelicon . '" />'; } showsetting('group_level_icon', 'iconnew', $grouplevel['icon'], 'filetext', '', 0, $groupleveliconhtml); showtitle('group_level_credits'); $varname = array('levelnew[creditspolicy]', array(), 'isfloat'); $varname[1] = array(array('post', cplang('group_level_credits_post'), '1'), array('reply', cplang('group_level_credits_reply'), '1'), array('digest', cplang('group_level_credits_digest'), '1'), array('postattach', cplang('group_level_credits_upload'), '1'), array('getattach', cplang('group_level_credits_download'), '1'), array('tradefinished', cplang('group_level_credits_trade'), '1'), array('joinpoll', cplang('group_level_credits_poll'), '1')); showsetting('', $varname, $group_creditspolicy, 'omcheckbox'); showtitle('group_level_posts'); $varname = array('levelnew[postpolicy]', array(), 'isfloat'); $varname[1] = array(array('alloweditpost', cplang('forums_edit_posts_alloweditpost'), '1'), array('recyclebin', cplang('forums_edit_posts_recyclebin'), '1'), array('allowsmilies', cplang('forums_edit_posts_smilies'), '1'), array('allowhtml', cplang('forums_edit_posts_html'), '1'), array('allowbbcode', cplang('forums_edit_posts_bbcode'), '1'), array('allowanonymous', cplang('forums_edit_posts_anonymous'), '1'), array('jammer', cplang('forums_edit_posts_jammer'), '1'), array('allowimgcode', cplang('forums_edit_posts_imgcode'), '1'), array('allowmediacode', cplang('forums_edit_posts_mediacode'), '1')); showsetting('', $varname, $group_postpolicy, 'omcheckbox'); showsetting('forums_edit_posts_allowpostspecial', array('levelnew[postpolicy][allowpostspecial]', array(cplang('thread_poll'), cplang('thread_trade'), cplang('thread_reward'), cplang('thread_activity'), cplang('thread_debate'))), $group_postpolicy['allowpostspecial'], 'binmcheckbox'); showsetting('forums_edit_posts_attach_ext', 'levelnew[postpolicy][attachextensions]', $group_postpolicy['attachextensions'], 'text'); showtitle('group_level_special'); showsetting('group_level_special_allowchangename', 'specialswitchnew[allowchangename]', $specialswitch['allowchangename'], 'radio'); showsetting('group_level_special_allowchangetype', 'specialswitchnew[allowchangetype]', $specialswitch['allowchangetype'], 'radio'); showsetting('group_level_special_allowclose', 'specialswitchnew[allowclosegroup]', $specialswitch['allowclosegroup'], 'radio'); showsetting('group_level_special_allowthreadtype', 'specialswitchnew[allowthreadtype]', $specialswitch['allowthreadtype'], 'radio'); showsetting('group_level_special_membermax', 'specialswitchnew[membermaximum]', $specialswitch['membermaximum'], 'text'); showsubmit('editgrouplevel'); showtablefooter(); showformfooter(); } else { $dataarr = array(); $levelnew = $_GET['levelnew']; $dataarr['leveltitle'] = $levelnew['leveltitle']; $default_creditspolicy = array('post' => 0, 'reply' => 0, 'digest' => 0, 'postattach' => 0, 'getattach' => 0, 'tradefinished' => 0, 'joinpoll' => 0); $levelnew['creditspolicy'] = empty($levelnew['creditspolicy']) ? $default_creditspolicy : array_merge($default_creditspolicy, $levelnew['creditspolicy']); $dataarr['creditspolicy'] = serialize($levelnew['creditspolicy']);
showtagheader('tbody', "style_radio", $option['type'] == 'radio'); showtitle('threadtype_edit_vars_type_radio'); showsetting('threadtype_edit_choices', 'rules[radio][choices]', $option['rules']['choices'], 'textarea'); showtagfooter('tbody'); showtagheader('tbody', "style_checkbox", $option['type'] == 'checkbox'); showtitle('threadtype_edit_vars_type_checkbox'); showsetting('threadtype_edit_choices', 'rules[checkbox][choices]', $option['rules']['choices'], 'textarea'); showtagfooter('tbody'); showtagheader('tbody', "style_image", $option['type'] == 'image'); showtitle('threadtype_edit_vars_type_image'); showsetting('threadtype_edit_images_weight', 'rules[image][maxwidth]', $option['rules']['maxwidth'], 'text'); showsetting('threadtype_edit_images_height', 'rules[image][maxheight]', $option['rules']['maxheight'], 'text'); showsetting('threadtype_edit_inputsize', 'rules[image][inputsize]', $option['rules']['inputsize'], 'text'); showtagfooter('tbody'); showtagheader('tbody', "style_range", $option['type'] == 'range'); showtitle('threadtype_edit_vars_type_range'); showsetting('threadtype_edit_maxnum', 'rules[range][maxnum]', $option['rules']['maxnum'], 'text'); showsetting('threadtype_edit_minnum', 'rules[range][minnum]', $option['rules']['minnum'], 'text'); showsetting('threadtype_edit_inputsize', 'rules[range][inputsize]', $option['rules']['inputsize'], 'text'); showsetting('threadtype_edit_searchtxt', 'rules[range][searchtxt]', $option['rules']['searchtxt'], 'text'); showtagfooter('tbody'); showsubmit('editsubmit'); showtablefooter(); showformfooter(); } else { $titlenew = trim($_G['gp_titlenew']); $_G['gp_identifiernew'] = trim($_G['gp_identifiernew']); if (!$titlenew || !$_G['gp_identifiernew']) { cpmsg('threadtype_infotypes_option_invalid', '', 'error'); } if (in_array(strtoupper($_G['gp_identifiernew']), $mysql_keywords)) {
showsetting('adv_edit_style_text_size', 'advnew[text][size]', $adv['parameters']['size'], 'text'); showtagfooter('tbody'); showtagheader('tbody', 'style_image', $adv['parameters']['style'] == 'image'); showtitle('adv_edit_style_image'); showsetting('adv_edit_style_image_url', 'advnewimage', $adv['parameters']['url'], 'filetext'); showsetting('adv_edit_style_image_link', 'advnew[image][link]', $adv['parameters']['link'], 'text'); showsetting('adv_edit_style_image_alt', 'advnew[image][alt]', $adv['parameters']['alt'], 'text'); if ($imagesizes) { $v = $adv['parameters']['width'] . 'x' . $adv['parameters']['height']; showsetting('adv_edit_style_image_size', '', '', '<select onchange="setsize(this.value, \'image\')"><option value="x">' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>'); } showsetting('adv_edit_style_image_width', 'advnew[image][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="imagewidth" onchange="setpreview(\'image\')"'); showsetting('adv_edit_style_image_height', 'advnew[image][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="imageheight" onchange="setpreview(\'image\')"'); showtagfooter('tbody'); showtagheader('tbody', 'style_flash', $adv['parameters']['style'] == 'flash'); showtitle('adv_edit_style_flash'); showsetting('adv_edit_style_flash_url', 'advnewflash', $adv['parameters']['url'], 'filetext'); if ($imagesizes) { $v = $adv['parameters']['flash'] . 'x' . $adv['parameters']['flash']; showsetting('adv_edit_style_flash_size', '', '', '<select onchange="setsize(this.value, \'flash\')"><option>' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>'); } showsetting('adv_edit_style_flash_width', 'advnew[flash][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="flashwidth" onchange="setpreview(\'flash\')"'); showsetting('adv_edit_style_flash_height', 'advnew[flash][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="flashheight" onchange="setpreview(\'flash\')"'); showtagfooter('tbody'); echo '<tr><td colspan="2">'; if ($operation == 'edit') { echo '<input id="previewbtn" type="button" class="btn" onclick="$(\'advpreview\').style.display=\'\';this.form.preview.value=1;this.form.target=\'preview\';this.form.submit();" name="jspreview" value="' . $lang['preview'] . '"> '; } echo '<input type="submit" class="btn" name="advsubmit" onclick="this.form.preview.value=0;this.form.target=\'\'" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="0"></td></tr>'; showtablefooter(); showtableheader();
<?php if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied'); } shownav('pdnovel', 'power'); if (!submitcheck('powersubmit')) { showsubmenu('power'); showformheader('pdnovel&operation=power'); showtableheader(); $query = DB::query('SELECT groupid, grouptitle FROM ' . DB::table('common_usergroup') . ' ORDER BY groupid'); while ($ugroup = DB::fetch($query)) { $ugrouparr[] = array($ugroup['groupid'], $ugroup['grouptitle'], '1'); } $query = DB::query('SELECT * FROM ' . DB::table('pdmodule_power') . ' WHERE moduleid = 11'); while ($power = DB::fetch($query)) { $power['power'] = $power['power'] ? unserialize($power['power']) : array(); $powerarr = array('power[' . $power['action'] . ']', $ugrouparr, 'isfloat'); showtitle($power['name']); showsetting('', $powerarr, $power['power'], 'omcheckbox'); } showtablefooter(); showsubmit('powersubmit'); showformfooter(); } else { $query = DB::query('SELECT * FROM ' . DB::table('pdmodule_power') . ' WHERE moduleid = 11'); while ($power = DB::fetch($query)) { DB::update('pdmodule_power', array('power' => serialize($_G['gp_power'][$power['action']])), "action='" . $power['action'] . "'"); } cpmsg('threadtype_infotypes_option_succeed', 'action=pdnovel&operation=power', 'succeed'); }