Пример #1
0
function menu_h_g($d)
{
    $p = explode("|", $d);
    if ($p[0] == "append") {
        $r = collect_hierarchie_b($p[1]);
    } elseif ($p[0] == "nocat") {
        $r = collect_hierarchie_c($p[1], '');
    } elseif ($p[0] == "collect") {
        $r = collect_hierarchie($p[1]);
    }
    if ($r) {
        foreach ($r as $k => $v) {
            $ret .= $k . "\n" . supermenu($v);
        }
    }
    return $ret;
}
Пример #2
0
Файл: sys.php Проект: philum/cms
#environment
$cache = time_system($cache);
//time_system
define_s('lang', 'all');
//cache_system
if (!isset($_SESSION['rqt']) or $cache) {
    cache_arts();
}
if (!is_array($_SESSION['line']) or $cache) {
    define_cats_rqt();
}
define_frm();
//frm
//hierarchics
if ((!isset($_SESSION['superline']) or $cache) && is_array($_SESSION['line'])) {
    $_SESSION['superline'] = collect_hierarchie('');
}
$_SESSION["page"] = $_GET['page'] ? $_GET['page'] : 1;
//page
if ($_GET['plug']) {
    $_SESSION['frm'] = '';
}
//reset_frm
//Home
if (!$_SESSION['frm'] && !$_GET) {
    $_GET['module'] = "Home";
}
//condition
if (!$_GET['admin']) {
    define_condition();
}