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'));