Beispiel #1
0
function mod_link_r($m, $v)
{
    //m§v:picto
    $qb = ses('qb');
    list($va, $vb) = explode(':', $v);
    switch ($m) {
        case 'credits':
            return array('bevel', 'j', 'popup_about', picto('phi2'));
            break;
        case 'admin':
            return array('', '', '/?admin==&log=open', picto('admin')) . ' ';
            break;
        case 'root':
            return array('', 'j', 'popup_desktop___desk', picto('folder2'));
            break;
        case 'desk':
            return array('', 'j', 'desktop_desk', picto('folder'));
            break;
        case 'deskboot':
            return array('', 'SaveJc', desktop_cond('boot', 1), picto('desktop'));
            break;
        case 'desktop':
            return array('', 'SaveJc', 'page_deskbkg;popup_site___desktop_ok__autosize', picto('window'));
            break;
        case 'folder':
            return array('', 'j', 'popup_modpop__3_local|real//////folder2///1:desktop*files_480', picto('folder'));
            break;
        case 'art':
            return array('', 'j', 'popup_popart__3_' . $va . '_3', picto('articles'));
            break;
        case 'search':
            return array('', 'j', 'popup_search', picto('search'));
            break;
        case 'taxonav':
            return array('', 'j', 'popup_plup___taxonav', picto('topo'));
            break;
        case 'rss':
            return array('', '', 'rss' . $qb, $v ? $v : picto('rss'));
            break;
        case 'contact':
            return array('', 'j', 'popup_track___' . $qb, picto('mail'));
            break;
        case 'tablet':
            return array('', 'j', 'socket_tog__self_tablet', picto('gsm'));
            break;
        case 'hub':
            return array('', '', prep_host($m), $v ? $v : prep_host($m), '');
            break;
        case 'apps':
            //apps§14:users
            if ($vb) {
                $r = msql_read('system', 'default_apps' . ($vb == 'default' ? '' : '_' . $vb), $va);
            } elseif ($va) {
                $r = msql_read('', $_SESSION['qb'] . '_apps', $va);
            }
            $r = array($r['button'], $r['type'], $r['process'], $r['param'], $r['option'], '', '', $r['icon'], '', $r['private']);
            return array('', 'j', read_apps($r), $r[7] ? picto($r[7]) : $r[0]);
            break;
        case 'mod':
            list($va, $vb) = explode("-", stripslashes($v));
            return array($_GET['slct_mods'], 'slct_mods', $va, $vb ? picto($vb) : 'Design', '');
            break;
        case 'ajax':
            return array('', 'j', $va, $vb);
            break;
    }
    //user_menus
    if ($vb == 'picto') {
        $v = picto($va);
    } elseif ($vb == 'icon') {
        $v = ico($va);
    }
    //modules
    if (substr($m, 0, 1) == '/') {
        list($action, $lk) = split_one('/', substr($m, 1), 0);
        switch ($action) {
            case 'module':
                return array($_GET['module'], 'module', $lk, $v ? $v : $m, '');
                break;
            case 'plug':
                $v = $vb == 'picto' ? $v : strrchr_b($m, '/');
                return array($_GET['plug'], 'plug', $lk, $v);
                break;
            case 'plugin':
                $v = $vb == 'picto' ? $v : strrchr_b($m, '/');
                return array($_GET['plugin'], 'plugin', $lk, $v);
                break;
            case 'app':
                return array($_GET['app'], 'app', $lk, $v ? $v : $m, '');
                break;
            default:
                return array($_GET[$action], $action, $lk, $v ? $v : $m, '');
                break;
        }
    } elseif ($_SESSION['line'][$m]) {
        return array($_SESSION['frm'], 'cat', $m, $v ? $v : $m, '');
    } elseif (is_numeric($m)) {
        if (!$v) {
            $v = $_SESSION['rqt'][$v][2];
        }
        return array($_GET['read'], htacc('read'), $m, $v, 'art');
    } elseif ($m == 'home' or $m == 'all') {
        return array(strtolower(get('module')), '', $m, $v ? $v : $m, '');
    } else {
        return array('', '', $m, $v ? $v : $m);
    }
}
Beispiel #2
0
function desktop_js($d)
{
    $r = desktop_cond($d);
    if ($d == 'boot' && !$r) {
        $r = array('desktop_desk___desk', 'page_deskbkg');
    }
    if ($r) {
        foreach ($r as $k => $v) {
            $ret .= sj($v);
        }
    }
    //is_array($v)?sj($v[0]):
    return $ret;
}
Beispiel #3
0
function desktop_load($id)
{
    if ($id) {
        $r = desktop_cond($id);
    } else {
        $r = array('desktop_desk___desk', 'page_deskbkg', 'popup_site___desktop_ok__autosize');
    }
    //$r[]='bub_';//del admin
    return implode(';', $r);
}