示例#1
0
文件: boot.php 项目: philum/cms
function select_mods($d = '')
{
    if ($d) {
        $_SESSION['prmb1'] = prmb(1);
        $_SESSION['prmb'][1] = $d;
    } elseif ($_SESSION['prmb1']) {
        $_SESSION['prmb'][1] = $_SESSION['prmb1'];
    }
    reset_mjx();
    $_SESSION['modsnod'] = $_SESSION['qb'] . '_mods_' . prmb(1);
    define_mods('');
    define_condition();
}
示例#2
0
文件: adminx.php 项目: philum/cms
function backup_console()
{
    //(421)
    $base = 'msql/users/';
    $nod = $_SESSION['modsnod'];
    $f = $base . $nod . '_sav.php';
    $goto = '/?admin=console';
    if ($d = $_GET["newfrom_mods"]) {
        newmodfrom($d);
        select_mods($d);
    }
    if ($_GET["adopt_mods"]) {
        foreach ($_SESSION['prmb'] as $k => $v) {
            $vaue .= $v . '#';
        }
        update("qdu", "config", $vaue, "name", ses('qb'));
    }
    if ($_GET["backup_mods"]) {
        copy($base . $nod . '.php', $f);
    }
    if ($_GET["mk_default"]) {
        msq_copy('users', $nod, 'system', 'default_mods');
        msq_copy('users', $nod, 'users', 'public_mods_1');
        alert('system/default_mods;public_mods_1');
    }
    if ($_GET["restore_mods"]) {
        copy($f, $base . $nod . '.php');
        define_mods('');
        define_condition();
    }
    if ($_GET["refresh_mods"]) {
        define_mods('');
        define_condition();
    }
    if ($_GET["make_copy"]) {
        msq_copy('users', ses('qb') . '_mods_' . ses('prmb1'), 'users', $nod);
        define_mods('');
        define_condition();
    }
    if ($_GET["default_mods"]) {
        msq_copy('system', 'default_mods', 'users', $nod);
        define_mods('');
        define_condition();
    }
    $rt = array('backup' => 'save', 'restore' => 'left', 'refresh' => 'reload', 'copy' => 'copy', 'default' => 'file', 'mkdef' => 'export');
    foreach ($rt as $k => $v) {
        $rt[$k] = picto($v);
    }
    $ret = lkc('txtx" title="' . nms(94), $goto . '&backup_mods==', $rt['backup']);
    if (is_file($f)) {
        $ret .= lkc('txtx" title="' . nms(95), $goto . '&restore_mods==', $rt['restore']);
    }
    $ret .= lkc('txtx" title="' . nms(97), $goto . '&refresh_mods==', $rt['refresh']);
    if ($p1 = ses('prmb1')) {
        $ret .= lkc('txtx" title="' . nms(132) . ':' . $p1, $goto . '&make_copy==', $rt['copy']);
    }
    $ret .= lkc('txtx" title="' . nms(96), $goto . '&default_mods==', $rt['default']);
    if (auth(6)) {
        $ret .= lkc('txtx" title="' . nms(113), $goto . '&mk_default==', $rt['mkdef']) . ' ';
    }
    $ret .= hlpbt('console') . ' ';
    $ret .= msqlink('', ses('qb') . '_mods_' . prmb(1));
    $ret .= msqlink('system', 'admin_modules');
    return $ret . br();
}
示例#3
0
文件: sys.php 项目: philum/cms
    select_mods($_GET['slct_mods']);
}
#Design
if (!$_SESSION['clrs'][$_SESSION['prmd']] or $cache) {
    define_clr();
}
if ($_GET['desgn']) {
    $_SESSION['desgn'] = $_GET['desgn'];
}
if ($_GET['admin'] == 'css' && !$_SESSION['desgn']) {
    $_SESSION['desgn'] = $_SESSION['prmd'];
}
if ($_GET['exit_design']) {
    $_SESSION['desgn'] = '';
    $_SESSION['clrset'] = '';
    define_mods('');
    define_condition();
    $_POST['popadm']['design'] = '';
}
if ($_SESSION['desgn']) {
    if (!$_GET['admin']) {
        $wth = ' watch:' . $_SESSION['prmd'];
    }
    $_POST['popadm']['design'] = lkc('txtyl', '/?exit_design==', 'design:' . $_SESSION['desgn'] . $wth) . ' ';
}
#Eye
if ($_SESSION['stsys'] != 'no') {
    eye();
}
#structure
if ($_GET['admin']) {