From cdd639728573e42bf1174ff6b640b1c5c58e61f7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 10 Oct 2022 13:19:44 -0600 Subject: [PATCH] Replace root.php with config.conf --- app/dialplans/dialplan_add.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/dialplans/dialplan_add.php b/app/dialplans/dialplan_add.php index 6076daaf49..3904307a53 100644 --- a/app/dialplans/dialplan_add.php +++ b/app/dialplans/dialplan_add.php @@ -23,9 +23,11 @@ Contributor(s): Mark J Crane */ +//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 - include "root.php"; +//includes files require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "resources/paging.php";