Add ports in routing module

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1499 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-06-27 09:21:04 +00:00
parent 40b9ac1015
commit fef26c83a6

View File

@@ -33,7 +33,7 @@ class route
$this->baseURL = dirname ($_SERVER["SCRIPT_NAME"]); $this->baseURL = dirname ($_SERVER["SCRIPT_NAME"]);
if (isset ($_SERVER["SERVER_NAME"])) if (isset ($_SERVER["SERVER_NAME"]))
$this->baseURL = "//".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"] $this->baseURL = "//".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]
.$this->baseURL; .$this->baseURL;
if (isset ($_SERVER["HTTPS"])) if (isset ($_SERVER["HTTPS"]))
$this->baseURL = "https:".$this->baseURL; $this->baseURL = "https:".$this->baseURL;
else else