1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00

Config-Module added to frontend

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@36 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-08-22 16:40:01 +00:00
parent cf5a6eed70
commit 019f35aa87
3 changed files with 30 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
<?
include_once("php_inc/config.inc.php");
/* Connection-Klasse..ist für die Datenbankverbindung zuständig */
class Connection{
@@ -12,7 +14,7 @@ class Connection{
/* Verbindung herstellen (wenn noch net besteht)*/
function _createConn(){
if($this->conn == NULL){
$this->conn = pg_connect("host=141.30.228.39 dbname=wetter user=losinshi")
$this->conn = pg_connect(Config::getPgConnString())
or die('Verbindungsaufbau fehlgeschlagen: ' . pg_last_error());
}
}