From f4f0ef5626448ca2aa6f9b11feacf6d742a7d01b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 28 Aug 2017 02:21:59 -0600 Subject: [PATCH] Update extensions.php --- app/extensions/extensions.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php index 62d1b5045c..8c73fc6a7c 100644 --- a/app/extensions/extensions.php +++ b/app/extensions/extensions.php @@ -28,7 +28,6 @@ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; - require_once $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/resources/classes/status_registrations.php"; //check permissions if (permission_exists('extension_view')) { @@ -41,16 +40,8 @@ //get the registrations if (permission_exists('extension_registered')) { - //create the event socket connection - $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); - if (!$fp) { - $msg = "
".$text['error-event-socket']."
"; - } - $registrations = get_registrations('internal'); - //order the array - require_once "resources/classes/array_order.php"; - $order = new array_order(); - $registrations = $order->sort($registrations, 'sip-auth-realm', 'user'); + $obj = new registrations; + $registrations = $obj->get('all'); } //add multi-lingual support