Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).

Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
This commit is contained in:
Harry G. Coin
2016-04-25 20:52:21 -05:00
parent 179f4840a8
commit 64eeca8e2d
4 changed files with 11 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ include "root.php";
$database->fields['dialplan_detail_order'] = '005';
$database->add();
if (file_exists(PHP_BINDIR."/php")) { define(PHP_BIN, 'php'); }
if (file_exists(PHP_BINDIR."/php5")) { define(PHP_BIN, 'php5'); }
if (file_exists(PHP_BINDIR."/php.exe")) { define(PHP_BIN, 'php.exe'); }
$dialplan_detail_data = "api_hangup_hook=system ".PHP_BINDIR."/".PHP_BIN." ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/secure/fax_to_email.php ";
$dialplan_detail_data .= "email=".$this->fax_email." ";