projects
/
php-utility-classes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detect Geckos with removed Windows token, correct IE and Trident version detection
[php-utility-classes.git]
/
testbed
/
rrd
/
rrd-update.php
diff --git
a/testbed/rrd/rrd-update.php
b/testbed/rrd/rrd-update.php
index 30b23b2131eddfd8cd9753346a60cb4506b804e9..12193192d9968122f9739f57ca827d613fc67b51 100644
(file)
--- a/
testbed/rrd/rrd-update.php
+++ b/
testbed/rrd/rrd-update.php
@@
-1,4
+1,5
@@
<?php
<?php
+date_default_timezone_set("Europe/Vienna");
$myfile = $_SERVER['SCRIPT_FILENAME'];
while (is_link($myfile)) { $myfile = readlink($myfile); }
if (getcwd() != dirname($myfile)) {
$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('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
if (php_sapi_name() == 'cli') {
// automated updates