Use the __DIR__ to include require.php (#7055)
Authored-by: Tim Fry <tim@fusionpbx.com>
This commit is contained in:
parent
c78d300145
commit
cd9c6e95cb
|
|
@ -21,12 +21,8 @@
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//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
|
//includes files
|
||||||
require_once "resources/require.php";
|
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
require_once "resources/paging.php";
|
require_once "resources/paging.php";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,13 +22,8 @@
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//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
|
//includes files
|
||||||
require_once "resources/require.php";
|
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
//check permissions
|
//check permissions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue