mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
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:
1 parent
8b3ef09ff1
commit
949d28a5c1
3 files changed
+13
-9
No files matched your search
+3
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user