Update index.php (#6862)

Added an option to check Windows ProgramData
This commit is contained in:
jrmcclean 2024-07-23 10:13:27 -04:00 committed by GitHub
parent 1d4f366b05
commit 9f20eaf429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

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