fhiiqm/inc/dbconnect.inc.php
changeset 43 70cea8f0e807
parent 40 6f4b105daa24
--- a/fhiiqm/inc/dbconnect.inc.php	Fri Jan 17 08:50:55 2014 +0100
+++ b/fhiiqm/inc/dbconnect.inc.php	Wed Aug 06 09:42:40 2014 +0200
@@ -26,6 +26,7 @@
 	function __construct($dbname='')
 	{
 		include_once("conf.inc.php");
+//		include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/conf.inc.php");
 //		global $config;
 
         if ($dbname == "fhi")
@@ -35,6 +36,13 @@
             $this->_passwort =  ( isset($passwort) && $passwort ) ? $passwort : $confr["passwort"];
             $this->_dbname   =  ( isset($dbname)   && $dbname   ) ? $dbname   : $confr["dbname"];
         }
+        elseif ($dbname == "aeos31")
+        {
+            $this->_server   =  ( isset($server)   && $server   ) ? $server   : $confa["server"];
+            $this->_user     =  ( isset($user)     && $user     ) ? $user     : $confa["user"];
+            $this->_passwort =  ( isset($passwort) && $passwort ) ? $passwort : $confa["passwort"];
+            $this->_dbname   =  ( isset($dbname)   && $dbname   ) ? $dbname   : $confa["dbname"];
+        }
         else
         {
             $this->_server   =  ( isset($server)   && $server   ) ? $server   : $config["server"];