public static function set_name_base($base) { self::$base = $base; }
protected function setBase() { if (!isset(Config::$base)) { $path = str_replace("index.php", "", $_SERVER["PHP_SELF"]); Config::$base = "http" . (isset($_SERVER["HTTPS"]) ? "s" : "") . "://" . $_SERVER["HTTP_HOST"] . $path; } }