1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00
Files
ancient-weatherstation/webstuff/frontend/php_inc/config.inc.php
T
losinshi 48149b88c5 fixed
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@166 dd492736-c11a-0410-ad51-8c26713eaf7f
2006-09-27 15:52:18 +00:00

41 lines
768 B
PHP

<?
if(file_exists("/etc/weatherstation/frontend.conf")){
include_once("/etc/weatherstation/frontend.conf");
} else {
include_once($path."frontend.conf");
}
/* 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;
}
function getChartArray($chartId){
global $cImg;
return $cImg[$chartId];
}
function getDefaultChartDir(){
global $default_chart_dir;
return $default_chart_dir."/";
}
function getRptArray($rptId){
global $report;
return $report[$rptId];
}
}
?>