Update require.php (#6860)

Added an option to check Windows ProgramData
This commit is contained in:
jrmcclean
2024-07-23 10:14:55 -04:00
committed by GitHub
parent ebd2251b99
commit 12a862217f

View File

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