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

mutliples bugfixes related to connector

parent 90942895
No related branches found
No related tags found
No related merge requests found
<?php
if(isset($bdd)){
$websiteUrl = VBcmsGetSetting("websiteUrl");
}else{
if(isset($_SERVER['HTTPS'])) $http = "https"; else $http = "http";
$url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
$websiteUrl = $url["scheme"]."://".$url["host"]."/";
}
?>
<!DOCTYPE html>
<html lang="fr">
......
<?php
if(isset($bdd)){
$websiteUrl = VBcmsGetSetting("websiteUrl");
}else{
if(isset($_SERVER['HTTPS'])) $http = "https"; else $http = "http";
$url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
$websiteUrl = $url["scheme"]."://".$url["host"]."/";
}
?>
<!DOCTYPE html>
<html lang="fr">
......
<?php
if(isset($bdd)){
$websiteUrl = VBcmsGetSetting("websiteUrl");
}else{
if(isset($_SERVER['HTTPS'])) $http = "https"; else $http = "http";
$url = parse_url("$http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
$websiteUrl = $url["scheme"]."://".$url["host"]."/";
}
?>
<!DOCTYPE html>
<html lang="fr">
......
......@@ -152,6 +152,7 @@ function show404($type){
if ($type=="client") {
// Affiche la page 404 du site client
// A savoir que les pages 404 des modules sont gérées par ces derniers
global $bdd;
include $GLOBALS['vbcmsRootPath'].'/vbcms-core/defaultPages/404.php';
} elseif($type=="admin") {
......
......@@ -15,4 +15,7 @@ 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]");
if(!isset($urlPath)){
$urlPath = explode("/", $url["path"]);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment