From 9f20eaf429f1e0491a7b6f10d2d954c0a258396f Mon Sep 17 00:00:00 2001 From: jrmcclean <68025295+jrmcclean@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:13:27 -0400 Subject: [PATCH] Update index.php (#6862) Added an option to check Windows ProgramData --- core/dashboard/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/dashboard/index.php b/core/dashboard/index.php index ccf06d4eb1..afdfaac4ed 100644 --- a/core/dashboard/index.php +++ b/core/dashboard/index.php @@ -34,6 +34,9 @@ elseif (file_exists("/etc/fusionpbx/config.conf")){ //Linux } + elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) { + // Windows + } else { header("Location: /core/install/install.php"); exit;