|
@@ -81,6 +81,10 @@
|
|
//linux
|
|
//linux
|
|
$config_exists = true;
|
|
$config_exists = true;
|
|
}
|
|
}
|
|
|
|
+ elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.conf')) {
|
|
|
|
+ //Windows
|
|
|
|
+ $config_exists = true;
|
|
|
|
+ }
|
|
if ($config_exists) {
|
|
if ($config_exists) {
|
|
$msg = "Already Installed";
|
|
$msg = "Already Installed";
|
|
//report to user
|
|
//report to user
|
|
@@ -100,6 +104,10 @@
|
|
//linux
|
|
//linux
|
|
$config_path = "/etc/fusionpbx";
|
|
$config_path = "/etc/fusionpbx";
|
|
}
|
|
}
|
|
|
|
+ elseif (file_exists(getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' . DIRECTORY_SEPARATOR . 'config.php')) {
|
|
|
|
+ //Windows
|
|
|
|
+ $config_path = getenv('SystemDrive') . DIRECTORY_SEPARATOR . 'ProgramData' . DIRECTORY_SEPARATOR . 'fusionpbx' ;
|
|
|
|
+ }
|
|
if (isset($config_path)) {
|
|
if (isset($config_path)) {
|
|
if (is_writable($config_path)) {
|
|
if (is_writable($config_path)) {
|
|
//include the config.php file
|
|
//include the config.php file
|