Merge branch 'master' of linz:/srv/git/git-kairo
[php-utility-classes.git] / testbed / rrd / rrd-stat.php
index 9ef9598cdbf0908b480dd77ca532e4c3f1661bd8..ed939746be868d66d075b46cb18e73c90ae8f735 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)) {
@@ -9,6 +10,10 @@ if (getcwd() != dirname($myfile)) {
 
 include_once('rrdstat.php-class');
 
+// $GLOBALS['ua'] is required by some page generation routines
+include_once('useragent.php-class');
+$ua = new userAgent();
+
 $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);