mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update require.php (#6860)
Added an option to check Windows ProgramData
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user