Example #1
0
 function admincp_show($setting)
 {
     global $_G;
     $creditset = $setting['MarketCredit'];
     showtableheader('积分价格', 'notop', 'id="creditbody"');
     include template('dsu_medalCenter:admin_extcredit');
     showtablefooter();
 }
Example #2
0
function showlistphoto($mname, $mlist, $multipage)
{
    //數據列表顯示
    showformheader('batchmod&m=' . $mname);
    showtableheader($mname . '_listresult', 'notop');
    showsubtitle(array());
    showtablefooter();
    echo '<div id="photo_list">';
    echo $mlist;
    echo '<div style="clear:both;"><table><tr><td style="width:30px;vertical-align:middle;height:25px;"><input style="float:left;" type="checkbox" name="chkall" onclick="checkall(this.form, \'item\')" checked/></td><td style="width:30px;vertical-align:middle;height:30px;">' . lang('selectall') . '</td><td id="pagetd" style="width:500px;vertical-align:middle;">' . $multipage . '</td></tr></table></div>';
    echo '<style>
				#pagetd .pages{margin-top:10px;}
			</style>
		</div>';
}
Example #3
0
if (!defined('IN_ADMINCP')) {
    exit('Access Denied');
}
include_once DISCUZ_ROOT . './source/plugin/dsu_updater/core.func.php';
showtableheader($du_lang['installed_plugin']);
showsubtitle(array($du_lang['plugin_name'], $du_lang['ver_installed'], $du_lang['ver_new'], $du_lang['action']));
$query = DB::query('SELECT name,identifier,version FROM ' . DB::table('common_plugin') . " WHERE identifier LIKE 'dsu_%'");
while ($result = DB::fetch($query)) {
    $output = array();
    $output[] = $result['name'];
    $output[] = $result['version'];
    $plugin[$result['identifier']] = $result['name'];
    $output[] = $_G['dsu_updater']['plugin'][$result['identifier']];
    if ($result['version'] == $_G['dsu_updater']['plugin'][$result['identifier']] || $_G['dsu_updater']['plugin'][$result['identifier']] == '') {
        $output[] = '';
    } else {
        $output[] = '<a href="admin.php?action=plugins&operation=config&identifier=dsu_updater&pmod=main&plugin=' . $result['identifier'] . '&formhash=' . FORMHASH . "\">{$du_lang[update_do]}</a>";
    }
    showtablerow('', '', $output);
}
showtablefooter();
if (submitcheck('plugin', 1)) {
    showtableheader($du_lang['update_status'] . $plugin[$_G['gp_plugin']]);
    echo '<tr><td class="tipsblock"><ul id="update_status"><li>&#27491;&#22312;&#35831;&#27714; Callback &#31995;&#32479;, &#35831;&#31245;&#20505;...</li></ul></td></tr>';
    showtablefooter();
    @(include_once DISCUZ_ROOT . './source/discuz_version.php');
    echo '<script onerror="document.getElementById(\'update_status\').innerHTML+=\'<li><font color=red>&#21457;&#36865; CallBack &#25968;&#25454;&#22833;&#36133;.</font></li>\'" src="http://update.dsu.cc/plugin.php?id=' . $_G['gp_plugin'] . '&site_id=' . $_G['dsu_updater']['site_id'] . '&keyhash=' . md5($_G['dsu_updater']['key']) . '&dv=' . DISCUZ_VERSION . '"></script>';
}
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
callback('plugin', 0, '&dv=' . DISCUZ_VERSION);
            $multi = multi($postlistcount, $lpp, $page, ADMINSCRIPT . "?action=recyclebinpost");
            $multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=recyclebinpost&amp;page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi);
            $multi = str_replace("window.location='" . ADMINSCRIPT . "?action=recyclebinpost&amp;page='+this.value", "page(this.value)", $multi);
        }
        showsubmit('rbsubmit', 'submit', '', '<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'delete\')">' . cplang('recyclebin_all_delete') . '</a> &nbsp;<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'undelete\')">' . cplang('recyclebin_all_undelete') . '</a> &nbsp;<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'ignore\')">' . cplang('recyclebin_all_ignore') . '</a> &nbsp;', $multi);
        showtablefooter();
        showformfooter();
        echo '<iframe name="rbframe" style="display:none"></iframe>';
        showtagfooter('div');
    }
} elseif ($operation == 'clean') {
    if (!submitcheck('cleanrbsubmit', 1)) {
        shownav('topic', 'nav_recyclebinpost');
        showsubmenu('nav_recyclebinpost', array(array('recyclebinpost_list', 'recyclebinpost', 0), array('search', 'recyclebinpost&operation=search', 0), array('clean', 'recyclebinpost&operation=clean', 1)));
        showformheader('recyclebinpost&operation=clean');
        showtableheader('recyclebinpost_clean');
        showsetting('recyclebinpost_clean_days', 'days', '30', 'text');
        showsubmit('cleanrbsubmit');
        showtablefooter();
        showformfooter();
    } else {
        $deletetids = array();
        $pernum = 200;
        $postsdel = intval($_GET['postsdel']);
        $days = intval($_GET['days']);
        $timestamp = TIMESTAMP - max(0, $days * 86400);
        $postlist = array();
        loadcache('posttableids');
        $posttables = !empty($_G['cache']['posttableids']) ? $_G['cache']['posttableids'] : array(0);
        foreach ($posttables as $ptid) {
            foreach (C::t('forum_post')->fetch_all_pid_by_invisible_dateline($ptid, -5, $timestamp, 0, $pernum) as $post) {
\t\t\t\t</div>
\t\t\t</form>
\t\t\t<script type="text/javascript">
\t\t\tfunction addjscall() {
\t\t\t\tvar blockclass = \$('blockclass').value;
\t\t\t\tif(blockclass) {
\t\t\t\t\tshowWindow('blockclass', 'portal.php?mod=portalcp&ac=block&op=block&blocktype=1&from=cp&classname=' + blockclass);
\t\t\t\t} else {
\t\t\t\t\talert('{$searchlang['block_choose_blockclass_to_add_jscall']}');
\t\t\t\t}
\t\t\t}
\t\t\t</script>
SEARCH;
        $start = ($page - 1) * $perpage;
        showformheader('block&operation=' . $operation);
        showtableheader('block_list');
        $list = $diypage = array();
        include_once libfile('function/block');
        if ($operation == 'jscall') {
            showsubtitle(array('', 'block_name', 'block_script', 'block_style', 'block_dateline', 'block_page', 'operation'));
            $multipage = '';
            $count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON tb.bid=b.bid WHERE {$wheresql}"), 0);
            if ($count) {
                $query = DB::query("SELECT b.*, tb.targettplname FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON b.bid=tb.bid WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
                while ($value = DB::fetch($query)) {
                    if ($value['targettplname']) {
                        $diyurl = block_getdiyurl($value['targettplname']);
                        $diyurl = $diyurl['url'];
                        $tplname = isset($_G['cache']['diytemplatename'][$value['targettplname']]) ? $_G['cache']['diytemplatename'][$value['targettplname']] : $value['targettplname'];
                        $diypage[$value['bid']][$value['targettplname']] = $diyurl ? '<a href="' . $diyurl . '" target="_blank">' . $tplname . '</a>' : $tplname;
                    }
Example #6
0
        }
        showsubmit('submit');
        showtablefooter();
        showformfooter();
        return;
    }
    $type = intval($_G['sr_type']);
    !in_array($type, array(1, 2)) && ($type = 1);
    $result = DB::fetch_first("SELECT * FROM " . DB::table('sanree_brand_slide') . ' where id=' . $type);
    showsubmenu($menustr);
    showtableheader('', 'nobottom');
    $typeclass = array(1, 2);
    showtablerow('', array(), array(shownavmenu($type, $typeclass, $langs)));
    showtablefooter();
    showformheader($thisurl . '&type=' . $type, 'enctype');
    showtableheader($langs['slide'], 'nobottom');
    for ($j = 1; $j < 6; $j++) {
        $grouplogohtml = '';
        $pic = '';
        if ($result['pic' . $j]) {
            $pic = $result['pic' . $j];
            $grouplogohtml = '<label>' . $langs['slideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />';
        }
        showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml);
        showsetting($langs['slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text');
    }
    showsubmit('submit');
    showtablefooter();
    showformfooter();
}
function shownavmenu($type, $typeclass, $langs)
Example #7
0
        $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)) {
        $parameters = unserialize($ad['parameters']);
        $ads['custom_' . $parameters['extra']['customid']]++;
    }
Example #8
0
function searchgroups($submit)
{
    global $_G;
    require_once libfile('function/group');
    empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array());
    $groupselect = get_groupselect(0, $_GET['selectgroupid'], 0);
    $monthselect = $dayselect = $birthmonth = $birthday = '';
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showtagheader('div', 'searchgroups', !$submit);
    echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
    showformheader("group&operation=manage");
    showtableheader();
    showsetting('groups_manage_name', 'srchname', $srchname, 'text');
    showsetting('groups_manage_id', 'srchfid', $srchfid, 'text');
    showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
    showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range');
    showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range');
    showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
    showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange');
    showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange');
    showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text');
    showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text');
    showtagfooter('tbody');
    showsubmit('submit');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
Example #9
0
        echo <<<EOT
<script type="text/JavaScript">
var rowtypedata = [
\t[
\t\t[1,''],
\t\t[1,'<input type="text" class="text" name="newdisplayorder[]" size="3" value="">'],
\t\t[1,'<input type="text" class="text" name="newtitle[]" value="">'],
\t\t[1,'<input type="text" class="text" name="newurl[]">'],
\t\t[1,'<input type="checkbox" class="checkbox" name="newtarget[]" value="1">'],
\t\t[1,'<input type="checkbox" class="checkbox" name="newavailable[]" value="1" checked="checked">']
\t]
];
</script>
EOT;
        showformheader('template&operation=nav&type=' . $type);
        showtableheader('template_nav', 'fixpadding');
        showsubtitle(array('', 'displayorder', 'template_nav_title', 'template_nav_url', 'target', 'available'));
        $query = DB::query("SELECT * FROM " . DB::table('common_nav') . " WHERE type='{$type}' ORDER BY displayorder");
        while ($nav = DB::fetch($query)) {
            $availablechecked = $nav['available'] ? 'checked="checked"' : '';
            $targetchecked = $nav['target'] ? 'checked="checked"' : '';
            showtablerow('', array('', '', '', '', ''), array("<input type=\"checkbox\" class=\"checkbox\" name=\"delete[]\" value=\"{$nav['id']}\">", "<input type=\"text\" class=\"text\" name=\"displayorder[{$nav['id']}]\" size=\"3\" value=\"{$nav['displayorder']}\">", "<input type=\"text\" class=\"text\" name=\"title[{$nav['id']}]\" value=\"{$nav['title']}\">", "<input type=\"text\" class=\"text\" name=\"url[{$nav['id']}]\" value=\"{$nav['url']}\">", "<input type=\"checkbox\" class=\"checkbox\" name=\"target[{$nav['id']}]\" value=\"1\" {$targetchecked}>", "<input type=\"checkbox\" class=\"checkbox\" name=\"available[{$nav['id']}]\" value=\"1\" {$availablechecked}>"));
        }
        echo '<tr><td colspan="5"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['template_nav_add'] . '</a></div></td>';
        showsubmit('navsubmit', 'submit', 'del');
        showtablefooter();
        showformfooter();
    } else {
        if (is_array($_G['gp_newtitle'])) {
            $_G['gp_newurl'] = is_array($_G['gp_newurl']) ? $_G['gp_newurl'] : array();
            foreach ($_G['gp_newtitle'] as $id => $title) {
         echo '<ul class="tpllist2">';
         foreach ($runwizardhistory['step3']['cates'] as $id => $catename) {
             echo '<li><h5>' . $catename . '</h5><ul class="tpllist3">';
             foreach ($runwizardhistory['step3']['forums'][$id] as $forumname) {
                 echo '<li>' . $forumname . '</li>';
             }
             echo '</ul></li>';
         }
         echo '</ul>';
     } else {
         echo $lang['none'];
     }
     echo '</li></ul></td></tr>';
     showtablefooter();
     showformheader('runwizard&step=4&confirm=yes');
     showtableheader('', 'notop');
     showsubmit('step4submit', 'submit', '<input type="button" class="btn" " value="' . $lang['laststep'] . '" onclick="history.back();">');
     showtablefooter();
     showformfooter();
 } else {
     $sizesettings = array('attachsave' => array('1', '3', '4'), 'delayviewcount' => array('0', '0', '3'), 'fullmytopics' => array('1', '0', '0'), 'maxonlines' => array('500', '5000', '50000'), 'pvfrequence' => array('30', '60', '100'), 'qihoo_status' => array('0', '0', '1'), 'searchctrl' => array('10', '30', '60'), 'hottopic' => array('10', '20', '50'), 'losslessdel' => array('365', '200', '100'), 'maxmodworksmonths' => array('5', '3', '1'), 'maxsearchresults' => array('200', '500', '1000'), 'statscachelife' => array('90', '180', '360'), 'moddisplay' => array('flat', 'flat', 'selectbox'), 'topicperpage' => array('30', '20', '15'), 'postperpage' => array('20', '15', '10'), 'maxpolloptions' => array('10', '10', '15'), 'maxpostsize' => array('10000', '10000', '20000'), 'myrecorddays' => array('100', '60', '30'), 'maxfavorites' => array('500', '200', '100'));
     $safesettings = array('attachrefcheck' => array('', '1', '1'), 'bannedmessages' => array('', '1', '1'), 'doublee' => array('1', '0', '0'), 'dupkarmarate' => array('1', '0', '0'), 'hideprivate' => array('0', '1', '1'), 'memliststatus' => array('1', '1', '0'), 'seccodestatus' => array('0', '1', '1'), 'bbrules' => array('0', '1', '1'), 'edittimelimit' => array('0', '20', '10'), 'floodctrl' => array('0', '10', '30'), 'karmaratelimit' => array('0', '1', '4'), 'newbiespan' => array('', '1', '4'), 'showemail' => array('0', '1', '1'), 'maxchargespan' => array('0', '1', '2'), 'regctrl' => array('0', '12', '48'), 'regfloodctrl' => array('0', '100', '50'), 'regstatus' => array('1', '1', '1'), 'regverify' => array('0', '1', '2'));
     $funcsettings = array('archiverstatus' => array('0', '1', '1'), 'bdaystatus' => array('0', '0', '1'), 'fastpost' => array('0', '1', '1'), 'editedby' => array('0', '1', '1'), 'forumjump' => array('0', '1', '1'), 'gzipcompress' => array('', '', '1'), 'newsletter' => array('', '', '1'), 'modworkstatus' => array('0', '0', '1'), 'reportpost' => array('0', '1', '1'), 'rewritestatus' => array('0', '0', '0'), 'rssstatus' => array('0', '1', '1'), 'wapstatus' => array('0', '1', '1'), 'maxbdays' => array('0', '100', '500'), 'statstatus' => array('0', '0', '1'), 'stylejump' => array('0', '0', '1'), 'subforumsindex' => array('0', '0', '1'), 'transsidstatus' => array('0', '0', '1'), 'visitedforums' => array('0', '10', '20'), 'vtonlinestatus' => array('0', '1', '1'), 'welcomemsg' => array('0', '0', '1'), 'jsstatus' => array('0', '0', '1'), 'watermarkstatus' => array('0', '0', '1'), 'whosonlinestatus' => array('0', '1', '1'), 'debug' => array('0', '1', '1'), 'regadvance' => array('0', '0', '1'), 'jsmenustatus' => array('0', '1', '15'), 'showsettings' => array('0', '7', '7'), 'editoroptions' => array('0', '1', '1'));
     $safeforums = array('modnewposts' => array('0', '0', '1'), 'recyclebin' => array('0', '1', '1'), 'jammer' => array('0', '0', '1'));
     $funcforums = array('allowsmilies' => array('0', '1', '1'), 'allowbbcode' => array('0', '1', '1'), 'allowimgcode' => array('0', '1', '1'), 'allowanonymous' => array('0', '0', '1'), 'allowpostspecial' => array('', '1', '127'), 'disablewatermark' => array('1', '0', '0'), 'threadcaches' => array('0', '0', '1'), 'allowshare' => array('0', '1', '1'));
     $sizeforums = array('threadcaches' => array('0', '0', '1'));
     $sqladd = $comma = '';
     foreach ($sizesettings as $fieldname => $val) {
         $db->query("REPLACE INTO {$tablepre}settings (variable, value)\r\n\t\t\t\tVALUES ('{$fieldname}', '{$val[$runwizardhistory[step1][size]]}')");
     }
     foreach ($sizeforums as $fieldname => $val) {
Example #11
0
             } else {
                 $focus_filename = basename($focus_image);
             }
             $item = array('url' => $focus_url, 'tid' => $item['tid'], 'type' => $item['type'], 'available' => '1', 'subject' => cutstr($focus_subject, 80), 'summary' => messagecutstr($focus_summary, 150), 'image' => ($focus_aid = intval($focus_aid)) ? "image.php?aid={$focus_aid}&size=58x58&key=" . rawurlencode(authcode($focus_aid . "\t58\t58", 'ENCODE', $_DCACHE['settings']['authkey'])) : $focus_image, 'aid' => $focus_aid, 'filename' => $focus_filename);
             $focus['data'][$id] = $item;
             $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('focus', '" . addslashes(serialize($focus)) . "')");
             updatecache('focus');
         }
         cpmsg('focus_edit_succeed', $BASESCRIPT . '?action=misc&operation=focus', 'succeed');
     }
 } elseif ($do == 'config') {
     if (!submitcheck('confsubmit')) {
         shownav('adv', 'misc_focus');
         showsubmenu('misc_focus', array(array('config', 'misc&operation=focus&do=config', 1), array('admin', 'misc&operation=focus', 0), array(array('menu' => 'add', 'submenu' => array(array('misc_focus_handadd', 'misc&operation=focus&do=handadd'), array('misc_focus_threadadd', 'misc&operation=focus&do=threadadd'), array('misc_focus_autoadd', 'misc&operation=focus&do=recommend'))), '', 0)));
         showformheader('misc&operation=focus&do=config');
         showtableheader('config', 'fixpadding');
         showsetting('misc_focus_area_title', 'focus_title', empty($focus['title']) ? lang('misc_focus') : $focus['title'], 'text');
         showsubmit('confsubmit', 'submit');
         showtablefooter();
         showformfooter();
     } else {
         $focus['title'] = trim($focus_title);
         $focus['title'] = empty($focus['title']) ? lang('misc_focus') : $focus['title'];
         $db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('focus', '" . addslashes(serialize($focus)) . "')");
         updatecache('focus');
         cpmsg('focus_conf_succeed', $BASESCRIPT . '?action=misc&operation=focus&do=config', 'succeed');
     }
 } elseif ($do == 'fetchthread' && $id) {
     $thread = $db->fetch_first("SELECT pid, subject, message, attachment FROM {$tablepre}posts WHERE tid='{$id}' AND first='1'");
     ajaxshowheader();
     if (!$thread) {
Example #12
0
<?php

if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
$shopsetting = C::t(GM('shop_shopsetting'))->range();
$shoptemplates = api_indata('server_shoptemplate');
foreach ($shoptemplates as $k => $v) {
    $shoptempradio[] = array($v, lang('plugin/yiqixueba', 'shoptemp_' . $v));
}
if (!submitcheck('submit')) {
    showtips(lang('plugin/yiqixueba', 'edit_basesetting_tips'));
    showformheader($this_page . '&subop=edit', 'enctype');
    showtableheader(lang('plugin/yiqixueba', 'basesetting_option'));
    showsetting(lang('plugin/yiqixueba', 'shoptemplate'), array('shopsetting[shoptemplate]', $shoptempradio), $shopsetting['shoptemplate']['svalue'], 'select', '', 0, lang('plugin/yiqixueba', 'basesettingstatus_comment'), '', '', true);
    //radio
    showsubmit('submit');
    showtablefooter();
    showformfooter();
} else {
    foreach ($_POST['shopsetting'] as $k => $v) {
        $data = array('skey' => $k, 'svalue' => $v);
        if (!C::t(GM('shop_shopsetting'))->skey_exists($k)) {
            C::t(GM('shop_shopsetting'))->insert($data);
        } else {
            C::t(GM('shop_shopsetting'))->update($k, $data);
        }
    }
    echo '<style>.floattopempty { height: 30px !important; height: auto; } </style>';
    cpmsg(lang('plugin/yiqixueba', 'edit_basesetting_succeed'), 'action=' . $this_page . '&subop=basesettinglist', 'succeed');
}
Example #13
0
function siteftp_form($action)
{
    showformheader($action);
    showtableheader('cloudaddons_ftp_setting');
    showsetting('setting_attach_remote_enabled_ssl', 'siteftp[ssl]', '', 'radio');
    showsetting('setting_attach_remote_ftp_host', 'siteftp[host]', '', 'text');
    showsetting('setting_attach_remote_ftp_port', 'siteftp[port]', '21', 'text');
    showsetting('setting_attach_remote_ftp_user', 'siteftp[username]', '', 'text');
    showsetting('setting_attach_remote_ftp_pass', 'siteftp[password]', '', 'text');
    showsetting('setting_attach_remote_ftp_pasv', 'siteftp[pasv]', 0, 'radio');
    showsetting('setting_attach_ftp_dir', 'siteftp[attachdir]', '', 'text');
    showsubmit('settingsubmit');
    showtablefooter();
    showformfooter();
}
Example #14
0
\t\t\t\t\t\t\t<select name="perpage">
\t\t\t\t\t\t\t<option value="10"{$perpages['10']}>{$searchlang['perpage_10']}</option>
\t\t\t\t\t\t\t<option value="20"{$perpages['20']}>{$searchlang['perpage_20']}</option>
\t\t\t\t\t\t\t<option value="50"{$perpages['50']}>{$searchlang['perpage_50']}</option>
\t\t\t\t\t\t\t<option value="100"{$perpages['100']}>{$searchlang['perpage_100']}</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<input type="hidden" name="action" value="article">
\t\t\t\t\t\t\t<input type="submit" name="searchsubmit" value="{$searchlang['search']}" class="btn">
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>
\t\t</form>
SEARCH;
        showformheader('article&operation=list');
        showtableheader('article_list');
        showsubtitle(array('', 'article_title', 'article_category', 'article_username', 'article_dateline', 'operation'));
        $multipage = '';
        $count = C::t('portal_article_title')->fetch_all_by_sql($wheresql, '', 0, 0, 1);
        if ($count) {
            $query = C::t('portal_article_title')->fetch_all_by_sql($wheresql, $ordersql, $start, $perpage);
            foreach ($query as $value) {
                $tags = article_parse_tags($value['tag']);
                $taghtml = '';
                foreach ($tags as $k => $v) {
                    if ($v) {
                        $taghtml .= ' [<a href="' . ADMINSCRIPT . '?action=article&operation=list&tag[' . $k . ']=1" style="color: #666">' . $article_tags[$k] . '</a>] ';
                    }
                }
                showtablerow('', array('class="td25"', 'width="480"', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['aid']}\">", "<a href=\"portal.php?mod=view&aid={$value['aid']}\" target=\"_blank\">{$value['title']}</a>" . ($taghtml ? $taghtml : ''), '<a href="' . ADMINSCRIPT . '?action=article&operation=list&catid=' . $value['catid'] . '">' . $category[$value['catid']]['catname'] . '</a>', "<a href=\"" . ADMINSCRIPT . "?action=article&uid={$value['uid']}\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=article&aid={$value['aid']}\" target=\"_blank\">" . cplang('edit') . "</a>"));
            }
Example #15
0
				<ul style="margin-right: 10px;" class="tab1"></ul>
				<ul class="stepstat" id="nav_steps"></ul>
				<ul class="tab1"></ul>
				</div>

				<div id="loading">
				<div id="loadinginner" style="display: block; padding: 100px 0; text-align: center; color: #999;">
				<img src="' . $_G['style']['imgdir'] . '/loading.gif" alt="loading..." style="vertical-align: middle;" /> ' . $lang['cloud_page_loading'] . '
				</div>
				</div>
				<div style="display:none;" id="title"></div>';
            showformheader('', 'onsubmit="return submitForm();"');
            if ($cloudstatus == 'upgrade' || $cloudstatus == 'cloud' && $forceOpen) {
                echo '<div style="margin-top:10px; color: red; padding-left: 10px;" id="manyou_update_tips"></div>';
            }
            showtableheader('', '', 'id="mainArea" style="display:none;"');
            echo '
				<tr><td id="" style="border:none;"><div id="msg" class="tipsblock"></div></td></tr>
				<tr><td style="border-top:none;"><br />
				<label><input onclick="if(this.checked) {$(\'submit_submit\').disabled=false; $(\'submit_submit\').style.color=\'#000\';} else {$(\'submit_submit\').disabled=true; $(\'submit_submit\').style.color=\'#aaa\';}" id="agreeProtocal" class="checkbox" type="checkbox" checked="checked" value="1" />' . cplang('cloud_agree_protocal') . '</label><a id="protocal_url" href="javascript:;" target="_blank">' . cplang('read_protocal') . '</a>
				</td>
				</tr>';
            showsubmit('submit', 'cloud_will_open');
            showtablefooter();
            showformfooter();
            echo '
				<div id="siteInfo" style="display:none;;">
				<h3 class="flb"><em>' . cplang('message_title') . '</em><span><a href="javascript:;" class="flbc" onclick="hideWindow(\'open_cloud\');" title="' . cplang('close') . '">' . cplang('close') . '</a></span></h3>';
            showformheader('cloud&operation=open&step=2' . ($cloudstatus == 'cloud' && $forceOpen ? '&force_open=1' : ''), '');
            echo '
				<div class="c">
Example #16
0
 $sql .= $_G['gp_email'] != '' ? " AND email='{$_G['gp_email']}'" : '';
 $orderurl = array('alipay' => 'https://www.alipay.com/trade/query_trade_detail.htm?trade_no=', 'tenpay' => 'https://www.tenpay.com/med/tradeDetail.shtml?trans_id=');
 shownav('extended', 'nav_ec');
 showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 0), array('nav_ec_alipay', 'ec&operation=alipay', 0), array('nav_ec_credit', 'ec&operation=credit', 0), array('nav_ec_orders', 'ec&operation=orders', 0), array('nav_ec_tradelog', 'tradelog', 0), array('nav_ec_inviteorders', 'ec&operation=inviteorders', 1)));
 $ordercount = DB::result_first("SELECT COUNT(*) FROM " . DB::table('forum_order') . " WHERE uid='0' {$sql}");
 $multipage = multi($ordercount, $_G['tpp'], $page, ADMINSCRIPT . "?action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}");
 showtagheader('div', 'orderlist', TRUE);
 showformheader('ec&operation=inviteorders');
 showtableheader('ec_inviteorders_search');
 $_G['showsetting_multirow'] = 1;
 showsetting('ec_orders_search_status', array('orderstatus', array(array('', $lang['ec_orders_search_status_all']), array(1, $lang['ec_orders_search_status_pending']), array(2, $lang['ec_orders_search_status_auto_finished']))), intval($_G['gp_orderstatus']), 'select');
 showsetting('ec_orders_search_id', 'orderid', $_G['gp_orderid'], 'text');
 showsetting('ec_orders_search_email', 'email', $_G['gp_email'], 'text');
 showsubmit('searchsubmit', 'submit');
 showtablefooter();
 showtableheader('result');
 showsubtitle(array('', 'ec_orders_id', 'ec_inviteorders_status', 'ec_inviteorders_buyer', 'ec_orders_amount', 'ec_orders_price', 'ec_orders_submitdate', 'ec_orders_confirmdate'));
 $query = DB::query("SELECT *\r\n\t\t\tFROM " . DB::table('forum_order') . " WHERE uid='0' {$sql} ORDER BY submitdate DESC\r\n\t\t\tLIMIT {$start_limit}, {$_G['tpp']}");
 while ($order = DB::fetch($query)) {
     switch ($order['status']) {
         case 1:
             $order['orderstatus'] = $lang['ec_orders_search_status_pending'];
             break;
         case 2:
             $order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_auto_finished'] . '</b>';
             break;
         case 3:
             $order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_manual_finished'] . '</b><br />(<a href="home.php?mod=space&username='******'admin']) . '" target="_blank">' . $order['admin'] . '</a>)';
             break;
     }
     $order['submitdate'] = dgmdate($order['submitdate']);
Example #17
0
}
showtablerow('', array(), array(cplang('home_notes_add'), '<input type="text" class="txt" name="newmessage" value="" style="width:300px;" />' . cplang('validity') . ': <input type="text" class="txt" name="newexpiration" value="30" style="width:30px;" />' . cplang('days') . '&nbsp;<input name="notesubmit" value="' . cplang('submit') . '" type="submit" class="btn" />'));
showtablefooter();
showformfooter();
loaducenter();
showtableheader('home_sys_info', 'fixpadding');
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_discuz_version'), 'Discuz! ' . DISCUZ_VERSION . ' Release ' . DISCUZ_RELEASE . ' <a href="http://faq.comsenz.com/checkversion.php?product=Discuz&version=' . DISCUZ_VERSION . '&release=' . DISCUZ_RELEASE . '&charset=' . CHARSET . '&dbcharset=' . $dbcharset . '" class="lightlink2 smallfont" target="_blank">' . cplang('home_check_newversion') . '</a> <a href="http://www.comsenz.com/purchase/discuz/" class="lightlink2 smallfont" target="_blank">Professional support and services</a> <a href="http://idc.comsenz.com" class="lightlink2 smallfont" target="_blank">Discuz! Dedicated Hosting</a>'));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_ucclient_version'), 'UCenter ' . UC_CLIENT_VERSION . ' Release ' . UC_CLIENT_RELEASE));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_environment'), $serverinfo));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_serversoftware'), $serversoft));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_database'), $dbversion));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_upload_perm'), $fileupload));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_database_size'), $dbsize));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont"'), array(cplang('home_attach_size'), $attachsize));
showtablefooter();
showtableheader('home_dev', 'fixpadding');
showtablerow('', array('class="vtop td24 lineheight"'), array(cplang('home_dev_copyright'), '<span class="bold"><a href="http://www.comsenz.com" class="lightlink2" target="_blank">Beijing ups Technology Co., Ltd. Hong Sing Company</a></span>'));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont team"'), array(cplang('home_dev_manager'), '<a href="http://www.discuz.net/home.php?mod=space&uid=1" class="lightlink2 smallfont" target="_blank">Kevin \'Crossday\'</a>'));
showtablerow('', array('class="vtop td24 lineheight"', 'class="lineheight smallfont team"'), array(cplang('home_dev_team'), '
	 <a href="http://www.discuz.net/home.php?mod=space&uid=174393" class="lightlink2 smallfont" target="_blank">Guode \'sup\' Li</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=859" class="lightlink2 smallfont" target="_blank">Hypo \'Cnteacher\' Wang</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=263098" class="lightlink2 smallfont" target="_blank">Liming \'huangliming\' Huang</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=706770" class="lightlink2 smallfont" target="_blank">Jun \'Yujunhao\' Du</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=80629" class="lightlink2 smallfont" target="_blank">Ning \'Monkey\' Hou</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=246213" class="lightlink2 smallfont" target="_blank">Lanbo Liu</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=322293" class="lightlink2 smallfont" target="_blank">Qingpeng \'andy888\' Zheng</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=401635" class="lightlink2 smallfont" target="_blank">Guosheng \'bilicen\' Zhang</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=1125041" class="lightlink2 smallfont" target="_blank">Zongjun \'Fresh\' Shan</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=492114" class="lightlink2 smallfont" target="_blank">Liang \'Metthew\' Xu</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=1087718" class="lightlink2 smallfont" target="_blank">Yushuai \'Max\' Cong</a>
	 <a href="http://www.discuz.net/home.php?mod=space&uid=875919" class="lightlink2 smallfont" target="_blank">Jie \'tom115701\' Zhang</a>
\t\t\t\t\t\t<option value="50"{$perpages['50']}>{$searchlang['perpage_50']}</option>
\t\t\t\t\t\t<option value="100"{$perpages['100']}>{$searchlang['perpage_100']}</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<input type="hidden" name="action" value="topic">
\t\t\t\t\t\t<input type="submit" name="searchsubmit" value="{$searchlang['search']}" class="btn">
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</div>
\t</form>
SEARCH;
    $start = ($page - 1) * $perpage;
    $mpurl .= '&perpage=' . $perpage;
    $perpages = array($perpage => ' selected');
    showformheader('topic');
    showtableheader('topic_list');
    showsubtitle(array('', 'topic_title', 'topic_domain', 'topic_name', 'topic_creator', 'topic_dateline', 'operation'));
    $multipage = '';
    $count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('portal_topic') . " WHERE {$wheresql}"), 0);
    if ($count) {
        $query = DB::query("SELECT * FROM " . DB::table('portal_topic') . " WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
        while ($value = DB::fetch($query)) {
            showtablerow('', array('class="td25"', 'class=""', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['topicid']}\">", "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}\" target=\"_blank\">" . $value[title] . "</a>" . ($value['closed'] ? ' [' . cplang('topic_closed_yes') . ']' : ''), $value['domain'] && !empty($_G['setting']['domain']['root']['topic']) ? 'http://' . $value['domain'] . '.' . $_G['setting']['domain']['root']['topic'] : '', $value['name'], "<a href=\"home.php?mod=space&uid={$value['uid']}&do=profile\" target=\"_blank\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=topic&topicid={$value['topicid']}\" target=\"_blank\">" . cplang('topic_edit') . "</a>&nbsp;&nbsp;" . "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}&diy=yes\" target=\"_blank\">DIY</a>" . '&nbsp;&nbsp;<a href="' . ADMINSCRIPT . '?action=diytemplate&operation=perm&targettplname=portal/portal_topic_content_' . $value['topicid'] . '">' . cplang('topic_perm') . '</a>'));
        }
        $multipage = multi($count, $perpage, $page, $mpurl);
    }
    $ops = cplang('operation') . ': ' . "<input type='radio' class='radio' name='optype' value='open' id='op_close' /><label for='op_close'>" . cplang('topic_closed_no') . "</label>&nbsp;&nbsp;" . "<input type='radio' class='radio' name='optype' value='close' id='op_open' /><label for='op_open'>" . cplang('topic_closed_yes') . "</label>&nbsp;&nbsp;" . "<input type='radio' class='radio' name='optype' value='delete' id='op_delete' /><label for='op_delete'>" . cplang('delete') . "</label>&nbsp;&nbsp;";
    showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label>&nbsp;&nbsp;' . $ops . '<input type="submit" class="btn" name="opsubmit" value="' . cplang('submit') . '" />', $multipage);
    showtablefooter();
    showformfooter();
}
Example #19
0
<?php

/*
	if(file_exists(DISCUZ_ROOT.'./data/dsu_amupper.lock')) {
		cpmsg('dsu_amupper:admin_ed', 'action=plugins&operation=config&identifier=dsu_amupper','succeed');
		exit;
	} 
*/
!defined('IN_DISCUZ') && exit('Access Denied');
!defined('IN_ADMINCP') && exit('Access Denied');
if (!$_GET['submit']) {
    showtableheader(lang("plugin/dsu_amupper", "trans_h1"));
    showformheader("plugins&operation=config&identifier=dsu_amupper&pmod=trans&submit=1", "");
    showsetting(lang('plugin/dsu_amupper', 'trans_f1'), 'reserve', '1', 'radio');
    echo '<input type="hidden" name="formhash" value="' . FORMHASH . '">';
    showsubmit('submit', "OK!");
    showformfooter();
    showtablefooter();
} elseif ($_GET['submit'] && $_GET['reserve'] && $_G['adminid'] == '1' && $_GET['formhash'] == FORMHASH) {
    $formhash = FORMHASH;
    $limit = 400;
    $tablename = DB::table('dsu_paulsign');
    $amuppertable = DB::table('plugin_dsuamupper');
    $query = DB::query("SHOW TABLES LIKE '{$tablename}'");
    $paulsign_exist = 0;
    if (DB::num_rows($query) > 0) {
        $paulsign_exist = 1;
    }
    $query = DB::query("SHOW TABLES LIKE '{$amuppertable}'");
    $amupper_exist = 0;
    if (DB::num_rows($query) > 0) {
Example #20
0
        showsetting('collection_uid', 'collection_uid', $collection_uid, 'text');
        showsetting('feed_search_perpage', '', $_GET['perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
        showsubmit('searchsubmit');
        showtablefooter();
        showformfooter();
        showtagfooter('div');
    } else {
        $collection_name = trim($_GET['collection_name']);
        $collection_ctid = dintval($_GET['collection_ctid']);
        $collection_username = trim($_GET['collection_username']);
        $collection_uid = dintval($_GET['collection_uid']);
        $ppp = $_GET['perpage'];
        $startlimit = ($page - 1) * $ppp;
        $multipage = '';
        $totalcount = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, -1);
        $multipage = multi($totalcount, $ppp, $page, ADMINSCRIPT . "?action=collection&operation=admin&searchsubmit=yes&collection_name={$collection_name}&collection_ctid={$collection_ctid}&collection_username={$collection_username}&collection_uid={$collection_uid}&perpage={$ppp}&status={$status}");
        $collection = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, $startlimit, $ppp);
        showformheader('collection&operation=admin');
        showtableheader(cplang('collection_result') . ' ' . $totalcount . ' <a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=collection&operation=admin\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
        showhiddenfields(array('page' => $_GET['page'], 'collection_name' => $collection_name, 'collection_ctid' => $collection_ctid, 'perpage' => $ppp));
        showsubtitle(array('', 'collection_name', 'collection_username', 'collection_date'));
        foreach ($collection as $uniquecollection) {
            showtablerow('', array('class="td25"', 'width=400', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"ctidarray[]\" value=\"{$uniquecollection['ctid']}\" />", "<a href='forum.php?mod=collection&action=view&ctid={$uniquecollection['ctid']}' target='_blank'>{$uniquecollection['name']}</a>", "<a href='home.php?mod=space&uid={$uniquecollection['uid']}' target='_blank'>{$uniquecollection['username']}</a>", dgmdate($uniquecollection['dateline'])));
        }
        showtablerow('', array('class="td25" colspan="3"'), array('<input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ctidarray\', \'chkall\')" /><label for="chkall">' . cplang('select_all') . '</label>'));
        showtablerow('', array('class="td25"', 'colspan="2"'), array(cplang('operation'), '<input class="radio" type="radio" name="operate_type" value="delete"> ' . cplang('delete') . ' '));
        showsubmit('submit', 'submit', '', '', $multipage);
        showtablefooter();
        showformfooter();
    }
}
Example #21
0
        cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults);
    }
    require_once B_ROOT . './uc_client/client.php';
    $ucresult = uc_user_edit($_G['username'], $_POST['password'], $_POST['newpassword1']);
    if ($ucresult == -1) {
        array_push($checkresults, array('password' => $lang['old_password_invalid']));
    } elseif ($ucresult == -7) {
        array_push($checkresults, array('message' => $lang['no_change']));
    } elseif ($ucresult == -8) {
        array_push($checkresults, array('message' => $lang['protection_of_users']));
    }
    if (!empty($checkresults)) {
        cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults);
    }
    sclearcookie();
    cpmsg('getpasswd_succeed', 'index.php', 'succeed');
}
shownav('shop', 'nav_modifypasswd');
showsubmenu('nav_modifypasswd');
showtips('modifypasswd_list_tips');
showformheader('modifypasswd');
showtableheader('');
$required = '<span style="color:red">*</span>';
showsetting('modifypasswd_passwd', 'password', '', 'password', '', '', '', '', $required);
showsetting('modifypasswd_newpasswd1', 'newpassword1', '', 'password', '', '', '', '', $required);
showsetting('modifypasswd_newpasswd2', 'newpassword2', '', 'password', '', '', '', '', $required);
showsubmit('valuesubmit');
showtablefooter();
showformfooter();
bind_ajax_form();
exit;
function shownewsletter()
{
    global $lang;
    showtableheader();
    showsetting('members_newsletter_subject', 'subject', '', 'text');
    showsetting('members_newsletter_message', 'message', '', 'textarea');
    if ($_GET['do'] == 'mobile') {
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showhiddenfields(array('notifymembers' => 'mobile'));
    } else {
        showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio');
        showtagheader('tbody', 'posttype', '', 'sub');
        showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio');
        showtagfooter('tbody');
        showtagheader('tbody', 'pmextra', true, 'sub');
        showsetting('members_newsletter_system', 'system', 0, 'radio');
        showtagfooter('tbody');
    }
    showsetting('members_newsletter_num', 'pertask', 100, 'text');
    showtablefooter();
}
            } else {
                showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>'));
            }
        } elseif (isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600) {
            showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>'));
        } else {
            $oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY);
            $auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL);
            showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="red">' . $lang['callback_expired'] . '</font> <a href="' . $auth_url . '"><img src="source/plugin/dzapp_haodai/images/haodai_login.png" class="vmiddle"></a>'));
        }
    }
    showtablefooter();
} elseif ($_GET['want'] == 'import') {
    if (!submitcheck('ok')) {
        showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback&want=import');
        showtableheader('import_callback');
        showsetting($lang['appkey'], 'AKEY', defined('HD_AKEY') ? HD_AKEY : '', 'text');
        showsetting($lang['appsecret'], 'SKEY', defined('HD_SKEY') ? HD_SKEY : '', 'text');
        showsetting($lang['ref'], 'REF', defined('HD_REF') ? HD_REF : '', 'text');
        showsetting($lang['callback_url'], 'CALLBACK_URL', defined('HD_CALLBACK_URL') ? HD_CALLBACK_URL : $_G['siteurl'] . 'plugin.php?id=dzapp_haodai:callback', 'text');
        showsetting($lang['host_url'], 'API_HOST', defined('HD_API_HOST') ? HD_API_HOST : 'http://api.haodai.com/', 'text');
        showsubmit('ok', "ok");
        showtablefooter();
        showformfooter();
    } else {
        $config = array();
        $config['HD_REF'] = $_GET['REF'];
        $config['HD_AKEY'] = $_GET['AKEY'];
        $config['HD_SKEY'] = $_GET['SKEY'];
        $config['HD_CALLBACK_URL'] = $_GET['CALLBACK_URL'];
        $config['HD_API_HOST'] = $_GET['API_HOST'];
function showsearchform($operation = '')
{
    global $_G, $lang;
    $groupselect = array();
    $usergroupid = isset($_G['gp_usergroupid']) && is_array($_G['gp_usergroupid']) ? $_G['gp_usergroupid'] : array();
    $query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
    while ($group = DB::fetch($query)) {
        $group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
        $groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
    }
    $groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
    showtagheader('div', 'searchmembers', !$_G['gp_submit']);
    echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
    echo '<style type="text/css">#residedistrictbox select, #birthdistrictbox select{width: auto;}</style>';
    showformheader("plugins&operation=config&do=" . $_G['gp_do'] . "&identifier=smstong&pmod=sendsms", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
    showtableheader();
    showsetting('members_search_user', 'username', $_G['gp_username'], 'text');
    showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text');
    showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10">' . $groupselect . '</select>');
    showtablefooter();
    showtableheader();
    $_G['showsetting_multirow'] = 1;
    showtagheader('tbody', 'advanceoption');
    if (!empty($_G['setting']['connect']['allow'])) {
        showsetting('members_search_conisbind', array('conisbind', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_conisbind'], 'mradio');
        showsetting('members_search_uinblacklist', array('uin_low', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_uin_low'], 'mradio');
    }
    showsetting('members_search_online', array('sid_noempty', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_online'], 'mradio');
    showsetting('members_search_lockstatus', array('status', array(array(-1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_status'], 'mradio');
    showsetting('members_search_emailstatus', array('emailstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_emailstatus'], 'mradio');
    showsetting('members_search_avatarstatus', array('avatarstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_avatarstatus'], 'mradio');
    showsetting('members_search_email', 'email', $_G['gp_email'], 'text');
    showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_low", "credits_high"), array($_G['gp_credits_low'], $_G['gp_credtis_high']), 'range');
    if (!empty($_G['setting']['extcredits'])) {
        foreach ($_G['setting']['extcredits'] as $id => $credit) {
            showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_low", "extcredits{$id}" . "_high"), array($_G['gp_extcredits' . $id . '_low'], $_G['gp_extcredits' . $id . '_high']), 'range');
        }
    }
    showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_G['gp_friends_low'], $_G['gp_friends_high']), 'range');
    showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_G['gp_posts_low'], $_G['gp_posts_high']), 'range');
    showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
    showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
    showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_G['gp_regdate_after'], $_G['gp_regdate_before']), 'daterange');
    showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_G['gp_lastvisit_after'], $_G['gp_lastvisit_before']), 'daterange');
    showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_G['gp_lastpost_after'], $_G['gp_lastpost_before']), 'daterange');
    showsetting('members_search_group_fid', 'fid', $_G['gp_fid'], 'text');
    if ($_G['setting']['verify']) {
        $verifydata = array();
        foreach ($_G['setting']['verify'] as $key => $value) {
            if ($value['available']) {
                $verifydata[] = array('verify' . $key, $value['title']);
            }
        }
        if (!empty($verifydata)) {
            showsetting('members_search_verify', array('verify', $verifydata), $_G['gp_verify'], 'mcheckbox');
        }
    }
    $yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
    $yy = dgmdate(TIMESTAMP, 'Y');
    for ($y = $yy; $y >= $yy - 100; $y--) {
        $y = sprintf("%04d", $y);
        $yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
    }
    for ($m = 1; $m <= 12; $m++) {
        $m = sprintf("%02d", $m);
        $monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
    }
    for ($d = 1; $d <= 31; $d++) {
        $d = sprintf("%02d", $d);
        $dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
    }
    showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
    loadcache('profilesetting');
    unset($_G['cache']['profilesetting']['uid']);
    unset($_G['cache']['profilesetting']['birthyear']);
    unset($_G['cache']['profilesetting']['birthmonth']);
    unset($_G['cache']['profilesetting']['birthday']);
    require_once libfile('function/profile');
    foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
        if (!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
            continue;
        }
        if ($fieldid == 'gender') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
            $select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
            $select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
            showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
        } elseif ($fieldid == 'birthcity') {
            $elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
            showsetting($value['title'], '', '', '<div id="birthdistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'birthdistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'residecity') {
            $elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
            showsetting($value['title'], '', '', '<div id="residedistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'residedistrictbox', 1) . '</div>');
        } elseif ($fieldid == 'constellation') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $name = lang('space', 'constellation_' . $i);
                $select .= "<option value=\"{$name}\">{$name}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
        } elseif ($fieldid == 'zodiac') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            for ($i = 1; $i <= 12; $i++) {
                $option = lang('space', 'zodiac_' . $i);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
        } elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
            $select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
            $value['choices'] = explode("\n", $value['choices']);
            foreach ($value['choices'] as $option) {
                $option = trim($option);
                $select .= "<option value=\"{$option}\">{$option}</option>\n";
            }
            showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
        } else {
            showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
        }
    }
    showtagfooter('tbody');
    $_G['showsetting_multirow'] = 0;
    showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
    showtablefooter();
    showformfooter();
    showtagfooter('div');
}
Example #25
0
        } else {
            $sharecount = 0;
            $query = DB::query("SELECT s.sid FROM " . DB::table('home_share') . " s WHERE 1 {$sql}");
            while ($share = DB::fetch($query)) {
                $sids .= ',' . $share['sid'];
                $sharecount++;
            }
            $multi = '';
        }
        if (!$sharecount) {
            $error = 'share_post_nonexistence';
        }
    }
    showtagheader('div', 'postlist', $searchsubmit || $newlist);
    showformheader('share&frame=no', 'target="shareframe"');
    showhiddenfields(array('sids' => authcode($sids, 'ENCODE')));
    showtableheader(cplang('share_result') . ' ' . $sharecount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'shareforum\').pp.value=\'\';$(\'shareforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding');
    if ($error) {
        echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>";
    } else {
        if ($detail) {
            showsubtitle(array('', 'author', 'share_title', 'share_body', 'share_type', 'time'));
            echo $shares;
        }
    }
    showsubmit('sharesubmit', 'delete', $detail ? 'del' : '', '', $multi);
    showtablefooter();
    showformfooter();
    echo '<iframe name="shareframe" style="display:none"></iframe>';
    showtagfooter('div');
}
     function showtextradio($textname, $textvalue, $radioname, $radioes = array())
     {
         $a = '<input type="text" class="txt marginbot" name="' . $textname . '" id="' . $textname . '" value="' . $textvalue . '" /><ul style="width: 340px;" onmouseover="altStyle(this);">';
         if (is_array($radioes)) {
             foreach ($radioes as $radio) {
                 $a .= '<li><input type="radio" name="' . $radioname . '" value="' . $radio[1] . '" class="radio" onclick="$(\'' . $textname . '\').value = this.value"' . ($radio[2] ? ' checked="checked"' : '') . ' /> ' . $radio[0] . '</li>';
             }
         }
         $a .= '</ul>';
         return $a;
     }
     shownav('tools', 'nav_creditwizard');
     showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0)));
     showtips('creditwizard_tips_creditsuse');
     showformheader('creditwizard&step=3');
     showtableheader('creditwizard_step_menu_3');
     showsetting('settings_credits_trans', '', '', '<select onchange="$(\'allowcreditstrans\').style.display = this.value != 0 ? \'\' : \'none\'" name="creditstransnew">' . $creditstransselect . '</select>');
     showsetting('settings_credits_tax', '', '', showtextradio('creditstaxnew', $creditstax, 'creditstaxradio', array(array($lang['low'] . ' (0.01)', '0.01', $creditstax == '0.01'), array($lang['middle'] . ' (0.1)', '0.1', $creditstax == '0.1'), array($lang['high'] . ' (0.5)', '0.5', $creditstax == '0.5'))));
     showsetting('settings_credits_minexchange', '', '', showtextradio('exchangemincreditsnew', $exchangemincredits, 'exchangemincreditsradio', array(array($lang['low'] . ' (100)', 100, $exchangemincredits == 100), array($lang['middle'] . ' (1000)', 1000, $exchangemincredits == 1000), array($lang['high'] . ' (5000)', 5000, $exchangemincredits == 5000))));
     showtagheader('tbody', 'allowcreditstrans', $creditstrans);
     showtitle('creditwizard_allowcreditstrans');
     showsetting('settings_credits_mintransfer', '', '', showtextradio('transfermincreditsnew', $transfermincredits, 'transfermincreditsradio', array(array($lang['low'] . ' (100)', 100, $transfermincredits == 100), array($lang['middle'] . ' (1000)', 1000, $transfermincredits == 1000), array($lang['high'] . ' (5000)', 5000, $transfermincredits == 5000))));
     showsetting('settings_credits_maxincperthread', '', '', showtextradio('maxincperthreadnew', $maxincperthread, 'maxincperthreadradio', array(array($lang['nolimit'] . ' (0)', 0, $maxincperthread == 0), array($lang['low'] . ' (10)', 10, $maxincperthread == 10), array($lang['middle'] . ' (50)', 50, $maxincperthread == 50), array($lang['high'] . ' (100)', 100, $maxincperthread == 100))));
     showsetting('settings_credits_maxchargespan', '', '', showtextradio('maxchargespannew', $maxchargespan, 'maxchargespanradio', array(array($lang['nolimit'] . ' (0)', 0, $maxchargespan == 0), array($lang['low'] . ' (5)', 5, $maxchargespan == 5), array($lang['middle'] . ' (24)', 24, $maxchargespan == 24), array($lang['high'] . ' (48)', 48, $maxchargespan == 48))));
     showtagfooter('tbody');
     showsubmit('settingsubmit');
     showtablefooter();
     showformfooter();
 } else {
     if ($creditstaxnew < 0 || $creditstaxnew >= 1) {
         $creditstaxnew = 0;
Example #27
0
require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php';
require_once DISCUZ_ROOT . './source/plugin/wechat/setting.class.php';
WeChatSetting::menu();
if (!$_G['wechat']['setting']['wechat_appId'] || !$_G['wechat']['setting']['wechat_appsecret']) {
    cpmsg(lang('plugin/wechat', 'wsq_menu_at_error'), '', 'error');
}
if (!submitcheck('menusubmit') && !submitcheck('pubsubmit')) {
    $wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']);
    if (in_array('plugin', $_G['setting']['rewritestatus'])) {
        $url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access', '', 'op=access');
    } else {
        $url = $_G['siteurl'] . 'plugin.php?id=wechat:access';
    }
    showtips(lang('plugin/wechat', 'menu_tips', array('url' => $url)));
    showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=menu_setting');
    showtableheader();
    echo '<tr class="header"><th class="td25"></th><th>' . $lang['display_order'] . '</th><th style="width:350px">' . lang('plugin/wechat', 'wsq_menu_name') . '</th><th>' . lang('plugin/wechat', 'wsq_menu_keyurl') . '</th></tr>';
    foreach ($setting['button'] as $k => $button) {
        $disabled = !empty($button['sub_button']) ? 'disabled' : '';
        showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][delete]\" value=\"yes\" {$disabled}>", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][displayorder]\" value=\"{$button['displayorder']}\">", "<div class=\"parentnode\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][name]\" value=\"" . dhtmlspecialchars($button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][keyurl]\" value=\"" . dhtmlspecialchars($button['keyurl']) . "\">"));
        if (!empty($button['sub_button'])) {
            foreach ($button['sub_button'] as $sk => $sub_button) {
                showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][sub_button][{$sk}][delete]\" value=\"yes\">", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][sub_button][{$sk}][displayorder]\" value=\"{$sub_button['displayorder']}\">", "<div class=\"node\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][name]\" value=\"" . dhtmlspecialchars($sub_button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][keyurl]\" value=\"" . dhtmlspecialchars($sub_button['keyurl']) . "\">"));
            }
        }
        echo '<tr><td></td><td></td><td colspan="2"><div class="lastnode"><a href="###" onclick="addrow(this, 1, ' . $k . ')" class="addtr">' . lang('plugin/wechat', 'wsq_menu_sub_button') . '</a></div></td></tr>';
    }
    echo '<tr><td></td><td class="td23 td28"></td><td colspan="2"><div><a href="###" onclick="addrow(this, 0, 0)" class="addtr">' . lang('plugin/wechat', 'wsq_menu_button') . '</a></div></td></tr>';
    echo <<<EOT
<script type="text/JavaScript">
var rowtypedata = [
Example #28
0
    $exsel = extc2seled(0, $_G['setting']['extcredits']);
    loadcache('usergroups');
    $usergroups = $_G['cache']['usergroups'];
    $gidsel = usergroups2seled('-1', $usergroups);
    echo '<script type="text/JavaScript">
	var rowtypedata = [[
		[1,"", ""],
		[1,\'<input type="text" class="txt" name="days[]" size="7">\', ""],
		[1,\'' . $gidsel . '\', ""],
		[1,\'' . $exsel . '\', ""],
		[1,\'<input type="text" class="txt" name="reward[]" size="7">\', ""],
	]]
	</script>';
    showformheader('plugins&operation=config&identifier=dsu_amupper&pmod=admin');
    showtips(lang("plugin/dsu_amupper", "admin2_p1"));
    showtableheader(lang("plugin/dsu_amupper", "admin2_h1"));
    showsubtitle(array(lang("plugin/dsu_amupper", "admin2_t0"), lang("plugin/dsu_amupper", "admin2_t1"), lang("plugin/dsu_amupper", "admin2_t4"), lang("plugin/dsu_amupper", "admin2_t2"), lang("plugin/dsu_amupper", "admin2_t3")));
    $arr = DB::fetch_all("SELECT * FROM %t WHERE id>%d LIMIT %d", array('plugin_dsuamupperc', '-1', '100'), 'id');
    if ($arr) {
        $i = 0;
        $data_f2a = dstripslashes($arr);
        foreach ($data_f2a as $id => $result) {
            $exsel = extc2seled($result['extcredits'], $_G['setting']['extcredits']);
            $gidsel = usergroups2seled($result['usergid'], $usergroups);
            showtablerow('', array(' ', ' ', ' ', ' '), array('<input type="checkbox" class="checkbox" name="delete[]" value="' . $i . '" />', '<INPUT TYPE="hidden" NAME="id[]" value="' . $result['id'] . '"><input type="text" class="txt" name="days[]" value="' . $result['days'] . '" size="7" />', '' . $gidsel . '', '' . $exsel . '', '<input type="text" class="txt" name="reward[]" value="' . $result['reward'] . '" size="7" />'));
            $i++;
        }
    }
    echo '<tr><td></td><td colspan="3"><div><a href="#addrow" name="addrow" onclick="addrow(this, 0)" class="addtr">' . lang("plugin/dsu_amupper", "admin2_s1") . '</a></div></td></tr>';
    showsubmit('submit', lang("plugin/dsu_amupper", "admin2_s2"));
    showtablefooter();
Example #29
0
        } else {
            $cpmsg = cplang('recyclebin_nothread');
        }
        ?>
<script type="text/JavaScript">alert('<?php 
        echo $cpmsg;
        ?>
');parent.$('rbsearchform').searchsubmit.click();</script>
<?php 
    }
} elseif ($operation == 'clean') {
    if (!submitcheck('rbsubmit', 1)) {
        shownav('topic', 'nav_recyclebin');
        showsubmenu('nav_recyclebin', array(array('recyclebin_list', 'recyclebin', 0), array('search', 'recyclebin&operation=search', 0), array('clean', 'recyclebin&operation=clean', 1)));
        showformheader('recyclebin&operation=clean');
        showtableheader('recyclebin_clean');
        showsetting('recyclebin_clean_days', 'days', '30', 'text');
        showsubmit('rbsubmit');
        showtablefooter();
        showformfooter();
    } else {
        $deletetids = array();
        $timestamp = TIMESTAMP;
        $pernum = 500;
        $threadsdel = intval($_GET['threadsdel']);
        $days = intval($_GET['days']);
        foreach (C::t('forum_threadmod')->fetch_all_recyclebin_by_dateline($timestamp - $days * 86400, 0, $pernum) as $thread) {
            $deletetids[] = $thread['tid'];
        }
        if ($deletetids) {
            require_once libfile('function/delete');
Example #30
0
                                runlog('sendmail', "{$member['email']} sendmail failed.");
                            }
                        }
                    }
                }
            }
        }
        cpmsg('moderate_members_op_succeed', "action=moderate&operation=members&page={$page}", 'succeed', array('numvalidated' => $numvalidated, 'numinvalidated' => $numinvalidated, 'numdeleted' => $numdeleted));
    }
} elseif ($do == 'del') {
    if (!submitcheck('prunesubmit', 1)) {
        shownav('user', 'nav_modmembers');
        showsubmenu('nav_moderate_users', array(array('nav_moderate_users_mod', 'moderate&operation=members&do=mod', 0), array('clean', 'moderate&operation=members&do=del', 1)));
        showtips('moderate_members_tips');
        showformheader('moderate&operation=members&do=del');
        showtableheader('moderate_members_prune');
        showsetting('moderate_members_prune_submitmore', 'submitmore', '5', 'text');
        showsetting('moderate_members_prune_regbefore', 'regbefore', '30', 'text');
        showsetting('moderate_members_prune_modbefore', 'modbefore', '15', 'text');
        showsetting('moderate_members_prune_regip', 'regip', '', 'text');
        showsubmit('prunesubmit');
        showtablefooter();
        showformfooter();
    } else {
        $uids = C::t('common_member_validate')->fetch_all_validate_uid($_GET['submitmore'], $_GET['regbefore'], $_GET['modbefore'], $_GET['regip']);
        if (!($membernum = count($uids))) {
            cpmsg('members_search_noresults', '', 'error');
        } elseif (!$_GET['confirmed']) {
            cpmsg('members_delete_confirm', "action=moderate&operation=members&do=del&submitmore=" . rawurlencode($_GET['submitmore']) . "&regbefore=" . rawurlencode($_GET['regbefore']) . "&regip=" . rawurlencode($_GET['regip']) . "&prunesubmit=yes", 'form', array('membernum' => $membernum));
        } else {
            $numdeleted = C::t('common_member')->delete_no_validate(array_keys($uids));