Beispiel #1
0
 private function init()
 {
     define("BASE_DIRECTORY", str_replace("/", "", dirname($_SERVER['PHP_SELF'])));
     self::$base_directory = BASE_DIRECTORY;
     if (self::$base_directory == '') {
         define("BASE_URL", 'http://' . $_SERVER['HTTP_HOST'] . '/');
     } else {
         define("BASE_URL", 'http://' . $_SERVER['HTTP_HOST'] . '/' . BASE_DIRECTORY . '/');
     }
     self::$base_url = BASE_URL;
     $base = BASE_DIRECTORY;
     if (!empty($base)) {
         self::$base_url = BASE_URL;
     }
     $this->setTimeZone();
     $this->setCurrentMode();
     $this->setSetting();
     define("APP_TITLE", $this->currentMode->app->title);
 }