diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/common.inc.php | 4 | ||||
-rw-r--r-- | conf/config.php | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/conf/common.inc.php b/conf/common.inc.php index 165c73f..506134d 100644 --- a/conf/common.inc.php +++ b/conf/common.inc.php | |||
@@ -4,3 +4,7 @@ require_once 'config.php'; | |||
4 | 4 | ||
5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); | 5 | $CONFIG['webdir'] = preg_replace('/\/[a-z\.]+$/', '', $_SERVER['SCRIPT_FILENAME']); |
6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); | 6 | $CONFIG['weburl'] = preg_replace('/(?<=\/)[a-z\.]+$/', '', $_SERVER['SCRIPT_NAME']); |
7 | |||
8 | if (!ini_get('date.timezone')) { | ||
9 | date_default_timezone_set($CONFIG['default_timezone']); | ||
10 | } | ||
diff --git a/conf/config.php b/conf/config.php index 6c0572e..7107841 100644 --- a/conf/config.php +++ b/conf/config.php | |||
@@ -66,6 +66,9 @@ $CONFIG['detail-heigth'] = 350; | |||
66 | # disabled: NULL | 66 | # disabled: NULL |
67 | $CONFIG['socket'] = NULL; | 67 | $CONFIG['socket'] = NULL; |
68 | 68 | ||
69 | # system default timezone when not set | ||
70 | $CONFIG['default_timezone'] = 'UTC'; | ||
71 | |||
69 | 72 | ||
70 | # load local configuration | 73 | # load local configuration |
71 | if (file_exists(dirname(__FILE__).'/config.local.php')) | 74 | if (file_exists(dirname(__FILE__).'/config.local.php')) |