mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update extensions.php
Change extension_show_registered to extension_registered.
This commit is contained in:
@@ -23,20 +23,24 @@
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
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";
|
||||
|
||||
if (permission_exists('extension_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
//includes
|
||||
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";
|
||||
|
||||
if (permission_exists('extension_show_registered')) {
|
||||
//check permissions
|
||||
if (permission_exists('extension_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//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) {
|
||||
@@ -47,8 +51,7 @@ if (permission_exists('extension_show_registered')) {
|
||||
require_once "resources/classes/array_order.php";
|
||||
$order = new array_order();
|
||||
$registrations = $order->sort($registrations, 'sip-auth-realm', 'user');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
@@ -166,7 +169,7 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('user_context', $text['label-user_context'], $order_by, $order);
|
||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order);
|
||||
echo th_order_by('description', $text['label-description'], $order_by, $order);
|
||||
if (permission_exists('extension_show_registered')) {
|
||||
if (permission_exists('extension_registered')) {
|
||||
echo th_order_by('description', $text['label-is_registered'], $order_by, $order);
|
||||
}
|
||||
echo "<td class='list_control_icon'>\n";
|
||||
@@ -205,7 +208,7 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['user_context']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['enabled'])."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg' width='30%'>".$row['description']." </td>\n";
|
||||
if (permission_exists('extension_show_registered')) {
|
||||
if (permission_exists('extension_registered')) {
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
$found = false;
|
||||
$found_count = 0;
|
||||
@@ -284,4 +287,4 @@ require_once "resources/paging.php";
|
||||
|
||||
//show the footer
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user