瀏覽代碼

Update index.php (#6862)

Added an option to check Windows ProgramData
jrmcclean 1 年之前
父節點
當前提交
c36104523e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      core/dashboard/index.php

+ 3 - 0
core/dashboard/index.php

@@ -34,6 +34,9 @@
 	elseif (file_exists("/etc/fusionpbx/config.conf")){
 		//Linux
 	}
+	elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) {
+		// Windows
+	} 	
 	else {
 		header("Location: /core/install/install.php");
 		exit;