add Safari for Windows, better Safari detection, more consistency for Symbian
[php-utility-classes.git] / testbed / rrd / rrd-test.php
index 9b2ee5197ad077a016c2a07e045bf1d5a46010ff..4cd77052f010ad59f9be0c54febcf1cf7681508c 100644 (file)
@@ -8,7 +8,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