init(); // Systemzugriff über PHP $SYSTEM = new System(); if(defined("_INDEX_NAME")) $SYSTEM->dataSet("indexName",_INDEX_NAME); else $SYSTEM->dataSet("indexName","index.php"); $CO->objectAdd($SYSTEM,"SYSTEM"); // Session Klasse wird initialisiert $SESSION = new Session(); $SESSION->restart(); $CO->objectAdd($SESSION,"SESSION"); // Kontrolliert alle Interaktionen zwischen Client und Server $INTERACTIVE = new Interactive(_MOD_REWRITE); $INTERACTIVE->registry("registry",1); $CO->objectAdd($INTERACTIVE,"INTERACTIVE"); // Caching Modul $TPLCACHE = new TplCache(0); $CO->objectAdd($TPLCACHE,"TPLCACHE"); // Menüstruktur wird erzeugt $MENU = new Menu($INTERACTIVE->registry["path"]."data/menu_de.xml"); $MENU->doMain(); $CO->objectAdd($MENU,"MENU"); // Pfade werden für Webchise angepasst $SYSTEM = $CO->objectGet("SYSTEM"); define("_INCLUDE_TPL_PATH",_INCLUDE_PATH."layouts/cosmox_".$INTERACTIVE->registry["layout"]."/"); $SYSTEM->paths["norm"]["active"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["active"]; $SYSTEM->paths["norm"]["data"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["data"]; $SYSTEM->paths["norm"]["dataaccount"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["dataaccount"]; $SYSTEM->paths["norm"]["content"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["content"]; $SYSTEM->paths["norm"]["inside"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["inside"]; $SYSTEM->paths["norm"]["tplcache"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["tplcache"]; $SYSTEM->paths["norm"]["images"] = $INTERACTIVE->registry["path"] . $SYSTEM->paths["norm"]["images"]; $SYSTEM->path = $SYSTEM->paths["norm"]; $CO->objectAdd($SYSTEM,"SYSTEM"); // Rechte-Check $PERM = new PermManager(); $access = $PERM->checkSite(); $CO->objectAdd($PERM,"PERM"); // Site wird generiert if($access) $TPL = new Tpl(); else $TPL = new Tpl("main","login"); $CO->objectAdd($TPL,"TPL"); $TPL->dataOut("site"); $CO->end(); ?>