Example #1
0
File: plug.php Project: philum/cms
$_SESSION['jscode'] = $_SESSION['onload'] = '';
$_SESSION['prog'] = $_SESSION['prog'] ? $_SESSION['prog'] : 'prog/';
$d = $_GET['call'];
$p = $_GET['p'];
$o = $_GET['o'];
if (substr($d, -1) == '/') {
    $d = substr($d, 0, -1);
}
if (substr($p, -1) == '/') {
    $p = substr($p, 0, -1);
}
$dr = reqp($d);
#--render
Head::add('tag', array('title', $d ? $d : 'plugin'));
Head::add('meta', array('http-equiv', 'Content-Type', 'text/html; charset=' . $_SESSION['enc']));
Head::add('rel', array('shortcut icon', uicon('copy_16', 'picol/16', '/')));
//Head::add('code','<base'.atb('href',$host).' />');
Head::add('meta', array('name', 'generator', 'philum_' . $_SESSION['philum']));
Head::add('csslink', '/css/_global.css');
Head::add('csslink', '/css/_pictos.css');
Head::add('csslink', '/css/_admin.css');
Head::add('csslink', '/css/_classic.css');
//if($_SESSION['prmb'][5])$nod=$_SESSION['qb'].'_auto';
//else $nod=$_SESSION['qb'].'_design_'.$_SESSION['prmd'];
//Head::add('csslink','/css/'.$nod.'.css');
Head::add('jslink', '/progb/ajx.js');
Head::add('jslink', '/progb/utils.js');
Head::add('jscode', 'cutat="' . $_SESSION['jbuffer'] . '"; flow="0";');
Head::add('jscode', $_SESSION['jscode']);
if ($d) {
    $content = load_plug($d, $p, $o);
Example #2
0
File: sys.php Project: philum/cms
    $out = build_blocks();
}
//admin
if (ses('dev')) {
    $_POST['popadm']['chrono'] = btn('small', round(mtime() - $stime, 3));
}
$madmin = popadmin();
//meta
$host = host();
$meta['favicon'] = 'favicon.ico';
if ($_GET["admin"]) {
    $meta["title"] = $_GET['admin'];
    $meta['favicon'] = uicon('screen_4to3_16', 'picol/16');
} elseif ($_GET["msql"]) {
    $meta["title"] = $_GET['msql'];
    $meta['favicon'] = uicon('database_16', 'picol/16');
} elseif ($_SESSION["read"]) {
    $meta["title"] = $_SESSION["raed"];
    $meta["descript"] = $_SESSION["descript"];
    $meta["img"] = $host . '/imgc/' . $_SESSION["imgrel"];
} else {
    $meta["title"] = $_SESSION['mn'][$_SESSION['qb']];
    $meta["descript"] = $_SESSION['qbin']["dscrp"];
}
//$meta["img"]=host().'/img/ban_'.$_SESSION['qb'].'.jpg';
$cst = $_SESSION['desgn'] ? '?' . randid() : '';
if ($_SESSION['mobile'] && rstr(63)) {
    $_SESSION['negcss'] = 1;
}
$meta['css'] = define_design();
verif_update();
Example #3
0
File: boot.php Project: philum/cms
function favicon()
{
    $f = 'favicon.ico';
    if ($_GET['admin']) {
        $fa = 'screen_4to3_16';
    } elseif ($_GET['msql']) {
        $fa = 'database_16';
    } elseif ($p = $_GET['plug']) {
        $fa = 'copy_16';
    } elseif (is_file($f)) {
        return $f;
    } else {
        $fa = 'home_16';
    }
    return uicon($fa, 'picol/16');
}
Example #4
0
File: lib.php Project: philum/cms
function icon($v, $t = '', $h = '', $jc = '')
{
    list($d, $p) = explode('ยง', $v);
    $f = uicon($d, $p);
    return is_file($f) ? imgico($jc . $f, $t, $h) : $t;
}