mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Change config.php to config.conf
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2021
|
||||
Portions created by the Initial Developer are Copyright (C) 2022
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -29,14 +29,10 @@
|
||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||
|
||||
//if config.php file does not exist then redirect to the install page
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
//do nothing
|
||||
} elseif (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
//original directory
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")){
|
||||
//linux
|
||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
|
||||
//bsd
|
||||
if (file_exists("/usr/local/etc/fusionpbx/config.conf")){
|
||||
//BSD
|
||||
} elseif (file_exists("/etc/fusionpbx/config.conf")){
|
||||
//Linux
|
||||
} else {
|
||||
header("Location: ".PROJECT_PATH."/core/install/install.php");
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user