Moved the redirect to resources/require.php

This commit is contained in:
FusionPBX 2023-08-15 16:20:27 -06:00 committed by GitHub
parent 2ceb4453c5
commit 18df561513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -28,18 +28,6 @@
ini_set("session.cookie_httponly", True);
if (!isset($_SESSION)) { session_start(); }
//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")) {
//Linux
}
else {
header("Location: /core/install/install.php");
exit;
}
//includes files
require_once __DIR__ . "/resources/require.php";