Pārlūkot izejas kodu

Update require.php (#6860)

Added an option to check Windows ProgramData
jrmcclean 1 gadu atpakaļ
vecāks
revīzija
b449149eea
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      resources/require.php

+ 3 - 0
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'));