Add php_bin and php_dir to the config.lua script.

This commit is contained in:
Mark Crane 2015-04-27 23:50:15 +00:00
parent 0985d0a840
commit 03e4777832
1 changed files with 8 additions and 1 deletions

View File

@ -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";