From 03ac05fc640fa6f5f1a8642b7dc7db83c783928a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 14 Oct 2022 10:08:03 -0600 Subject: [PATCH] Moved to resources/require.php Found a better home for this code. --- resources/functions.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 7528e4fe2a..6bb3f0ad4b 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -2161,20 +2161,4 @@ function number_pad($number,$n) { } } -//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"; - -//include additional functions - $functions = glob("{".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/functions/*.php,".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/resources/functions/*.php}", GLOB_BRACE); - foreach($functions as $function) { - $path = pathinfo($function); - if ($path['filename'] != 'transcribe') { - require($function); - } - } - ?>