diff options
Diffstat (limited to 'conf/config.php')
-rw-r--r-- | conf/config.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/config.php b/conf/config.php index eae3307..23a3a90 100644 --- a/conf/config.php +++ b/conf/config.php | |||
@@ -3,6 +3,10 @@ | |||
3 | # collectd version | 3 | # collectd version |
4 | $CONFIG['version'] = 5; | 4 | $CONFIG['version'] = 5; |
5 | 5 | ||
6 | # Do this here, so it can be overriden, usually in case part of the path is a script for wrapping PHP. | ||
7 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); | ||
8 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); | ||
9 | |||
6 | # collectd's datadir | 10 | # collectd's datadir |
7 | $CONFIG['datadir'] = '../apt-panopticon/rrd'; | 11 | $CONFIG['datadir'] = '../apt-panopticon/rrd'; |
8 | 12 | ||