Esempio n. 1
0
<?php

chdir(dirname(__DIR__));
if (!defined('PHPBEE_VAR_DIR')) {
    if (getenv('PHPBEE_VAR_DIR') !== FALSE) {
        define('PHPBEE_VAR_DIR', getenv('PHPBEE_VAR_DIR'));
    } else {
        define('PHPBEE_VAR_DIR', '/tmp/velotur/var/');
    }
}
require "vendor/phpbee/phpbee/libs/config.lib.php";
$gs_node_id = 1;
$init = new gs_init();
$cfg = gs_config::get_instance();
set_time_limit(300);
$cfg->check_install_key();
$init->init(LOAD_CORE | LOAD_STORAGE | LOAD_TEMPLATES | LOAD_EXTRAS);
gs_eventer::clean_subscribes();
$init->clear_cache();
$init->compile_modules();
$init->load_modules();
# $init->install_modules();
$init->save_handlers();
gs_fkey::update_fkeys();
gs_logger::dump();
echo "install done";
Esempio n. 2
0
    define('DEBUG', getenv('PHPBEE_DEBUG'));
}
if (!defined('PHPBEE_VAR_DIR')) {
    if (getenv('PHPBEE_VAR_DIR') !== FALSE) {
        define('PHPBEE_VAR_DIR', getenv('PHPBEE_VAR_DIR'));
    } else {
        define('PHPBEE_VAR_DIR', '/tmp/velotur/var/');
    }
}
require_once 'vendor/phpbee/phpbee/libs/config.lib.php';
$gs_node_id = 1;
$cfg = gs_config::get_instance();
mlog('1');
$init = new gs_init('auto');
cfg_set('tpl_data_dir', array(cfg('tpl_data_dir'), realpath(cfg('root_dir') . '../html')));
$init->init(LOAD_CORE);
$init->load_modules();
include_once 'classes/base.php';
include_once 'classes/Users_class.php';
include_once 'classes/Guides_class.php';
session_start();
if (stripos($_SERVER['REQUEST_URI'], '/admin') === 0) {
    if (isset($_SESSION['guide'])) {
        $guide = $_SESSION['guide'];
        $tpl = gs_tpl::get_instance();
        $tpl->assign('Guide', get_object_vars($guide));
    } else {
        header('Location: /admin/');
        exit;
    }
}