Include additional functions

This commit is contained in:
FusionPBX
2022-03-22 00:15:35 -06:00
committed by GitHub
parent 4e260b170e
commit cdcfcfd520
+7 -2
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2021 Portions created by the Initial Developer are Copyright (C) 2008-2022
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@@ -2268,7 +2268,6 @@ function number_pad($number,$n) {
//send the user_exists command to freeswitch //send the user_exists command to freeswitch
if ($fp) { if ($fp) {
//build and send the mkdir command to freeswitch
if (is_null($domain_name)) { if (is_null($domain_name)) {
$domain_name = $_SESSION['domain_name']; $domain_name = $_SESSION['domain_name'];
} }
@@ -2283,4 +2282,10 @@ function number_pad($number,$n) {
} }
} }
//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) {
require($function);
}
?> ?>