Use the config.conf file

This commit is contained in:
FusionPBX 2022-10-22 23:45:59 -06:00 committed by GitHub
parent bc378823bd
commit 5a71e16f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
<?php
//includes
include_once "root.php";
//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";
require_once "resources/check_auth.php";