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

18H44 - Préparation à VBcms Connector

parent 90444a61
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,11 @@ if (!empty($_SERVER['HTTP_CLIENT_IP'])) { ...@@ -11,8 +11,11 @@ if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
} }
// Vérifie le type de connexion // Vérifie le type de connexion
if(isset($_SERVER['HTTPS'])) $http = "https"; else $http = "http"; if(isset($_SERVER['HTTPS']) && !isset($http)) $http = "https"; else $http = "http";
// Variables permettant la gestion des pages à afficher // Variables permettant la gestion des pages à afficher
// $ur est déjà défini si l'on utilise VBcms Connector
if(isset($url)){
$url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"); $url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
}
$urlPath = explode("/", $url["path"]); $urlPath = explode("/", $url["path"]);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment