Fix debugging code so this doesn't break a server with open_basedir

enabled.  Not that I in any way endorse the use of open_basedir...
This commit is contained in:
Andrew McMillan committed 2008-01-21 17:30:31 +13:00
1 parent 8b3ef09ff1
commit 949d28a5c1
3 files changed
+13 -9

No files matched your search

+3 -3
View File
@@ -53,13 +53,13 @@ $c->protocol_server_port_script = sprintf( "%s://%s%s%s", (isset($_SERVER['HTTPS
init_gettext( 'rscds', '../locale' );
if ( file_exists("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php") ) {
if ( @file_exists("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php") ) {
include_once("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php");
}
else if ( file_exists("/etc/rscds/".$_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("../config/config.php") ) {
else if ( @file_exists("../config/config.php") ) {
include_once("../config/config.php");
}
else {