Allow config files to be under /usr/local

This commit is contained in:
Andrew McMillan 2010-01-28 09:41:33 +13:00
parent caf90b4241
commit 85a06399d8
2 changed files with 12 additions and 0 deletions

View File

@ -94,6 +94,12 @@ if ( @file_exists('/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php') ) {
else if ( @file_exists('/etc/davical/config.php') ) {
include('/etc/davical/config.php');
}
else if ( @file_exists('/usr/local/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php') ) {
include('/usr/local/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php');
}
else if ( @file_exists('/usr/local/etc/davical/config.php') ) {
include('/usr/local/etc/davical/config.php');
}
else if ( @file_exists('../config/config.php') ) {
include('../config/config.php');
}

View File

@ -94,6 +94,12 @@ if ( @file_exists('/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php') ) {
else if ( @file_exists('/etc/davical/config.php') ) {
include('/etc/davical/config.php');
}
else if ( @file_exists('/usr/local/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php') ) {
include('/usr/local/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php');
}
else if ( @file_exists('/usr/local/etc/davical/config.php') ) {
include('/usr/local/etc/davical/config.php');
}
else if ( @file_exists('../config/config.php') ) {
include('../config/config.php');
}