Include additional functions

This commit is contained in:
FusionPBX 2022-03-22 00:15:35 -06:00 committed by GitHub
parent 4e260b170e
commit cdcfcfd520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 17 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
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.
Contributor(s):
@ -2268,7 +2268,6 @@ function number_pad($number,$n) {
//send the user_exists command to freeswitch
if ($fp) {
//build and send the mkdir command to freeswitch
if (is_null($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);
}
?>