projects
/
php-utility-classes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore some warnings
[php-utility-classes.git]
/
testbed
/
rrd
/
rrd-test.php
diff --git
a/testbed/rrd/rrd-test.php
b/testbed/rrd/rrd-test.php
index 9b2ee5197ad077a016c2a07e045bf1d5a46010ff..160e94f369ff6c8fa63d8a29231f84ed9f985eaf 100644
(file)
--- a/
testbed/rrd/rrd-test.php
+++ b/
testbed/rrd/rrd-test.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