include document root and config.conf

This commit is contained in:
FusionPBX 2022-12-07 21:52:34 -07:00 committed by GitHub
parent b8c2fc182a
commit b7147022cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@
*/
//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
require_once "resources/require.php";
require_once "resources/check_auth.php";