From dc5ad969b03ca24a9ec411ac2e3a3a12a2e20912 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 26 Apr 2006 14:50:29 +0000 Subject: [PATCH] bug db_query corrected --- bureau/class/config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bureau/class/config.php b/bureau/class/config.php index 6c711708..21be9594 100644 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -78,13 +78,6 @@ require_once($root."class/db_mysql.php"); require_once($root."class/functions.php"); require_once($root."class/variables.php"); -if (!$_SERVER["HTTPS"]) { - $conf=variable_init(); - if ($conf["force_https"]) { - header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); - } -} - // Classe héritée de la classe db de la phplib. /** * Class for MySQL management in the bureau @@ -113,6 +106,13 @@ $db= new DB_system(); // Current User ID = the user whose commands are made on behalf of. $cuid=0; +if (!$_SERVER["HTTPS"]) { + $conf=variable_init(); + if ($conf["force_https"]) { + header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); + } +} + $classes=array(); /* CLASSES PHP4 : automatic include : */ $c=opendir($root."class/");