From a1c925f9c924f55f9dc39f840a9e23a62d4b1af1 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Tue, 30 Oct 2012 15:38:12 -0400
Subject: [PATCH] Implemented:  - Show status messages to clients as long as the datalog is not processed (changes pending...)  - missing:    - template code in templates other than database list    - language entries other than web_database, web_domain, web_database_user     

---
 interface/lib/classes/db_firebird.inc.php |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/interface/lib/classes/db_firebird.inc.php b/interface/lib/classes/db_firebird.inc.php
index d358b00..883e7ba 100644
--- a/interface/lib/classes/db_firebird.inc.php
+++ b/interface/lib/classes/db_firebird.inc.php
@@ -45,7 +45,7 @@
 	var $transID;
 
 	// constructor
-	function db()
+	function __construct()
 	{
 		
 		global $conf;
@@ -55,6 +55,9 @@
 		$this->dbPass = $conf["db_password"];
 		$this->connect();
 	}
+	function __destruct() {
+		$this->closeConn();
+        }
 
 	// error handler
 	function updateError($location)
@@ -319,12 +322,12 @@
   		return $this->query($sql);
    }
    
-   // gibt Array mit Tabellennamen zur�ck
+   // gibt Array mit Tabellennamen zurück
    function getTables($database_name) {
         return false;       
    }
    
-   // gibt Feldinformationen zur Tabelle zur�ck
+   // gibt Feldinformationen zur Tabelle zurück
    /*
    $columns = array(action =>   add | alter | drop
                     name =>     Spaltenname
@@ -363,7 +366,7 @@
         return 'char';
    break;
    case 'varchar':
-        if($typeValue < 1) $go_api->errorMessage("Datenbank Fehler: F�r diesen Datentyp ist eine L�ngenangabe notwendig.");
+        if($typeValue < 1) $go_api->errorMessage("Datenbank Fehler: Für diesen Datentyp ist eine Längenangabe notwendig.");
         return 'varchar('.$typeValue.')';
    break;
    case 'text':
@@ -377,4 +380,4 @@
 	
 }
 
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1