Fall back to /etc/davical/config.php for a whole-of-site configuration.

This commit is contained in:
Andrew McMillan 2008-02-14 13:33:03 +13:00
parent 53d36109c7
commit 99ff2e5f4a
2 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,9 @@ if ( @file_exists("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php") ) {
else if ( @file_exists("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php") ) {
include_once("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php");
}
else if ( @file_exists("/etc/davical/config.php") ) {
include_once("/etc/davical/config.php");
}
else if ( @file_exists("../config/config.php") ) {
include_once("../config/config.php");
}

View File

@ -67,6 +67,9 @@ if ( @file_exists("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php") ) {
else if ( @file_exists("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php") ) {
include_once("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php");
}
else if ( @file_exists("/etc/davical/config.php") ) {
include_once("/etc/davical/config.php");
}
else if ( @file_exists("../config/config.php") ) {
include_once("../config/config.php");
}