X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=include%2Fglobals.inc.php.in;h=c5148e43e6239ac8d281b17c43d0d52cba55d803;hb=730a173a333507926e0029d8a96c3a26b55756e4;hp=4fc17fa7b6604591d0ed6316561b0dafd9a39f49;hpb=5f30b30e8b2657ade5c727e98de286386ee002d8;p=platal.git diff --git a/include/globals.inc.php.in b/include/globals.inc.php.in index 4fc17fa..c5148e4 100644 --- a/include/globals.inc.php.in +++ b/include/globals.inc.php.in @@ -43,6 +43,7 @@ class PlatalGlobals /** paths */ public $baseurl; + public $baseurl_http; public $spoolroot; public $locale; @@ -56,7 +57,8 @@ class PlatalGlobals $this->read_config(); if (isset($_SERVER) && isset($_SERVER['SERVER_NAME'])) { $base = empty($_SERVER['HTTPS']) ? 'http://' : 'https://'; - $this->baseurl = @trim($base.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); + $this->baseurl = @trim($base .$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); + $this->baseurl_http = @trim('http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); } $this->setlocale();