Merge branch 'master' of linz:/srv/git/git-kairo
[php-utility-classes.git] / testbed / rrd / rrd-test.php
index 9b2ee5197ad077a016c2a07e045bf1d5a46010ff..160e94f369ff6c8fa63d8a29231f84ed9f985eaf 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+date_default_timezone_set("Europe/Vienna");
 $myfile = $_SERVER['SCRIPT_FILENAME'];
 while (is_link($myfile)) { $myfile = readlink($myfile); }
 if (getcwd() != dirname($myfile)) {
@@ -8,7 +9,10 @@ if (getcwd() != dirname($myfile)) {
 }
 
 include_once('rrdstat.php-class');
-include_once('rrd-config.inc.php');
+
+$rrd_config_file = 'rrd-config/'.php_uname('n').'.inc.php';
+if (!file_exists($rrd_config_file)) { $rrd_config_file = 'rrd-config.inc.php'; }
+include_once($rrd_config_file);
 
 if (php_sapi_name() == 'cli') {
   // automated updates