From 0c88edaf0ff3b1b9457103fa1f2ad73ec567cbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Thu, 26 Jun 2014 09:48:22 +0000 Subject: [PATCH] restored the db_system extends db_sql for backward compatibility, $db remains a db_sql() --- bureau/class/config.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/bureau/class/config.php b/bureau/class/config.php index bc71e0ca..833952a7 100644 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -127,6 +127,31 @@ if (isset($_SERVER["HTTPS"]) && $_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 + * + * This class heriting from the db class of the phplib manages + * the connection to the MySQL database. + */ + +class DB_system extends DB_Sql { + var $Host = null; + var $Database = null; + var $User = null; + var $Password = null; + + /** + * Creator + */ + function DB_system() { + global $L_MYSQL_HOST,$L_MYSQL_DATABASE,$L_MYSQL_LOGIN,$L_MYSQL_PWD; + $this->Host = $L_MYSQL_HOST; + $this->Database = $L_MYSQL_DATABASE; + $this->User = $L_MYSQL_LOGIN; + $this->Password = $L_MYSQL_PWD; + } +} $db= new DB_Sql($L_MYSQL_DATABASE, $L_MYSQL_HOST, $L_MYSQL_LOGIN, $L_MYSQL_PWD);