diff --git a/core/dashboard/index.php b/core/dashboard/index.php index a5ad3e8698..b1cc05851f 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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;