Command line or web server both includes can work the same

This commit is contained in:
FusionPBX
2022-10-13 16:50:47 -06:00
committed by GitHub
parent 3e8ea2015f
commit ef040f2b7a

View File

@@ -24,15 +24,9 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
//check the permission
if(defined('STDIN')) {
//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);
}
else {
exit;
}
//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);
//includes files
require_once "resources/require.php";