Example #1
0
File: bubs.php Project: philum/cms
function bub_menu($d)
{
    //root,action,type,button,icon,auth
    //if($_SESSION['mnbb'][$b])return $_SESSION['mnbb'][$b];
    $r = msql_read('users', ses('qb') . '_menubub_1', '', 1);
    if (!$_SESSION['line']) {
        req('boot');
        define_cats_rqt();
    }
    if ($r) {
        foreach ($r as $k => $v) {
            $bt = $v[3] ? $v[3] : $v[1];
            if ($v[2] == 'plug') {
                $ret[] = array($v[3], $v[2], $v[1], '', '', '', $v[0], $v[4], '', $v[5]);
            } elseif ($v[2] == 'module') {
                $ret[] = array($v[3], 'module', $v[1], '', '', '', $v[0], '', '', $v[5]);
            } elseif ($v[2] == 'ajax') {
                $ret[] = array($v[3], $v[2], $v[1], '', '', '', $v[0], $v[4], '', $v[5]);
            } elseif ($v[2]) {
                $ret[] = array($v[3], $v[2], '', $v[1], '', '', $v[0], $v[4], '', $v[5]);
            } else {
                if ($_SESSION['line'][$v[1]]) {
                    $lk = htac('cat') . $v[1];
                } elseif (is_numeric($v[1])) {
                    $lk = '/' . $v[1];
                } else {
                    $lk = $v[1];
                }
                $ret[] = array($v[3], 'link', '', $lk, '', '', $v[0], $v[4], '', $v[5]);
            }
        }
    }
    //$_SESSION['mnbb'][$b]=$ret;
    return $ret;
}
Example #2
0
File: ajax.php Project: philum/cms
<?php

//philum_ajax_hangar
session_start();
error_report();
$_SESSION['onload'] = '';
if (!$_SESSION['stime']) {
    req('boot,art,spe');
    master_params('params/_' . $db, $qd, $aqb, $subd);
    define_hubs();
    define_qb();
    define_config();
    time_system($cache);
    cache_arts();
    define_cats_rqt();
    define_condition();
    define_clr();
}
if (!$_SESSION['picto']) {
    $_SESSION['picto'] = msql_read('system', 'edition_pictos', '', 1);
}
$res = $_GET['res'];
if (substr($res, -1) == '_') {
    $res = substr($res, 0, -1);
}
list($n, $id, $va, $opt, $optb) = ajxr($_GET['callj']);
$sz = $_GET['sz'];
$pp = $_GET['popup'];
$ar = array('plug' => 1, 'plup' => 1, 'plugin' => 1, 'plupin' => 1, 'titsav' => 1, 'popbub' => 1, 'call' => 1, 'callp' => 1);
if (!$ar[$n]) {
    require_once 'prog' . $b . '/ajxf.php';
Example #3
0
File: boot.php Project: philum/cms
function reboot()
{
    require 'params/_connectx.php';
    req('art,spe,pop');
    master_params('params/_' . $db, $qd, $aqb, $subd);
    $_SESSION['dayx'] = time();
    define_hubs();
    define_qb();
    define_config();
    eye_iq();
    log_mods();
    define_auth();
    //if($_SESSION['rstr'][22])block_crawls();
    time_system('ok');
    cache_arts();
    define_cats_rqt();
    define_condition();
    define_clr();
}