From 7a1608309581c77e3fcfb41085e05d82bd43e742 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 10 Oct 2022 13:18:34 -0600 Subject: [PATCH] Replace root.php with new config.conf --- app/dialplans/dialplans.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplans.php b/app/dialplans/dialplans.php index e3ebfca634..791e8d2980 100644 --- a/app/dialplans/dialplans.php +++ b/app/dialplans/dialplans.php @@ -24,8 +24,11 @@ Mark J Crane */ -//includes - include "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"; require_once "resources/paging.php";