paul@1 | 1 | --- a/web/index.php |
paul@1 | 2 | +++ b/web/index.php |
paul@1 | 3 | @@ -26,6 +26,7 @@ |
paul@1 | 4 | |
paul@1 | 5 | |
paul@1 | 6 | define('KOLAB_FREEBUSY_ROOT', realpath('../')); |
paul@1 | 7 | +define('KOLAB_FREEBUSY_CONFIG_ROOT', '/etc/kolab-freebusy'); |
paul@1 | 8 | |
paul@1 | 9 | // suppress error notices |
paul@1 | 10 | ini_set('error_reporting', E_ALL &~ E_NOTICE); |
paul@1 | 11 | @@ -41,7 +42,7 @@ |
paul@1 | 12 | |
paul@1 | 13 | |
paul@1 | 14 | // load config |
paul@1 | 15 | -$config = Config::getInstance(KOLAB_FREEBUSY_ROOT . '/config'); |
paul@1 | 16 | +$config = Config::getInstance(KOLAB_FREEBUSY_CONFIG_ROOT); |
paul@1 | 17 | if ($config->isValid()) { |
paul@1 | 18 | // check for trusted IP first |
paul@1 | 19 | $remote_ip = Utils::remoteIP(); |