$this_dir = substr($strip_slash, "0", $pos) . "/"; chdir($this_dir); if (!defined('SKIP_COMMON_SETTINGS')) { require_once $this_dir . 'inc/config.php'; //Load API require_once $this_dir . 'API/inc.apiLoader.php'; require_once $this_dir . 'inc/class.cms_debug.php'; include_once $this_dir . 'external/phplib/prepend.php'; include_once $this_dir . 'inc/class.user_perms.php'; include_once $this_dir . 'inc/class.values_ct.php'; require_once $this_dir . 'inc/fnc.general.php'; include_once $this_dir . 'inc/class.querybuilder_factory.php'; // Klassen initialisieren $deb = new cms_debug(); $db = new DB_cms(); $val_ct = new values_ct(); // Konfigurationsparameter einlesen $cfg_cms_temp = $val_ct->get_cfg(); $cfg_cms = array_merge($cfg_cms, $cfg_cms_temp); //print_r($cfg_cms); unset($cfg_cms_temp); } // Session starten if (!defined('SF_USE_FRONTEND_SESSION')) { page_open(array('sess' => 'cms_Backend_Session', 'auth' => 'cms_Backend_Auth')); } else { page_open(array('sess' => 'cms_Frontend_Session', 'auth' => 'cms_Frontend_Auth')); } // Sessionvariablen initialisieren $sess->register('sid_client'); $sess->register('sid_lang');
require_once $this_dir . 'API/inc.apiLoader.php'; require_once $this_dir . 'inc/class.cms_debug.php'; include_once 'HTML/Template/IT.php'; include_once $this_dir . 'external/phplib/prepend.php'; include_once $this_dir . 'inc/class.user_perms.php'; include_once $this_dir . 'inc/class.values_ct.php'; require_once $this_dir . 'inc/fnc.general.php'; require_once $this_dir . 'inc/fnc.libary.php'; include_once $this_dir . 'inc/class.querybuilder_factory.php'; include_once $this_dir . 'inc/class.repository.php'; // Klassen initialisieren $deb = new cms_debug(); $db = new DB_cms(); $db_query = new querybuilder_factory(); $db_query = $db_query->get_db($db, 'cms_db', $this_dir . 'inc/'); $val_ct = new values_ct(); // Konfigurationsparameter einlesen $cfg_cms_temp = $val_ct->get_cfg(); $cfg_cms = array_merge($cfg_cms, $cfg_cms_temp); unset($cfg_cms_temp); // dB Optimice if ($cfg_cms['db_optimice_tables']['enable'] && time() > $cfg_cms['db_optimice_tables']['last_run'] + $cfg_cms['db_optimice_tables']['time']) { lib_optimice_tables(); $val_ct->set_value(array('group' => 'cfg', 'client' => 0, 'key' => 'db_optimice_tables', 'key2' => 'last_run', 'value' => time())); } // Template initialisieren $tpl = new HTML_Template_IT($this_dir . 'tpl/' . $cfg_cms['skin'] . '/', true, true); // Session starten page_open(array('sess' => 'cms_Backend_Session', 'auth' => 'cms_Backend_Auth')); // Sessionvariablen initialisieren $sess->register('sid_client');