5 $user = getenv("USER");
6 if ($user == "") putenv("USER=gui");
9 $path = preg_replace("/verleihnix.*/", "verleihnix", __FILE__);
10 set_include_path($path . PATH_SEPARATOR . get_include_path());
11 require_once 'util/Logger.php';
12 require_once 'util/Config.php';
13 require_once 'GenericAdmin/gui/control/GenadControl.php';
15 // load configuration + class loader
16 include 'gui/ConfigurationData.php';
17 Config::setConfiguration($configurationData);
20 $logger = Logger::getInstance();
21 $requestMethod = $_SERVER["REQUEST_METHOD"];
22 $logger->log(__FILE__, $requestMethod);
23 $logger->log(__FILE__, "GET-Variabeles:");
24 while ( list($key, $value) = each($_GET) ) {
25 $logger->log(__FILE__, $key . " : " . $value);;
27 $logger->log(__FILE__, "POST-Variabeles:");
28 while ( list($key, $value) = each($_POST) ) {
29 $logger->log(__FILE__, $key . " : " . $value);;
31 $logger->log(__FILE__,"Redirect-URL:".$_SERVER["REDIRECT_URL"]);
33 // call implementation
35 $control = new GenadControl();
38 catch (Exception $e) {
39 $logger->logException(__FILE__, $e);
40 echo "<html><body>Error occurred!</body></html>";