paul@6 | 1 | --- a/public_html/index.php |
paul@6 | 2 | +++ b/public_html/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@6 | 11 | @@ -42,7 +43,7 @@ |
paul@1 | 12 | |
paul@1 | 13 | |
paul@1 | 14 | // load config |
paul@6 | 15 | -$config = Config::get_instance(KOLAB_FREEBUSY_ROOT . '/config'); |
paul@6 | 16 | +$config = Config::get_instance(KOLAB_FREEBUSY_CONFIG_ROOT); |
paul@6 | 17 | if ($config->valid()) { |
paul@1 | 18 | // check for trusted IP first |
paul@1 | 19 | $remote_ip = Utils::remoteIP(); |