mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-16 03:53:40 +00:00
Allow config files to be under /usr/local
This commit is contained in:
parent
caf90b4241
commit
85a06399d8
@ -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');
|
||||
}
|
||||
|
||||
@ -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');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user