diff --git a/admin/index.php b/admin/index.php index 64fcac0..34e9202 100644 --- a/admin/index.php +++ b/admin/index.php @@ -134,8 +134,8 @@ while($dsondage = $sondage->FetchNextObject(false)) { } echo'
Alexis Kauffmann (contact)
+Alexis Kauffmann (contact)
Les propos tenus sur ce site ne représentent que et uniquement l’opinion de leur auteur, et n’engagent pas les sociétés, entreprises ou collectifs auxquels il contribue ou dont il peut être associé ou employé.
diff --git a/bandeaux.php b/bandeaux.php index 88bac56..adff57d 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -81,7 +81,7 @@ function logo () #le bandeau principal function bandeau_tete() { - echo ''."\n"; + echo ''."\n"; } diff --git a/fonctions.php b/fonctions.php index 54a0ff5..752b096 100644 --- a/fonctions.php +++ b/fonctions.php @@ -57,7 +57,12 @@ function connexion_base() function get_server_name() { $scheme = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? 'https' : 'http'; - $url = sprintf("%s://%s%s", $scheme, STUDS_URL, dirname($_SERVER["SCRIPT_NAME"])); + + $get = explode('/', dirname($_SERVER["SCRIPT_NAME"])); + $folder = explode('/', str_replace('\\', '/', dirname(__FILE__))); + $communs = array_intersect($get, $folder); + $base = implode('/', $communs); + $url = sprintf("%s://%s%s", $scheme, STUDS_URL, $base); if (!preg_match("|/$|", $url)) { $url = $url."/";