From 05e71c79c93801ab6a8262fbd93d1af3d5bdace4 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sun, 19 Aug 2007 00:31:55 -0400
Subject: [PATCH] * Made login/index class php5 * Also replaces " with ' 

---
 install/lib/mysql.lib.php |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/install/lib/mysql.lib.php b/install/lib/mysql.lib.php
index 5cf4f0a..28faa6b 100644
--- a/install/lib/mysql.lib.php
+++ b/install/lib/mysql.lib.php
@@ -48,10 +48,10 @@
 		{
 			
 			global $conf;
-			$this->dbHost = $conf["mysql_server_host"];
-			//$this->dbName = $conf["mysql_server_database"];
-			$this->dbUser = $conf["mysql_server_admin_user"];
-			$this->dbPass = $conf["mysql_server_admin_password"];
+			$this->dbHost = $conf["mysql"]["host"];
+			//$this->dbName = $conf["mysql"]["database"];
+			$this->dbUser = $conf["mysql"]["admin_user"];
+			$this->dbPass = $conf["mysql"]["admin_password"];
 			//$this->connect();
 		}
 
@@ -73,6 +73,7 @@
 			if($this->linkId == 0)
 			{
 				$this->linkId = mysql_connect($this->dbHost, $this->dbUser, $this->dbPass);
+
 				if(!$this->linkId)
 				{
 					$this->updateError('DB::connect()<br />mysql_connect');
@@ -495,4 +496,4 @@
 		
 	}
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1