Skip to content
Snippets Groups Projects
Commit 729adbf1 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

Hotfix for mahtieu

parent 8e71c85d
Branches
No related tags found
No related merge requests found
......@@ -10,16 +10,17 @@ if(isset($_SERVER['HTTPS'])) $http = "https"; else $http = "http";
// Variables permettant la gestion des pages à afficher
$url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
$urlPath = explode("/", $url["path"]);
array_shift($urlPath);
// Si l'url commence par /Cristo -> Dev de Mathieu
if(substr($_SERVER["REQUEST_URI"], 0, 7) == "/Cristo"){
$websiteBaseUrl = $http."://".$_SERVER["HTTP_HOST"]."/Cristo";
array_shift($urlPath);
} else {
$websiteBaseUrl = $http."://".$_SERVER["HTTP_HOST"];
}
$urlPath = explode("/", $url["path"]);
array_shift($urlPath);
if(!empty($urlPath[0])){
match ($urlPath[0]) {
"rechercher" => require_once('pages/rechercher.php'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment