Пример #1
0
    echo 'THIS_AREA oder THIS_SCRIPT sind nicht gesetzt. Es kann nicht fortgefahren werden.';
    exit;
}
//fetches trys of manipulations and exit;
if (isset($_REQUEST['GLOBALS']) or isset($_FILES['GLOBALS'])) {
    echo 'Ein Manipulationsversuch durch das Einschleusen von Variablen wurde verhindert!';
    exit;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* CONFIG */
require_once INC . 'class_config.php';
//load the core-variables
$sys = new Sys_Config();
$sys =& $sys;
//initialize the config
$sys->load_config();
if (!empty($sys->config['Path']['fullpath'])) {
    define('DIR', $sys->config['Path']['fullpath']);
} else {
    define('DIR', CWD);
}
define('DATASTORAGE_DIR', DIR . '/' . $sys->config['Path']['datastoragedir']);
define('TPL_DIR', DIR . '/' . $sys->config['Path']['templatedir']);
define('TPL_PLUGIN_DIR', DIR . '/' . $sys->config['Path']['templateplugindir']);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* DATABASE */
require_once INC . 'class_database_mysql.php';
//set $db to an new Sys_Database-Object
$db = new Sys_Database_MySQL($sys);
$sys->db =& $db;