Update index.php

This commit is contained in:
FusionPBX 2022-10-12 10:46:19 -06:00 committed by GitHub
parent 40680f1e00
commit d3c4fa011d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -32,10 +32,10 @@
ini_set("session.cookie_httponly", True);
if (!isset($_SESSION)) { session_start(); }
//if config.php file does not exist then redirect to the install page
if (file_exists("/usr/local/etc/fusionpbx/config.conf")){
//if config.conf file does not exist then redirect to the install page
if (file_exists("/usr/local/etc/fusionpbx/config.conf")) {
//BSD
} elseif (file_exists("/etc/fusionpbx/config.conf")){
} elseif (file_exists("/etc/fusionpbx/config.conf")) {
//Linux
} else {
header("Location: ".PROJECT_PATH."/core/install/install.php");