From f5b0ca26b34388a108f8fe1c77f3ef1c99829bfa Mon Sep 17 00:00:00 2001 From: nveid <nveid@ispconfig3> Date: Wed, 07 Dec 2011 03:38:52 -0500 Subject: [PATCH] Converted all mysql_ calls to OO based mysqli calls. Also removed the calls to the db closeConn calls in favor of destryong the connections on the class __destruct() 's.. --- server/lib/app.inc.php | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php old mode 100644 new mode 100755 index a1d765d..270ed4b --- a/server/lib/app.inc.php +++ b/server/lib/app.inc.php @@ -40,11 +40,6 @@ if($conf['start_db'] == true) { $this->load('db_'.$conf['db_type']); $this->db = new db; - if($this->db->linkId) $this->db->closeConn(); - $this->db->dbHost = $conf['db_host']; - $this->db->dbName = $conf['db_database']; - $this->db->dbUser = $conf['db_user']; - $this->db->dbPass = $conf['db_password']; /* Initialize the connection to the master DB, @@ -53,11 +48,6 @@ if($conf['dbmaster_host'] != '' && $conf['dbmaster_host'] != $conf['db_host']) { $this->dbmaster = new db; - if($this->dbmaster->linkId) $this->dbmaster->closeConn(); - $this->dbmaster->dbHost = $conf['dbmaster_host']; - $this->dbmaster->dbName = $conf['dbmaster_database']; - $this->dbmaster->dbUser = $conf['dbmaster_user']; - $this->dbmaster->dbPass = $conf['dbmaster_password']; } else { $this->dbmaster = $this->db; } -- Gitblit v1.9.1