Example #1
0
    get_lib("menu");
    $elements = file(GLISS_ADDIR . 'protocol/menu.gl.php');
    foreach ($elements as $elmenu) {
        $mass = explode("->", $elmenu);
        $array[] = array(intval($mass[0]), trim($mass[1]), trim($mass[2]), intval($mass[3]));
    }
    if ($array) {
        $menu = make_hierarchy($array);
    }
}
//Загрузка шаблона
$design = @(!$use_design) ? 'design' : $use_design;
$templ = @(!$use_template) ? $global['templ'] : $use_template;
@define('CONTENT', $content);
@define('TITLE', $title);
@define('GENERATE', sprintf("%.3f", RECEIVE_TIME() - $times));
@define('MENU', $menu);
if (isset($_SESSION['gliss_templ'])) {
    $templ = $_SESSION['gliss_templ'];
}
if (LEVEL) {
    $interfase = 'interface/' . $templ . '/';
    define('TEMPL_PATH', GLISS_HOST . $interfase);
    define('TEMPL_DIR', GLISS_DIR . $interfase);
    $template = TEMPL_DIR . $design . '.php';
}
function get()
{
    list($name, $param1, $param2) = func_get_args();
    switch ($name) {
        case 'path':
Example #2
0
<?php

session_start();
header("Content-Type: text/html; charset=utf-8");
$title = 'Настройка Gliss engine';
define(PROTECT, 1);
define(GLISS_DIR, str_replace('index.php', '', $_SERVER['SCRIPT_FILENAME']));
require GLISS_DIR . 'engine.php';
$global = GET_ENV();
$times = RECEIVE_TIME();
$GET = get_url_array();
$_LOADER['follow'] = GLISS_DIR . 'adjustment/gliss_admin.php';
$_LOADER['cmps'] = @file($_LOADER['follow']);
if ($_LOADER['cmps']) {
    unset($_LOADER['cmps'][0]);
    $_LOADER['count'] = count($_LOADER['cmps']);
    while ($_LOADER['cmp'] < $_LOADER['count']) {
        $_LOADER['cmp']++;
        $_LOADER['cmp_path'] = GLISS_DIR . 'cmpnnt/' . trim($_LOADER['cmps'][$_LOADER['cmp']]);
        if (is_file($_LOADER['cmp_path'])) {
            require_once $_LOADER['cmp_path'];
        } else {
            die('<b>No Found</b> "' . $_LOADER['cmp_path'] . '"');
        }
    }
} else {
    die('<b>No Found</b> "' . $_LOADER['follow'] . '"');
}