Use the config.conf file
This commit is contained in:
parent
bc378823bd
commit
5a71e16f15
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue