From 33e2c95c69b405f36caf9013ff9a256e6edf9500 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 11 Feb 2013 08:15:44 -0500
Subject: [PATCH] - htpasswd_stats file was not readable for apache 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