Beispiel #1
0
function console_nav()
{
    $r = explode(" ", 'system ' . prma('blocks'));
    foreach ($r as $k => $v) {
        if ($v && $v != 'clear') {
            if ($v == 'system') {
                $hlp = hlpbt('blocsystem');
            } elseif ($v == 'menu') {
                $hlp = hlpbt('blocmenu');
            } else {
                $hlp = '';
            }
            $ret .= ljb('txtx', 'SaveBb', 'modules_' . $v . '__', $v) . $hlp;
            $ret .= divc('menu', divd('modules' . $v, console_block($v)));
        }
    }
    //
    $ret .= ljb('txtx', 'SaveBb', 'modules_dev__', 'test') . hlpbt('bloctest') . divc('menu', divd('modulesdev', console_block('dev')));
    return $ret;
}
Beispiel #2
0
function adm_console($d)
{
    req('adminx');
    if ($d && !is_numeric($d) && auth(6)) {
        return divd('modules' . $d, console_block($d, 1));
    }
    $ret .= see_conds_b();
    //conditions
    $ret .= select_mods_m();
    //mods
    if ($d >= 6) {
        $ret .= backup_console() . br();
    }
    $ret .= console_nav() . divc('clear', '');
    return $ret;
}