Update install.php (#6853)

* Update install.php

Update config directory for windows from www folder to Programdata directory
This commit is contained in:
jrmcclean
2023-12-22 17:32:42 -05:00
committed by GitHub
parent d002628237
commit 4484c9ad5f

View File

@@ -66,8 +66,8 @@ if (!class_exists('install')) {
$cache_location = '/var/cache/fusionpbx';
break;
case "WIN":
$config_path = $_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.'resources';
$config_file = $config_path.DIRECTORY_SEPARATOR.'config.conf';
$system_drive = getenv('SystemDrive');
$config_path = $system_drive . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' ;
$config_file = $config_path.DIRECTORY_SEPARATOR.'config.conf';
$document_root = $_SERVER["DOCUMENT_ROOT"];