public function __construct() { //start up system $this->objTemplates = class_carrier::getInstance()->getObjTemplate(); $this->objLang = class_carrier::getInstance()->getObjLang(); //init session-support $this->objSession = class_carrier::getInstance()->getObjSession(); //set a different language? if (issetGet("language")) { if (in_array(getGet("language"), explode(",", class_carrier::getInstance()->getObjConfig()->getConfig("adminlangs")))) { $this->objLang->setStrTextLanguage(getGet("language")); //and save to a cookie $objCookie = new class_cookie(); $objCookie->setCookie("adminlanguage", getGet("language")); } } else { //init correct text-file handling as in admins $this->objLang->setStrTextLanguage($this->objSession->getAdminLanguage(true)); } $this->STR_ORIG_CONFIG_FILE = class_resourceloader::getInstance()->getCorePathForModule("module_system") . "/module_system/system/config/config.php"; $this->STR_PROJECT_CONFIG_FILE = _realpath_ . "/project/system/config/config.php"; }