mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add php_bin and php_dir to the config.lua script.
This commit is contained in:
@@ -112,7 +112,7 @@ if ($domains_processed == 1) {
|
||||
}
|
||||
$fout = fopen($config,"w");
|
||||
$tmp = "\n";
|
||||
$tmp .= "--switch directories\n";
|
||||
$tmp .= "--set the variables\n";
|
||||
if (strlen($_SESSION['switch']['sounds']['dir']) > 0) {
|
||||
$tmp .= " sounds_dir = \"".$_SESSION['switch']['sounds']['dir']."\";\n";
|
||||
}
|
||||
@@ -128,6 +128,13 @@ if ($domains_processed == 1) {
|
||||
if (strlen($_SESSION['switch']['voicemail']['dir']) > 0) {
|
||||
$tmp .= " voicemail_dir = \"".$_SESSION['switch']['voicemail']['dir']."\";\n";
|
||||
}
|
||||
$tmp .= " php_dir = \"".PHP_BINDIR."\";\n";
|
||||
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
|
||||
$tmp .= " php_bin = \"php.exe\";\n";
|
||||
}
|
||||
else {
|
||||
$tmp .= " php_bin = \"php\";\n";
|
||||
}
|
||||
$tmp .= "\n";
|
||||
$tmp .= "--database information\n";
|
||||
$tmp .= " database = {}\n";
|
||||
|
||||
Reference in New Issue
Block a user