From 12a862217f68c4d743d06952c126e4e34c72d6fc Mon Sep 17 00:00:00 2001 From: jrmcclean <68025295+jrmcclean@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:14:55 -0400 Subject: [PATCH] Update require.php (#6860) Added an option to check Windows ProgramData --- resources/require.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/require.php b/resources/require.php index 507a9a098f..8053669ab2 100644 --- a/resources/require.php +++ b/resources/require.php @@ -31,6 +31,9 @@ elseif (file_exists('/etc/fusionpbx/config.conf')) { $config_file = '/etc/fusionpbx/config.conf'; } + elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) { + $config_file = getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf'; + } elseif (file_exists(__DIR__ . '/config.php')) { //set a custom config_file variable after the config.php has been validated $file_content = trim(file_get_contents(__DIR__ . '/config.php'));