mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Command line or web server both includes can work the same
This commit is contained in:
@@ -24,15 +24,9 @@
|
|||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//check the permission
|
//set the include path
|
||||||
if(defined('STDIN')) {
|
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||||
//set the include path
|
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
|
||||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
//includes files
|
//includes files
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user