Ejemplo n.º 1
0
        $mnames = array_filter(explode(',', $crsaving['mname']));
        $actuser = new cls_userinfo();
        foreach ($mnames as $v) {
            $v = trim($v);
            if (empty($v)) {
                continue;
            }
            $actuser->activeuserbyname($v);
            $actuser->cridsaving($crsaving['crid'], $crsaving['savingmode'] ? 0 : 1, $crsaving['currency']);
        }
        unset($actuser);
        adminlog(lang('member_cu_saving'), lang('member_cu_saving'));
        amessage('currencyinoutfinish', '?entry=currencys&action=currencysaving');
    }
} elseif ($action == 'cradminlogs') {
    backallow('save') || amessage('no_apermission');
    $url_type = 'cysave';
    include 'urlsarr.inc.php';
    url_nav(lang('member_inout'), $urlsarr, 'record');
    $page = empty($page) ? 1 : $page;
    $page = max(1, intval($page));
    $viewdetail = empty($viewdetail) ? '' : $viewdetail;
    $crid = !isset($crid) ? '-1' : $crid;
    $dealmode = empty($dealmode) ? '' : $dealmode;
    $mode = empty($mode) ? '' : $mode;
    $mnames = empty($mnames) ? '' : $mnames;
    $frommnames = empty($frommnames) ? '' : $frommnames;
    $startdate = empty($startdate) ? '' : strtotime($startdate);
    $enddate = empty($enddate) ? '' : strtotime($enddate);
    $filterstr = "&viewdetail={$viewdetail}&crid={$crid}&dealmode={$dealmode}&mode={$mode}&mnames={$mnames}&frommnames={$frommnames}&startdate={$startdate}&enddate={$enddate}";
    $currencyarr = array('-1' => lang('nolimit')) + cridsarr(1);
Ejemplo n.º 2
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('freeinfo') || amessage('no_apermission');
load_cache('fchannels,mtpls,initfields,rprojects');
sys_cache('fieldwords');
include_once M_ROOT . "./include/fields.fun.php";
$url_type = 'fchannel';
include 'urlsarr.inc.php';
if ($action == 'fchannelsedit') {
    if (!submitcheck('bfchannelsedit') && !submitcheck('bfchanneladd')) {
        url_nav(lang('pluginframework'), $urlsarr, 'channel');
        tabheader(lang('channel_manager'), 'fchannelsedit', '?entry=fchannels&action=fchannelsedit', '4');
        trcategory(array(lang('id'), lang('channel_name'), lang('edit'), lang('delete')));
        foreach ($fchannels as $k => $fchannel) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">{$k}</td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"fchannelnew[{$k}][cname]\" value=\"{$fchannel['cname']}\"></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=fchannels&action=fchanneldetail&chid={$fchannel['chid']}\" onclick=\"return floatwin('open_fchannelsedit',this)\">" . lang('detail') . "</a></td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=fchannels&action=fchanneldel&chid={$fchannel['chid']}\">" . lang('delete') . "</a></td>\n" . "</tr>\n";
        }
        tabfooter('bfchannelsedit', lang('modify'));
        tabheader(lang('add_channel'), 'fchanneladd', '?entry=fchannels&action=fchannelsedit', 2, 0, 1);
        trbasic(lang('channel_name'), 'fchanneladd[cname]');
        tabfooter('bfchanneladd', lang('add'));
        $submitstr = '';
        $submitstr .= makesubmitstr('fchanneladd[cname]', 1, 0, 3, 30);
        check_submit_func($submitstr);
        a_guide('fchannelsedit');
    } elseif (submitcheck('bfchannelsedit')) {
        if (isset($fchannelnew)) {
            foreach ($fchannelnew as $k => $v) {
                $v['cname'] = trim(strip_tags($v['cname']));
                $v['cname'] = $v['cname'] ? $v['cname'] : $fchannels[$k]['cname'];
Ejemplo n.º 3
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('cnode') || amessage('no_apermission');
load_cache('cotypes');
load_cache('catalogs,mtpls,cnconfigs,', $sid);
include_once M_ROOT . "./include/cnode.fun.php";
include_once M_ROOT . "./include/cparse.fun.php";
include_once M_ROOT . "./include/parse/general.php";
$url_type = 'cnode';
include 'urlsarr.inc.php';
if ($action == 'cnconfigs') {
    if (!submitcheck('bcnconfigs')) {
        url_nav(lang('cnodeadmin'), $urlsarr, 'cnconfigs');
        $addstr = "&nbsp; &nbsp; >><a href=\"?entry={$entry}&action=cnconfigsadd{$param_suffix}\" onclick=\"return floatwin('open_cnodes',this)\">" . lang('cnconfigsadd') . "</a>";
        tabheader(lang('cnconfigadmin') . $addstr, 'cnodesupdate', "?entry={$entry}&action={$action}{$param_suffix}", 3);
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", array(lang('config_name'), 'txtL'), array(lang('catas_configs'), 'txtL'), array(lang('mlclass'), 'txtL'), lang('order'), lang('copy'), lang('edit')));
        $cnidsarr = array();
        foreach ($cnconfigs as $k => $v) {
            $configstr = '';
            $i = 0;
            $idsarr = cfgs2ids($v['configs'], $sid);
            foreach ($v['configs'] as $k1 => $v1) {
                $configstr .= ($configstr ? ' x ' : '') . (!$k1 ? lang('catalog') : @$cotypes[$k1]['cname']) . '(' . count($idsarr[$k1]) . ')';
                !$i && ($type = lang(!$k1 ? 'catalog' : @$cotypes[$k1]['cname']));
                !$i && ($mlclassstr = fetch_mlclass($k1, $v['configs'][$k1]));
                $i++;
            }
            $cnidsarr[$k] = $v['cname'] . '(' . $type . ')';
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[]\" value=\"{$k}\"></td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"25\" maxlength=\"30\" name=\"cnconfigsnew[{$k}][cname]\" value=\"{$v['cname']}\"></td>\n" . "<td class=\"txtL\">{$configstr}</td>\n" . "<td class=\"txtL\">{$mlclassstr}</td>\n" . "<td class=\"txtC w40\"><input type=\"text\" size=\"4\" maxlength=\"4\" name=\"cnconfigsnew[{$k}][vieworder]\" value=\"{$v['vieworder']}\"></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry={$entry}&action=cnconfigdetail&cncid={$k}{$param_suffix}&iscopy=1\" onclick=\"return floatwin('open_cnodes',this)\">" . lang('copy') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry={$entry}&action=cnconfigdetail&cncid={$k}{$param_suffix}\" onclick=\"return floatwin('open_cnodes',this)\">" . lang('detail') . "</a></td>\n" . "</tr>\n";
Ejemplo n.º 4
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('member') || amessage('no_apermission');
load_cache('mchannels,catalogs,acatalogs,cotypes,mtconfigs,channels,grouptypes,currencys,rprojects');
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.cls.php";
$backamember = backallow('amember');
$actuser = new cls_userinfo();
$actuser->activeuser($mid, 2);
empty($actuser->info['mid']) && amessage('choosemember');
!empty($actuser->info['isfounder']) && $curuser->info['mid'] != $actuser->info['mid'] && amessage('cannotmodifyfounder');
$mchid = $actuser->info['mchid'];
$mchannel = $mchannels[$mchid];
if ($action == 'memberdetail' && $mid) {
    $mfields = read_cache('mfields', $mchid);
    if (!submitcheck('bmemberdetail')) {
        $a_field = new cls_field();
        $submitstr = '';
        tabheader(lang('base_option') . '&nbsp;:&nbsp;[' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=memberdetail&mid={$mid}", 2, 1, 1);
        trbasic(lang('modify_pwd'), 'minfosnew[password]', '', 'password');
        trbasic('*' . lang('email'), 'minfosnew[email]', $actuser->info['email']);
        $submitstr .= makesubmitstr('minfosnew[password]', 0, 0, 0, 15);
        $submitstr .= makesubmitstr('minfosnew[email]', 1, 'email', 0, 50);
        trbasic(lang('space_tpl_prj'), 'minfosnew[mtcid]', makeoption(mtcidsarr($mchid), $actuser->info['mtcid']), 'select');
        foreach ($mfields as $k => $field) {
            if ($field['available'] && !$field['issystem'] && !$field['isfunc']) {
                $a_field->init();
                $a_field->field = $field;
                $a_field->oldvalue = isset($actuser->info[$k]) ? $actuser->info[$k] : '';
Ejemplo n.º 5
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('farchive') || amessage('no_apermission');
load_cache('fcatalogs,fchannels,currencys,');
include_once M_ROOT . "./include/farcedit.cls.php";
include_once M_ROOT . "./include/farchive.cls.php";
include_once M_ROOT . "./include/farc_static.fun.php";
if ($action == 'farchivesedit') {
    //分析页面设置
    $nauid = empty($nauid) ? 0 : $nauid;
    $u_checked = $u_valid = -1;
    if ($nauid && ($u_url = read_cache('aurl', $nauid))) {
        $u_tplname = $u_url['tplname'];
        $u_onlyview = empty($u_url['onlyview']) ? 0 : 1;
        foreach (array('checked', 'valid', 'consult') as $var) {
            ${'u_' . $var} = $u_url['setting'][$var];
        }
        $vars = array('filters', 'lists', 'operates');
        foreach ($vars as $var) {
            if (!empty($u_url['setting'][$var])) {
                ${'u_' . $var} = explode(',', $u_url['setting'][$var]);
            }
        }
        if ($u_consult) {
            if (in_array(-1, $a_fcaids)) {
                $a_fcaids = array();
                foreach ($fcatalogs as $k => $v) {
                    if ($v['cumode']) {
                        $a_fcaids[] = $k;
Ejemplo n.º 6
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('cfmcommu') || amessage('no_apermission');
load_cache('grouptypes,currencys,rprojects,channels,permissions');
sys_cache('fieldwords');
load_cache('mtpls', $sid);
include_once M_ROOT . "./include/fields.fun.php";
$cclassarr = array('score' => lang('score'), 'friend' => lang('friend'), 'flink' => lang('flink'), 'comment' => lang('comment'), 'reply' => lang('reply'), 'report' => lang('pickbug'), 'favorite' => lang('favorite'));
$action = empty($action) ? 'mcommusedit' : $action;
$url_type = 'mcufield';
include 'urlsarr.inc.php';
if ($action == 'mcommusedit') {
    $mcommus = fetch_arr();
    if (!submitcheck('bmcommusedit')) {
        url_nav(lang('memberinterconfig'), $urlsarr, 'mcommu');
        tabheader(lang('memcomitad'), 'mcommusedit', "?entry=mcommus&action=mcommusedit", '7');
        trcategory(array(lang('delete'), lang('enable'), array(lang('item_name'), 'txtL'), lang('type'), array(lang('pick_url_style'), 'txtL'), lang('copy'), lang('edit')));
        foreach ($mcommus as $cuid => $mcommu) {
            $cclass = $cclassarr[$mcommu['cclass']];
            $pickurl = '{$mspaceurl}' . $mcommu['cclass'] . '.php?mid={mid}';
            if ($mcommu['cclass'] == 'score') {
                $pickurl .= '&score=xx (xx-' . lang('score_amount') . ')';
            }
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$cuid}]\" value=\"{$cuid}\"" . ($mcommu['issystem'] || $sid ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"mcommusnew[{$cuid}][available]\" value=\"1\"" . (empty($mcommu['available']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL w200\"><input type=\"text\" size=\"30\" maxlength=\"30\" name=\"mcommusnew[{$cuid}][cname]\" value=\"{$mcommu['cname']}\"></td>\n" . "<td class=\"txtC w60\">{$cclass}</td>\n" . "<td class=\"txtL\">{$pickurl}</td>\n" . "<td class=\"txtC w30\">" . ($mcommu['ch'] ? "<a href=\"?entry=mcommus&action=mcommucopy&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('copy') . "</a>" : '-') . "</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=mcommus&action=mcommudetail&cuid={$cuid}\" onclick=\"return floatwin('open_mcommusedit',this)\">" . lang('detail') . "</a></td></tr>\n";
        }
        tabfooter('bmcommusedit', lang('modify'));
        a_guide('mcommusedit');
    } else {
        if (!empty($delete)) {
Ejemplo n.º 7
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('extract') || amessage('no_apermission');
include_once M_ROOT . '/include/extract/extract.cls.php';
$ex = new extract_cash();
$ex->isadmin = 1;
$ex->showlist();
Ejemplo n.º 8
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('catalog') || amessage('no_apermission');
load_cache('cotypes,channels,grouptypes,permissions,vcps,rprojects,cafields');
sys_cache('fieldwords');
load_cache('catalogs,mtpls', $sid);
cache_merge($channels, 'channels', $sid);
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.fun.php";
include_once M_ROOT . "./include/fields.cls.php";
include_once M_ROOT . "./include/cnode.fun.php";
$catalog = read_cache('catalog', $caid, '', $sid);
if (!submitcheck('bcatalogdetail')) {
    $submitstr = '';
    $a_field = new cls_field();
    #$addfieldstr = $sid ? '' : ("&nbsp; &nbsp; >><a href=\"?entry=catalogs&action=cafieldsedit\">".lang('iscustom_catalog_field').'</a>');
    $allow = array_filter(explode(",", $allow));
    tabheader('页面内容设置' . "&nbsp;&nbsp;[{$catalog['title']}]", 'catalogdetail', "", 2, 1, 1);
    foreach ($cafields as $field) {
        if (!in_array($field['ename'], $allow)) {
            continue;
        }
        $a_field->init();
        $a_field->field = $field;
        $a_field->oldvalue = isset($catalog[$field['ename']]) ? $catalog[$field['ename']] : '';
        $a_field->trfield('catalognew', '', 'ca');
        $submitstr .= $a_field->submitstr;
    }
    tabfooter('bcatalogdetail');
Ejemplo n.º 9
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('grouptype') || amessage('no_apermission');
load_cache('grouptypes,currencys,mchannels');
if ($action == 'grouptypesedit') {
    if (!submitcheck('bgrouptypesadd') && !submitcheck('bgrouptypesedit')) {
        $modearr = array('0' => lang('user_handwork'), '1' => lang('admin_handwork'), '2' => lang('crbase'), '3' => lang('crex'));
        $cridsarr = array(0 => lang('noset')) + cridsarr();
        $itemstr = '';
        foreach ($grouptypes as $k => $grouptype) {
            $modestr = $modearr[$grouptype['mode']];
            $cridstr = empty($grouptype['crid']) || empty($cridsarr[$grouptype['crid']]) ? '-' : $cridsarr[$grouptype['crid']];
            if (empty($grouptype['crid']) && $grouptype['mode'] == 3) {
                $cridstr = lang('cash');
            }
            $itemstr .= "<tr class=\"txt\"><td class=\"txtC w30\">{$k}</td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$k}]\" value=\"{$k}\"" . ($grouptype['issystem'] ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" maxlength=\"30\" name=\"grouptypesnew[{$k}][cname]\" value=\"{$grouptype['cname']}\"></td>\n" . "<td class=\"txtC w60\">{$modestr}</td>\n" . "<td class=\"txtC w60\">{$cridstr}</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=grouptypes&action=grouptypedetail&gtid={$k}\" onclick=\"return floatwin('open_grouptypesedit',this)\">" . lang('setting') . "</a></td>\n" . "<td class=\"txtC w50\"><a href=\"?entry=usergroups&action=usergroupsedit&gtid={$k}\" onclick=\"return floatwin('open_grouptypesedit',this)\">" . lang('admin') . "</a></td></tr>\n";
        }
        tabheader(lang('edit_grouptype'), 'grouptypesedit', '?entry=grouptypes&action=grouptypesedit', '7');
        trcategory(array(lang('id'), lang('delete'), lang('grouptype_name'), lang('deal_mode'), lang('related_currency'), lang('detail'), lang('usergroup')));
        echo $itemstr;
        tabfooter('bgrouptypesedit', lang('modify'));
        tabheader(lang('add_grouptype'), 'grouptypesadd', '?entry=grouptypes&action=grouptypesedit');
        trbasic(lang('grouptype_name'), 'grouptypeadd[cname]');
        trbasic(lang('deal_mode'), 'grouptypeadd[mode]', makeoption($modearr), 'select');
        trbasic(lang('related_cutype'), 'grouptypeadd[crid]', makeoption($cridsarr), 'select');
        tabfooter('bgrouptypesadd', lang('add'));
        a_guide('grouptypesedit');
    } elseif (submitcheck('bgrouptypesadd')) {
        if (empty($grouptypeadd['cname']) || $grouptypeadd['mode'] == 2 && empty($grouptypeadd['crid'])) {
Ejemplo n.º 10
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('static') || amessage('no_apermission');
load_cache('cotypes,channels,currencys,permissions');
load_cache('catalogs,mtpls,cnodes', $sid);
cache_merge($channels, 'channels', $sid);
include_once M_ROOT . "./include/parse.fun.php";
$url_type = 'static';
include 'urlsarr.inc.php';
if ($action == 'archives') {
    $staticmode = empty($staticmode) ? 0 : max(0, intval($staticmode));
    $numperpic = empty($numperpic) ? 20 : min(500, max(20, intval($numperpic)));
    $caid = empty($caid) ? '0' : $caid;
    $chid = empty($chid) ? '0' : $chid;
    if (!isset($ptypestr)) {
        $ptypes = empty($ptypes) ? array() : $ptypes;
        $ptypestr = implode(',', $ptypes);
    } else {
        $ptypes = explode(',', $ptypestr);
    }
    $indays = empty($indays) ? 0 : max(0, intval($indays));
    $outdays = empty($outdays) ? 0 : max(0, intval($outdays));
    $fromsql = "FROM {$tblprefix}archives a";
    $wheresql = "WHERE a.sid={$sid} AND a.checked='1'";
    if (!empty($caid)) {
        if ($cnsql = cnsql(0, cnsonids($caid, $catalogs), 'a.')) {
            $wheresql .= " AND {$cnsql}";
        }
    }
Ejemplo n.º 11
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('sitemap') || amessage('no_apermission');
load_cache('catalogs,cotypes,channels');
if ($action == 'sitemapsedit') {
    $sitemaps = fetch_arr();
    if (!submitcheck('bsitemapsedit')) {
        tabheader(lang('sitepageadmin'), 'sitemapsedit', "?entry=sitemaps&action=sitemapsedit", '8');
        trcategory(array(lang('available'), lang('sitemapcname'), lang('dynamicurl'), lang('xmlurl'), lang('setting'), lang('create')));
        foreach ($sitemaps as $ename => $sitemap) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"sitemapsnew[{$ename}][available]\" value=\"1\"" . (empty($sitemap['available']) ? '' : ' checked') . "></td>\n" . "<td class=\"txtL\">" . mhtmlspecialchars($sitemap['cname']) . "</td>\n" . "<td class=\"txtL\">" . ($cms_abs . $sitemap['d_url']) . "</td>\n" . "<td class=\"txtL\">" . ($cms_abs . $sitemap['xml_url']) . "</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=sitemaps&action=sitemapdetail&ename={$ename}\">" . lang('setting') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=sitemaps&action=sitemapcreate&ename={$ename}\">" . lang('create') . "</a></td></tr>\n";
        }
        tabfooter('bsitemapsedit');
        a_guide('sitemapsedit');
    } else {
        foreach ($sitemaps as $ename => $sitemap) {
            $sitemap['available'] = empty($sitemapsnew[$ename]['available']) ? 0 : 1;
            $db->query("UPDATE {$tblprefix}sitemaps SET available='{$sitemap['available']}' WHERE ename='{$ename}'");
        }
        updatecache('sitemaps');
        amessage('sitmodfin', "?entry=sitemaps&action=sitemapsedit");
    }
} elseif ($action == 'sitemapdetail' && $ename) {
    $sitemap = fetch_one($ename);
    empty($sitemap) && amessage('choosesite', '?entry=sitemaps&action=sitemapsedit');
    if ($ename == 'baidu') {
        $chids = array();
        foreach ($channels as $chid => $channel) {
            $channel['baidu'] && ($chids[$chid] = $channel['cname']);
Ejemplo n.º 12
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('domain') || amessage('no_apermission');
load_cache('domains');
if (empty($action)) {
    $action = 'domainsedit';
}
if ($action == 'domainsedit') {
    if (!submitcheck('bdomainsedit')) {
        tabheader(lang('domain_admin') . "&nbsp; &nbsp; >><a href=\"?entry={$entry}&action=domainadd\" onclick=\"return floatwin('open_domains',this)\">" . lang('add_domain') . '</a>', $actionid . 'arcsedit', "?entry={$entry}&action={$action}");
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'delete', 'chkall')\">" . lang('del'), array(lang('folder'), 'txtL'), array(lang('domain'), 'txtL'), lang('isregular'), lang('order')));
        $query = $db->query("SELECT * FROM {$tblprefix}domains ORDER BY vieworder,id");
        while ($item = $db->fetch_array($query)) {
            $id = $item['id'];
            echo "<tr class=\"txt\">" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$id}]\" value=\"{$id}\"></td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"40\" name=\"domainsnew[{$id}][folder]\" value=\"{$item['folder']}\"></td>\n" . "<td class=\"txtL\"><input type=\"text\" size=\"40\" name=\"domainsnew[{$id}][domain]\" value=\"{$item['domain']}\"></td>\n" . "<td class=\"txtC w60\"><input class=\"checkbox\" type=\"checkbox\" name=\"domainsnew[{$id}][isreg]\" value=\"1\" " . (empty($item['isreg']) ? '' : 'checked') . "></td>\n" . "<td class=\"txtC w40\"><input type=\"text\" size=\"4\" name=\"domainsnew[{$id}][vieworder]\" value=\"{$item['vieworder']}\"></td>\n" . "</tr>\n";
        }
        tabfooter('bdomainsedit');
        a_guide('domainsedit');
    } else {
        if (!empty($delete)) {
            foreach ($delete as $k) {
                $db->query("DELETE FROM {$tblprefix}domains WHERE id='{$k}'");
                unset($domainsnew[$k]);
            }
        }
        if (!empty($domainsnew)) {
            foreach ($domainsnew as $k => $v) {
                $v['folder'] = trim(strip_tags($v['folder']));
                $v['domain'] = trim(strip_tags($v['domain']));
Ejemplo n.º 13
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('cotype') || amessage('no_apermission');
load_cache('cotypes');
if (!$coid || empty($cotypes[$coid])) {
    amessage('choosecotypem');
}
load_cache('channels,grouptypes,permissions,vcps,rprojects,ccfields,acatalogs');
$catalogs =& $acatalogs;
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.fun.php";
include_once M_ROOT . "./include/fields.cls.php";
include_once M_ROOT . "./include/cnode.fun.php";
$cotype = $cotypes[$coid];
$coclasses = read_cache('coclasses', $coid);
$cotypename = $cotype['cname'];
if ($action == 'coclassadd') {
    if (!submitcheck('bcoclassadd')) {
        $pid = empty($pid) ? 0 : $pid;
        if ($pid) {
            $pmsg = read_cache('coclass', $coid, $pid);
        }
        $submitstr = '';
        tabheader(lang('add') . "&nbsp;[{$cotypename}]&nbsp;" . lang('coclass') . "-" . lang('base_setting'), 'coclassadd', '?entry=coclass&action=coclassadd&coid=' . $coid, 2, 1, 1);
        trbasic(lang('cocname'), 'coclassnew[title]');
        $submitstr .= makesubmitstr('coclassnew[title]', 1, 0, 0, 30);
        trbasic(lang('coclass_ename'), '', '<input type="text" value="" name="coclassnew[dirname]" id="coclassnew[dirname]" size="25">&nbsp;&nbsp;<input type="button" value="' . lang('checksubject') . '" onclick="check_repeat(this,\'coclassnew[dirname]\',\'dirname\');">', '');
        $submitstr .= makesubmitstr('coclassnew[dirname]', 1, 'tagtype', 0, 30);
        trbasic(lang('parent_coclass'), 'coclassnew[pid]', makeoption(array('0' => lang('topiccoclass')) + ccidsarr($coid), $pid), 'select');
Ejemplo n.º 14
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('subsite') || amessage('no_apermission');
$url_type = 'subsite';
include 'urlsarr.inc.php';
if ($action == 'subsiteadd') {
    if (!submitcheck('bsubsiteadd')) {
        url_nav(lang('subsitemanager'), $urlsarr, 'add');
        $submitstr = '';
        tabheader(lang('addconsub'), 'subsiteadd', "?entry=subsites&action=subsiteadd", 2, 1, 1);
        trbasic(lang('subsitecname'), 'subsitenew[sitename]', '', 'text');
        trbasic(lang('subsstadir'), 'subsitenew[dirname]', '', 'text');
        trbasic(lang('substempldir'), 'subsitenew[templatedir]', '', 'text', lang('agtemplatedir'));
        $submitstr .= makesubmitstr('subsitenew[sitename]', 1, 0, 0, 80);
        $submitstr .= makesubmitstr('subsitenew[dirname]', 1, 'tagtype', 0, 15);
        $submitstr .= makesubmitstr('subsitenew[templatedir]', 1, 'tagtype', 0, 15);
        tabfooter('bsubsiteadd');
        check_submit_func($submitstr);
        a_guide('subsiteadd');
    } else {
        $subsitenew['sitename'] = trim(strip_tags($subsitenew['sitename']));
        $subsitenew['dirname'] = trim(strip_tags($subsitenew['dirname']));
        $subsitenew['templatedir'] = trim(strip_tags($subsitenew['templatedir']));
        if (!$subsitenew['sitename'] || !$subsitenew['dirname'] || !$subsitenew['templatedir']) {
            amessage('subdatamiss', M_REFERER);
        }
        if (preg_match("/[^a-zA-Z_0-9]+/", $subsitenew['dirname'])) {
            amessage('substadirill', M_REFERER);
        }
Ejemplo n.º 15
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
include_once M_ROOT . "./include/database.fun.php";
aheader();
backallow('database') || amessage('no_apermission');
$tabletype = $db->version() > '4.1' ? 'Engine' : 'Type';
if (!($backupdir = $db->result_one("SELECT value FROM {$tblprefix}mconfigs WHERE varname='backupdir'"))) {
    $backupdir = random(6);
    $db->query("REPLACE INTO {$tblprefix}mconfigs (varname, value) values ('backupdir','{$backupdir}')");
}
$backupdir = 'backup_' . $backupdir;
mmkdir(M_ROOT . './dynamic/' . $backupdir);
$url_type = 'data';
include 'urlsarr.inc.php';
if ($action == 'dbexport') {
    if (!submitcheck('bdbexport')) {
        url_nav(lang('dboperate'), $urlsarr, 'dbbackup');
        $dbtables = array();
        $query = $db->query("SHOW TABLES FROM `{$dbname}`");
        while ($dbtable = $db->fetch_row($query)) {
            //如果有外来表,会出现什么情况?
            $dbtable[0] = preg_replace("/^" . $tblprefix . "(.*?)/s", "\\1", $dbtable[0]);
            $dbtables[] = $dbtable[0];
        }
        $num = 3;
        tabheader(lang('choose_table') . '<input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form)">' . lang('selectall'), 'dbexport', '?entry=database&action=dbexport', 2 * $num);
        $i = 0;
        foreach ($dbtables as $dbtable) {
            if (!($i % $num)) {
                echo "<tr class=\"txt\">";
Ejemplo n.º 16
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('webparam') || amessage('no_apermission');
load_cache('players');
$ptypearr = array('media' => lang('mediaplayer'), 'flash' => lang('flashplayer'));
$url_type = 'mconfig';
include 'urlsarr.inc.php';
url_nav(lang('webparam'), $urlsarr, 'player', 12);
if ($action == 'playersedit') {
    if (!submitcheck('bplayersedit') && !submitcheck('bplayeradd')) {
        tabheader(lang('playermanager'), 'playersedit', '?entry=players&action=playersedit', '7');
        trcategory(array(lang('delete'), lang('available'), lang('playercname'), lang('playertype'), lang('defplayfileformat'), lang('order'), lang('detail')));
        foreach ($players as $plid => $player) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$plid}]\" value=\"{$plid}\"" . (!empty($player['issystem']) ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"playersnew[{$plid}][available]\" value=\"1\"" . (!empty($player['available']) ? ' checked' : '') . "></td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" maxlength=\"30\" name=\"playersnew[{$plid}][cname]\" value=\"{$player['cname']}\"></td>\n" . "<td class=\"txtC w100\">" . $ptypearr[$player['ptype']] . "</td>\n" . "<td class=\"txtC\"><input type=\"text\" size=\"25\" maxlength=\"50\" name=\"playersnew[{$plid}][exts]\" value=\"{$player['exts']}\"></td>\n" . "<td class=\"txtC w50\"><input type=\"text\" size=\"4\" maxlength=\"4\" name=\"playersnew[{$plid}][vieworder]\" value=\"{$player['vieworder']}\"></td>\n" . "<td class=\"txtC w50\"><a href=\"?entry=players&action=playerdetail&plid={$plid}\">" . lang('setting') . "</a></td>\n" . "</tr>\n";
        }
        tabfooter('bplayersedit', lang('modify'));
        tabheader(lang('addplayer'), 'playeradd', '?entry=players&action=playersedit');
        trbasic(lang('playercname'), 'playeradd[cname]');
        trbasic(lang('playertype'), 'playeradd[ptype]', makeoption($ptypearr), 'select');
        trbasic(lang('defplayfileformat'), 'playeradd[exts]');
        tabfooter('bplayeradd', lang('add'));
        a_guide('playersedit');
    } elseif (submitcheck('bplayeradd')) {
        if (!$playeradd['cname']) {
            amessage('inpplanam', '?entry=players&action=playersedit');
        }
        if (preg_match("/[^a-z,A-Z0-9]+/", $playeradd['exts'])) {
            amessage('fileextill', '?entry=players&action=playersedit');
        }
Ejemplo n.º 17
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('pay') || amessage('no_apermission');
load_cache('currencys');
$pmodearr = array('0' => lang('visitingpay'), '1' => lang('onlinepay'), '2' => lang('banktransfer'), '3' => lang('postoffremit'));
$pays = array('alipay' => array(@$cfg_alipay, @$cfg_alipay_keyt, @$cfg_alipay_partnerid), 'tenpay' => array(@$cfg_tenpay, @$cfg_tenpay_keyt));
$poids = array();
foreach (array('alipay' => 2, 'tenpay' => 3) as $k => $v) {
    $cfg_paymode & 1 << $v && !in_array('', $pays[$k]) && ($poids[$k] = lang($k));
}
if ($action == 'paysedit') {
    $page = !empty($page) ? max(1, intval($page)) : 1;
    submitcheck('bfilter') && ($page = 1);
    $viewdetail = empty($viewdetail) ? '' : $viewdetail;
    $pmode = isset($pmode) ? $pmode : '-1';
    $receive = isset($receive) ? $receive : '-1';
    $trans = isset($trans) ? $trans : '-1';
    $poid = empty($poid) ? '' : $poid;
    $mname = empty($mname) ? '' : $mname;
    $indays = empty($indays) ? 0 : max(0, intval($indays));
    $outdays = empty($outdays) ? 0 : max(0, intval($outdays));
    $filterstr = '';
    foreach (array('viewdetail', 'pmode', 'trans', 'receive', 'poid', 'mname', 'indays', 'outdays') as $k) {
        $filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k}));
    }
    $wheresql = '';
    if ($pmode != '-1') {
        $wheresql .= ($wheresql ? " AND " : "") . "pmode='{$pmode}'";
    }
Ejemplo n.º 18
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('mcconfig') || amessage('no_apermission');
load_cache('acatalogs,channels,cotypes,commus,mcommus,matypes,inmurls,ucotypes');
$uclassarr = array('archives' => lang('archive_admin'), 'albums' => lang('openalbum'), 'comments' => lang('commentadmin'), 'replys' => lang('replyadmin'), 'areplys' => lang('areplyadmin'), 'answers' => lang('answeradmin'), 'offers' => lang('offeradmin'), 'arcadd' => lang('issuearchive'), 'mdetail' => lang('memberdetail'), 'farchives' => lang('freeinfo'), 'farcadd' => lang('issue_freeinfo'), 'mcomments' => lang('membercomment'), 'mreplys' => lang('memberreply'), 'amreplys' => lang('memberareply'), 'custom' => lang('customphp'));
if (empty($uclass)) {
    $uclass = '';
}
$uclass && ($param_suffix .= "&uclass={$uclass}");
$url_type = 'mcenter';
include 'urlsarr.inc.php';
if ($action == 'murlsedit') {
    url_nav(lang('mcenterconfig'), $urlsarr, 'mu', 10);
    $murls = fetch_arr($uclass);
    if (!submitcheck('bmurlsedit')) {
        $arr = array();
        $uclassarr = array('' => lang('alltype')) + $uclassarr;
        foreach ($uclassarr as $k => $v) {
            $arr[] = $uclass == $k ? "<b>-{$v}-</b>" : "<a href=\"?entry=murls&action=murlsedit&uclass={$k}\">{$v}</a>";
        }
        echo tab_list($arr, 10, 0);
        tabheader(lang('murl_admin') . "&nbsp; <a href=\"?entry=murls&action=murladd{$param_suffix}\">>>" . lang('add') . "</a>", 'murlsedit', "?entry=murls&action=murlsedit{$param_suffix}", '7');
        trcategory(array(lang('delete'), lang('enable'), lang('cname'), lang('type'), lang('remark'), lang('order'), lang('url'), lang('copy'), lang('edit')));
        foreach ($murls as $muid => $murl) {
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$muid}]\" value=\"{$muid}\"" . ($murl['issys'] ? ' disabled' : '') . "></td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"murlsnew[{$muid}][available]\" value=\"1\"" . ($murl['available'] ? ' checked' : '') . "></td>\n" . "<td class=\"txtC w100\"><input type=\"text\" size=\"10\" name=\"murlsnew[{$muid}][cname]\" value=\"{$murl['cname']}\"></td>\n" . "<td class=\"txtC w80\">" . @$uclassarr[$murl['uclass']] . "</td>\n" . "<td class=\"txtC w160\"><input type=\"text\" size=\"25\" name=\"murlsnew[{$muid}][remark]\" value=\"{$murl['remark']}\"></td>\n" . "<td class=\"txtC w60\"><input type=\"text\" size=\"4\" name=\"murlsnew[{$muid}][vieworder]\" value=\"{$murl['vieworder']}\"></td>\n" . "<td class=\"txtL\">{$murl['url']}</td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murlcopy&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('copy') . "</a></td>\n" . "<td class=\"txtC w30\"><a href=\"?entry=murls&action=murldetail&muid={$muid}\" onclick=\"return floatwin('open_murlsedit',this)\">" . lang('detail') . "</a></td></tr>\n";
        }
        tabfooter('bmurlsedit', lang('modify'));
        a_guide('murlsedit');
    } else {
Ejemplo n.º 19
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('mtrans') || amessage('no_apermission');
load_cache('mchannels,mprojects,mtconfigs,grouptypes,currencys,rprojects,cotypes,acatalogs');
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.cls.php";
if ($action == 'mtransedit') {
    if ($sid && $sid_self) {
        amessage('msiteadmitem');
    }
    $page = !empty($page) ? max(1, intval($page)) : 1;
    submitcheck('bfilter') && ($page = 1);
    $checked = isset($checked) ? $checked : '-1';
    $toid = empty($toid) ? 0 : max(0, intval($toid));
    $fromid = empty($fromid) ? 0 : max(0, intval($fromid));
    $keyword = empty($keyword) ? '' : $keyword;
    $wheresql = '';
    $checked != '-1' && ($wheresql .= ($wheresql ? " AND " : "") . "checked='{$checked}'");
    $toid && ($wheresql .= ($wheresql ? " AND " : "") . "toid='{$toid}'");
    $fromid && ($wheresql .= ($wheresql ? " AND " : "") . "fromid='{$fromid}'");
    $keyword && ($wheresql .= ($wheresql ? " AND " : "") . "mname LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%'");
    $filterstr = '';
    foreach (array('checked', 'toid', 'fromid', 'keyword') as $k) {
        $filterstr .= "&{$k}=" . urlencode(${$k});
    }
    $wheresql = $wheresql ? "WHERE " . $wheresql : "";
    if (!submitcheck('bmtransedit')) {
        echo form_str($actionid . 'utransedit', "?entry=mtrans&action=mtransedit&page={$page}");
        tabheader_e();
Ejemplo n.º 20
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('normal') || amessage('no_apermission');
load_cache('cotypes,channels,currencys,permissions,inurls,acatalogs');
load_cache('catalogs,mtpls', $sid);
include_once M_ROOT . "./include/parse.fun.php";
include_once M_ROOT . "./include/arcedit.cls.php";
include_once M_ROOT . "./include/commu.fun.php";
$niuid = empty($niuid) ? 0 : max(0, intval($niuid));
$aedit = new cls_arcedit();
$aedit->set_aid($aid);
$aedit->basic_data(0);
$channel =& $aedit->channel;
if (!$aedit->aid) {
    amessage('confchoosarchi');
}
if (empty($action)) {
    $iuids = $channel['iuids'] ? explode(',', $channel['iuids']) : array();
    if (empty($iuids)) {
        foreach ($inurls as $k => $v) {
            $v['issys'] && in_array($v['uclass'], array('edit', 'madd', 'content', 'load', 'setalbum', 'vol', 'comment', 'reply', 'offer', 'purchase', 'report', 'answer', 'custom')) && ($iuids[] = $k);
        }
    }
    tabheader(lang('inadmin') . " &nbsp; &nbsp;<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>" . $aedit->archive['subject'] . "</a>");
    foreach ($iuids as $k) {
        if (!empty($inurls[$k])) {
            trbasic(">><a href=\"" . $inurls[$k]['url'] . "{$aid}{$param_suffix}\" onclick=\"return floatwin('open_newinarchive',this)\">" . $inurls[$k]['cname'] . "</a>", '', $inurls[$k]['remark'], '');
        }
    }
Ejemplo n.º 21
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
load_cache('permissions');
include_once M_ROOT . "./include/upload.cls.php";
include_once M_ROOT . "./include/fields.cls.php";
$ismc = empty($ismc) ? 0 : 1;
$mc_suffix = !$ismc ? '' : '&ismc=1';
$mc_str = $ismc ? lang('membercenter1') : lang('abackarea');
$url_type = $ismc ? 'mcenter' : 'backarea';
include 'urlsarr.inc.php';
backallow($ismc ? 'mcconfig' : 'bkconfig') || amessage('no_apermission');
if ($action == 'usualurladd') {
    if (!submitcheck('busualurladd')) {
        url_nav(lang($ismc ? 'mcenterconfig' : 'backareaconfig'), $urlsarr, $ismc ? 'musual' : 'ausual', 10);
        tabheader(lang('addusualurl', $mc_str), 'usualurladd', "?entry=usualurls&action=usualurladd{$mc_suffix}");
        trbasic(lang('usuatitle'), 'usualurlnew[title]', '', 'text');
        trbasic(lang('usualurl'), 'usualurlnew[url]', '', 'btext');
        trbasic(lang('usuorder'), 'usualurlnew[vieworder]', '', 'text');
        trspecial(lang('urlimage'), 'usualurlnew[logo]', '', 'image');
        trbasic(lang('newwin'), 'usualurlnew[newwin]', 0, 'radio');
        if (!$ismc) {
            $sidsarr = array('m' => lang('msite')) + sidsarr(1);
            trbasic(lang('belsitforuse'), '', makecheckbox('sidsnew[]', $sidsarr, array(), 5), '');
            trbasic(lang('inhitatt'), 'usualurlnew[actsid]', 0, 'radio');
        } else {
            trbasic(lang('onclick'), 'usualurlnew[onclick]', '', 'btext');
        }
        trbasic(lang('u_permission_set'), 'usualurlnew[pmid]', makeoption(pmidsarr('menu')), 'select');
        tabfooter('busualurladd');
Ejemplo n.º 22
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('lang') || amessage('no_apermission');
$types = array('email' => lang('Email'), 'pm' => lang('insitepm'));
$url_type = 'langs';
include 'urlsarr.inc.php';
url_nav(lang('lanpackmanage'), $urlsarr, 'email');
if ($action == 'splangsedit') {
    $ftype = empty($ftype) ? '' : $ftype;
    $splangs = fetch_arr($ftype);
    if (!submitcheck('bsplangsedit')) {
        /*		$ftypearr = array('' => lang('nolimittype')) + $types;
        		$filterbox = lang('filtersplang').'&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';
        		$filterbox .= "<select style=\"vertical-align: middle;\" name=\"ftype\" onchange=\"redirect('?entry=splangs&action=splangsedit&ftype=' + this.options[this.selectedIndex].value);\">";
        		foreach($ftypearr as $k => $v){
        			$filterbox .= "<option value=\"$k\"".($ftype == $k ? ' selected' : '').">$v</option>";
        		}
        		$filterbox .= "</select>";
        		tabheader($filterbox);
        		tabfooter();
        */
        tabheader(lang('spltemadmin'), '', '', '7');
        trcategory(array(lang('sn'), lang('splangcname'), lang('type'), lang('detail')));
        $sn = 0;
        foreach ($splangs as $slid => $splang) {
            if (empty($ftype) || $ftype == $splang['type']) {
                $sn++;
                echo "<tr class=\"txt\">" . "<td class=\"txtC w40\">{$sn}</td>\n" . "<td class=\"txtL\">" . $splang['cname'] . "</td>\n" . "<td class=\"txtC w120\">" . $types[$splang['type']] . "</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=splangs&action=splangdetail&slid={$slid}\">" . lang('edit') . "</a></td></tr>\n";
            }
Ejemplo n.º 23
0
<?php

//因为订单不区子站,购物记录也不能区分子站
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('orders') || amessage('no_apermission');
load_cache('channels,currencys');
load_cache('catalogs', $sid);
$url_type = 'order';
include 'urlsarr.inc.php';
if ($action == 'purchasesedit') {
    $page = !empty($page) ? max(1, intval($page)) : 1;
    submitcheck('bfilter') && ($page = 1);
    $caid = empty($caid) ? '0' : $caid;
    $chid = empty($chid) ? '0' : $chid;
    $viewdetail = empty($viewdetail) ? '' : $viewdetail;
    $subject = empty($subject) ? '' : $subject;
    $mname = empty($mname) ? '' : $mname;
    $checked = isset($checked) ? $checked : '-1';
    $indays = empty($indays) ? 0 : max(0, intval($indays));
    $outdays = empty($outdays) ? 0 : max(0, intval($outdays));
    $filterstr = '';
    foreach (array('viewdetail', 'caid', 'chid', 'checked', 'subject', 'mname', 'indays', 'outdays') as $k) {
        $filterstr .= "&{$k}=" . rawurlencode(${$k});
    }
    $wheresql = "WHERE a.sid={$sid}";
    if (!empty($caid)) {
        $caids = cnsonids($caid, $catalogs);
        $wheresql .= " AND a.caid " . multi_str($caids);
    }
    $chid && ($wheresql .= " AND a.chid='{$chid}'");
Ejemplo n.º 24
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('other') || amessage('no_apermission');
load_cache('grouptypes');
$url_type = 'pms';
include 'urlsarr.inc.php';
if ($action == 'batchpms') {
    if (!submitcheck('bbatchpms')) {
        url_nav(lang('insitepm'), $urlsarr, 'batch');
        tabheader(lang('acceptmemberfilter'), 'batchpms', '?entry=pms&action=batchpms');
        $enable_uc || trbasic(lang('pmtoids'), 'pmnew[toids]');
        trbasic(lang('pmtonames'), 'pmnew[tonames]');
        if (!$enable_uc) {
            $limitarr = array('0' => lang('nolimitusergroup'), '1' => lang('handworkchoose'));
            foreach ($grouptypes as $gtid => $grouptype) {
                sourcemodule($grouptype['cname'] . lang('limited'), "pmnew[limit{$gtid}]", $limitarr, '0', '1', "pmnew[ugids{$gtid}][]", ugidsarr($gtid), array());
            }
        }
        tabfooter();
        tabheader(lang('pmcontentset'));
        trbasic(lang('pmtitle'), 'pmnew[title]');
        trbasic(lang('pmcontent'), 'pmnew[content]', '', 'textarea');
        tabfooter('bbatchpms');
        a_guide('pmsbatch');
    } else {
        if (empty($pmnew['title']) || empty($pmnew['content'])) {
            amessage('pmmiss', '?entry=pms&action=batchpms');
        }
        if ($enable_uc) {
Ejemplo n.º 25
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('record') || amessage('no_apermission');
!in_array($action, array('badlogin', 'adminlog', 'currencylog')) && amessage('noexrecord');
$aps = array('badlogin' => 109, 'adminlog' => 110, 'currencylog' => 111);
unset($aps);
$rname = $action;
$yearmonth = date('Ym', $timestamp);
$recorddir = M_ROOT . './dynamic/records/';
$recordfile = $recorddir . $yearmonth . '_' . $rname . '.php';
$records = (array) @file($recordfile);
$filesize = @filesize($recordfile);
if ($filesize < 500000) {
    $dir = opendir($recorddir);
    $length = strlen($rname);
    $maxid = $id = 0;
    while ($file = readdir($dir)) {
        if (in_str($yearmonth . '_' . $rname, $file)) {
            $id = intval(substr($file, $length + 8));
            $id > $maxid && ($maxid = $id);
        }
    }
    closedir($dir);
    if ($maxid) {
        $rnamefile2 = $recorddir . $yearmonth . '_' . $rname . '_' . $maxid . '.php';
    } else {
        $lastyearmonth = date('Ym', $timestamp - 86400 * 28);
        $rnamefile2 = $recorddir . $lastyearmonth . '_' . $rname . '.php';
    }
Ejemplo n.º 26
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
if (!backallow('lang')) {
    amessage('no_apermission');
}
load_cache('alangs');
if (empty($action)) {
    $action = 'alangsedit';
}
$url_type = 'langs';
include 'urlsarr.inc.php';
url_nav(lang('lanpackmanage'), $urlsarr, 'alang');
if ($action == 'alangsedit') {
    $page = !empty($page) ? max(1, intval($page)) : 1;
    submitcheck('bfilter') && ($page = 1);
    $keyword = empty($keyword) ? '' : $keyword;
    $wheresql = '';
    $fromsql = "FROM {$tblprefix}alangs";
    $keyword && ($wheresql = "WHERE ename LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%' OR content LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%'");
    $filterstr = '';
    foreach (array('keyword') as $k) {
        $filterstr .= "&{$k}=" . rawurlencode(stripslashes(${$k}));
    }
    if (!submitcheck('balangsedit')) {
        echo form_str($actionid . 'arcsedit', "?entry=alangs&action=alangsedit&page={$page}");
        tabheader_e();
        echo "<tr><td class=\"txt txtleft\">";
        echo lang('search_keyword') . "&nbsp; <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"10\">&nbsp; ";
        echo strbutton('bfilter', 'filter0');
Ejemplo n.º 27
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
aheader();
backallow('channel') || amessage('no_apermission');
load_cache('initfields,rprojects,commus,cotypes,permissions,inurls,inmurls');
$channels = fetch_arr();
sys_cache('fieldwords');
load_cache('mtpls', $sid);
cache_merge($channels, 'channels', $sid);
include_once M_ROOT . "./include/fields.fun.php";
include_once M_ROOT . "./include/commu.fun.php";
if ($action == 'channeledit') {
    if (!$sid) {
        $url_type = 'channel';
        include 'urlsarr.inc.php';
        url_nav(lang('achannel'), $urlsarr, 'channel');
    }
    if (!submitcheck('bchanneledit')) {
        $cuidsarr = cuidsarr('answer') + cuidsarr('purchase');
        tabheader(lang('channel_manager') . ($sid ? '' : "&nbsp; &nbsp; >><a href=\"?entry=channels&action=channeladd\">" . lang('add') . "</a>"), 'channeledit', "?entry=channels&action=channeledit{$param_suffix}", '10');
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('id'), array(lang('channel_name'), 'txtL'), array(lang('remark'), 'txtL'), lang('available'), lang('order'), lang('ut_commu'), lang('admin'), lang('album'), lang('delete'), lang('copy'), lang('edit')));
        foreach ($channels as $k => $channel) {
            $cuidstr = empty($cuidsarr[$channel['cuid']]) ? '-' : $cuidsarr[$channel['cuid']];
            echo "<tr class=\"txt\">" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$k}]\" value=\"{$k}\">") . "</td>\n" . "<td class=\"txtC w30\">{$k}</td>\n" . "<td class=\"txtL\">" . ($sid ? "{$channel['cname']}" : "<input type=\"text\" size=\"15\" maxlength=\"30\" name=\"channelnew[{$k}][cname]\" value=\"{$channel['cname']}\">") . "</td>\n" . "<td class=\"txtL\">" . ($sid ? "{$channel['remark']}" : "<input type=\"text\" size=\"30\" maxlength=\"30\" name=\"channelnew[{$k}][remark]\" value=\"{$channel['remark']}\">") . "</td>\n" . "<td class=\"txtC w30\"><input class=\"checkbox\" type=\"checkbox\" name=\"channelnew[{$k}][available]\" value=\"1\"" . ($channel['available'] ? " checked" : "") . "></td>\n" . "<td class=\"txtC w40\">" . ($sid ? "{$channel['vieworder']}" : "<input type=\"text\" size=\"4\" maxlength=\"4\" name=\"channelnew[{$k}][vieworder]\" value=\"{$channel['vieworder']}\">") . "</td>\n" . "<td class=\"txtC\">{$cuidstr}</td>\n" . "<td class=\"txtC w30\">" . (empty($channel['userforbidadd']) ? '-' : 'Y') . "</td>\n" . "<td class=\"txtC w30\">" . (empty($channel['isalbum']) ? '-' : 'Y') . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channeldel&chid={$channel['chid']}\">" . lang('delete') . "</a>") . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channelcopy&chid={$channel['chid']}\" onclick=\"return floatwin('open_channeledit',this)\">" . lang('copy') . "</a>") . "</td>\n" . "<td class=\"txtC w30\">" . ($sid ? '-' : "<a href=\"?entry=channels&action=channeldetail&chid={$channel['chid']}{$param_suffix}\" onclick=\"return floatwin('open_channeledit',this)\">" . lang('detail') . "</a>") . "</td>\n" . "</tr>\n";
        }
        if (!$sid) {
            tabfooter();
            tabheader(lang('operate_item') . viewcheck('viewdetail', 0, $actionid . 'tbodyfilter'));
            echo "<tbody id=\"{$actionid}tbodyfilter\" style=\"display:none\">";
            $itemsarr = array();