/** * @return array|bool */ private function _make_app_config() { $this->_configure = Sys_Config::get_instance()->get_config_from_filepath($this->_init_file); if ($this->_configure === false) { return false; } $this->_run_mode_setting(); return $this; }
//check if THIS_AREA and/OR THIS_SCRIPT has been set.. if not: exit if (!defined('THIS_AREA') and !defined('THIS_SCRIPT')) { 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';