register(); include("eproosystem.php"); if(!is_file(dirname(dirname($_SERVER['SCRIPT_FILENAME'])).DIRECTORY_SEPARATOR."conf/user.inc.php")) header('Location: ./setup/setup.php'); else { include(dirname(dirname($_SERVER['SCRIPT_FILENAME'])).DIRECTORY_SEPARATOR."/conf/main.conf.php"); try { $config = ConfigLoader::load(); } catch (MultiDbConfigNotFoundException $exception) { setcookie('DBSELECTED','',time()-86400); throw $exception; } $app = new erpooSystem($config); // layer 2 -> darfst du ueberhaupt? include("../phpwf/class.session.php"); $session = new Session(); $session->Check($app); // layer 3 -> nur noch abspielen include("../phpwf/class.player.php"); $player = new Player(); $player->Run($session); } if(isset($app->DB) && isset($app->DB->connection) && $app->DB->connection)$app->DB->Close();