}*/ $prio[] = $_ENV["basepath"] . "/app/code/helper/default/" . $class_name . ".php"; $prio[] = $_ENV["basepath"] . "/app/code/classes/class." . $class_name . ".php"; foreach ($prio as $file) { if (file_exists($file)) { require $file; return true; } } if (isset($_GET["debug"])) { throw new Exception("Klasse " . $class_name . " kann nicht gefunden werden!"); } return false; }); srand(); SiteConfig::load(0); Session::init(); $config = SiteConfig::get(0); if (!isset($_ENV["baseurl"])) { $_ENV["baseurl"] = $config["baseurl"]; } if (!isset($_ENV["baseurlpath"])) { $_ENV["baseurlpath"] = $config["baseurlpath"]; } //Bugvermeidung $_REQUEST = array_merge($_GET, $_POST); i18n::init(isset($_GET["_lang"]) ? $_GET["_lang"] : (isset($config["language"]) ? $config["language"] : "de_DE")); function get_path($file) { return str_replace("//", "/", $_ENV["baseurlpath"] . $file); }