Si l'on va vers https://mondomaine.com/admin, force a aller vers https://fqdn/admin/, Closes #526

This commit is contained in:
Benjamin Sonntag 2006-05-16 18:08:29 +00:00
parent 43e0914b35
commit 6a877e1008
1 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,6 @@ if (ini_get("safe_mode")) {
}
/* PHPLIB inclusions : */
$root="/var/alternc/bureau/";
/* Server Domain Name */
@ -80,6 +79,12 @@ require_once($root."class/db_mysql.php");
require_once($root."class/functions.php");
require_once($root."class/variables.php");
// Redirection si appel à https://(!fqdn)/
if ($_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) {
header("Location: https://$L_FQDN/");
}
// Classe héritée de la classe db de la phplib.
/**
* Class for MySQL management in the bureau