diff options
author | onefang | 2020-01-04 17:28:24 +1000 |
---|---|---|
committer | onefang | 2020-01-04 17:28:24 +1000 |
commit | 6d1f9cc869d62f17230b3174f320bad4f2d1c435 (patch) | |
tree | e8afbe99f7cc29d58e5d51d21060537a69dbfeb7 /conf/common.inc.php | |
parent | Ignore the rrd directory. (diff) | |
download | apt-panopticon_cgp-6d1f9cc869d62f17230b3174f320bad4f2d1c435.zip apt-panopticon_cgp-6d1f9cc869d62f17230b3174f320bad4f2d1c435.tar.gz apt-panopticon_cgp-6d1f9cc869d62f17230b3174f320bad4f2d1c435.tar.bz2 apt-panopticon_cgp-6d1f9cc869d62f17230b3174f320bad4f2d1c435.tar.xz |
Work with CGI PHP.
Diffstat (limited to '')
-rw-r--r-- | conf/common.inc.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php index 506134d..07a7475 100644 --- a/conf/common.inc.php +++ b/conf/common.inc.php | |||
@@ -2,9 +2,6 @@ | |||
2 | 2 | ||
3 | require_once 'config.php'; | 3 | require_once 'config.php'; |
4 | 4 | ||
5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); | ||
6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); | ||
7 | |||
8 | if (!ini_get('date.timezone')) { | 5 | if (!ini_get('date.timezone')) { |
9 | date_default_timezone_set($CONFIG['default_timezone']); | 6 | date_default_timezone_set($CONFIG['default_timezone']); |
10 | } | 7 | } |