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:
@@ -1 +1,25 @@
|
||||
<?
|
||||
/* Datenbankverbindung */
|
||||
$pg_host = "141.30.228.39";
|
||||
$pg_database = "wetter";
|
||||
$pg_user = "losinshi";
|
||||
$pg_pass = "";
|
||||
|
||||
/* Default-Werte */
|
||||
$default_set = "test";
|
||||
|
||||
/* Config-Klasse, Bitte nicht ändern! */
|
||||
class Config{
|
||||
|
||||
function getPgConnString(){
|
||||
global $pg_host,$pg_database,$pg_user,$pg_pass;
|
||||
return "host=".$pg_host." dbname=".$pg_database." user=".$pg_user." password=".$pg_pass;
|
||||
}
|
||||
|
||||
function getDefaultSet(){
|
||||
global $default_set;
|
||||
return $default_set;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user