Change config.php to config.conf

This commit is contained in:
FusionPBX
2022-10-10 19:38:46 -06:00
committed by GitHub
parent 80d25cc088
commit fb0c92bbeb

View File

@@ -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;