diff --git a/app/registrations/registrations.php b/app/registrations/registrations.php
index 03ce273d0d..8d855b01e2 100644
--- a/app/registrations/registrations.php
+++ b/app/registrations/registrations.php
@@ -44,10 +44,12 @@
$text = $language->get();
//get common submitted data
+ $show = $_REQUEST['show'];
$search = $_REQUEST['search'];
$profile = $_REQUEST['profile'];
//define query string array
+ if ($show) { $qs['show'] = "&show=".urlencode($show); }
if ($search) { $qs['search'] = "&search=".urlencode($search); }
if ($profile) { $qs['profile'] = "&profile=".urlencode($profile); }
@@ -75,13 +77,14 @@
break;
}
- header('Location: registrations.php'.($search || $profile ? '?' : null).$qs['search'].$qs['profile']);
+ header('Location: registrations.php'.($show || $search || $profile ? '?' : null).$qs['show'].$qs['search'].$qs['profile']);
exit;
}
//get the registrations
$obj = new registrations;
- $registrations = $obj->get(!$profile ? 'all' : $profile);
+ $obj->show = $show;
+ $registrations = $obj->get($profile);
//order the array
require_once "resources/classes/array_order.php";
@@ -120,21 +123,28 @@
echo "
".$text['header-registrations']." (".$num_rows.")
\n";
echo " \n";
if (!$reload) {
- echo button::create(['type'=>'button','label'=>$text['button-refresh'],'icon'=>$_SESSION['theme']['button_icon_refresh'],'link'=>$location.($qs ? '?' : null).$qs['search'].$qs['profile']]);
+ echo button::create(['type'=>'button','label'=>$text['button-refresh'],'icon'=>$_SESSION['theme']['button_icon_refresh'],'link'=>$location.($qs ? '?' : null).$qs['show'].$qs['search'].$qs['profile']]);
}
echo button::create(['type'=>'button','label'=>$text['button-unregister'],'title'=>$text['button-unregister'],'icon'=>'user-slash','style'=>'margin-left: 15px;','onclick'=>"if (confirm('".$text['confirm-unregister']."')) { list_action_set('unregister'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
echo button::create(['type'=>'button','label'=>$text['button-provision'],'title'=>$text['button-provision'],'icon'=>'fax','onclick'=>"if (confirm('".$text['confirm-provision']."')) { list_action_set('provision'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
echo button::create(['type'=>'button','label'=>$text['button-reboot'],'title'=>$text['button-reboot'],'icon'=>'power-off','onclick'=>"if (confirm('".$text['confirm-reboot']."')) { list_action_set('reboot'); list_form_submit('form_list'); } else { this.blur(); return false; }"]);
echo "\n";
echo "
\n";
echo " \n";
@@ -154,13 +164,13 @@
echo " \n";
echo " \n";
echo " ".$text['label-user']." | \n";
- echo " ".$text['label-agent']." | \n";
+ echo " ".$text['label-agent']." | \n";
echo " ".$text['label-contact']." | \n";
echo " ".$text['label-lan_ip']." | \n";
echo " ".$text['label-ip']." | \n";
echo " ".$text['label-port']." | \n";
echo " ".$text['label-hostname']." | \n";
- echo " ".$text['label-status']." | \n";
+ echo " ".$text['label-status']." | \n";
echo " ".$text['label-ping']." | \n";
echo " ".$text['label-sip_profile_name']." | \n";
echo " | \n";
diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php
index d8069b26e1..367252df89 100644
--- a/app/registrations/resources/classes/registrations.php
+++ b/app/registrations/resources/classes/registrations.php
@@ -35,6 +35,7 @@ if (!class_exists('registrations')) {
private $app_uuid;
private $permission_prefix;
private $list_page;
+ public $show;
/**
* called when the object is created
@@ -46,6 +47,7 @@ if (!class_exists('registrations')) {
$this->app_uuid = '5d9e7cd7-629e-3553-4cf5-f26e39fefa39';
$this->permission_prefix = 'registration_';
$this->list_page = 'registrations.php';
+ $this->show = 'local';
}
@@ -163,7 +165,7 @@ if (!class_exists('registrations')) {
//remove unrelated domains
if (count($_SESSION["domains"]) > 1) {
- if (!(permission_exists('registration_all') && $profile == "all")) {
+ if (!permission_exists('registration_all') || $this->show != 'all') {
if ($registrations[$id]['sip-auth-realm'] == $_SESSION['domain_name']) {}
else if ($user_array[1] == $_SESSION['domain_name']) {}
else {
diff --git a/resources/app_languages.php b/resources/app_languages.php
index e18c6df8f6..c40eb3890e 100644
--- a/resources/app_languages.php
+++ b/resources/app_languages.php
@@ -592,6 +592,28 @@ $text['button-show_all']['sv-se'] = "Visa Allt";
$text['button-show_all']['uk-ua'] = "Показати всі";
$text['button-show_all']['tr-tr'] = "Hepsini Görüntüle";
+$text['button-show_local']['en-us'] = "Show Local";
+$text['button-show_local']['ar-eg'] = "Show Local";
+$text['button-show_local']['de-at'] = "Show Local";
+$text['button-show_local']['de-ch'] = "Show Local";
+$text['button-show_local']['de-de'] = "Show Local";
+$text['button-show_local']['el-gr'] = "Show Local";
+$text['button-show_local']['es-cl'] = "Show Local";
+$text['button-show_local']['es-mx'] = "Show Local";
+$text['button-show_local']['fr-ca'] = "Show Local";
+$text['button-show_local']['fr-fr'] = "Show Local";
+$text['button-show_local']['he-il'] = "Show Local";
+$text['button-show_local']['it-it'] = "Show Local";
+$text['button-show_local']['nl-nl'] = "Show Local";
+$text['button-show_local']['pl-pl'] = "Show Local";
+$text['button-show_local']['pt-br'] = "Show Local";
+$text['button-show_local']['pt-pt'] = "Show Local";
+$text['button-show_local']['ro-ro'] = "Show Local";
+$text['button-show_local']['ru-ru'] = "Show Local";
+$text['button-show_local']['sv-se'] = "Show Local";
+$text['button-show_local']['uk-ua'] = "Show Local";
+$text['button-show_local']['tr-tr'] = "Show Local";
+
$text['button-restore']['en-us'] = "Restore Default";
$text['button-restore']['ar-eg'] = "";
$text['button-restore']['de-at'] = "Ursprungszustand wiederherstellen"; //copied from de-de
diff --git a/themes/default/css.php b/themes/default/css.php
index 6ddb4d3a43..2faa8a9cda 100644
--- a/themes/default/css.php
+++ b/themes/default/css.php
@@ -2467,26 +2467,26 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
/* WIDTH HELPERS **********************************************************************/
- .min-pct-5 { min-width: 5%; }
- .min-pct-10 { min-width: 10%; }
- .min-pct-15 { min-width: 15%; }
- .min-pct-20 { min-width: 20%; }
- .min-pct-25 { min-width: 25%; }
- .min-pct-30 { min-width: 30%; }
- .min-pct-35 { min-width: 35%; }
- .min-pct-40 { min-width: 40%; }
- .min-pct-45 { min-width: 45%; }
- .min-pct-50 { min-width: 50%; }
- .min-pct-55 { min-width: 55%; }
- .min-pct-60 { min-width: 60%; }
- .min-pct-65 { min-width: 65%; }
- .min-pct-70 { min-width: 70%; }
- .min-pct-75 { min-width: 75%; }
- .min-pct-80 { min-width: 80%; }
- .min-pct-85 { min-width: 85%; }
- .min-pct-90 { min-width: 90%; }
- .min-pct-95 { min-width: 95%; }
- .min-pct-100 { min-width: 100%; }
+ .pct-5 { width: 5%; }
+ .pct-10 { width: 10%; }
+ .pct-15 { width: 15%; }
+ .pct-20 { width: 20%; }
+ .pct-25 { width: 25%; }
+ .pct-30 { width: 30%; }
+ .pct-35 { width: 35%; }
+ .pct-40 { width: 40%; }
+ .pct-45 { width: 45%; }
+ .pct-50 { width: 50%; }
+ .pct-55 { width: 55%; }
+ .pct-60 { width: 60%; }
+ .pct-65 { width: 65%; }
+ .pct-70 { width: 70%; }
+ .pct-75 { width: 75%; }
+ .pct-80 { width: 80%; }
+ .pct-85 { width: 85%; }
+ .pct-90 { width: 90%; }
+ .pct-95 { width: 95%; }
+ .pct-100 { width: 100%; }
/* MODAL ************************************************************************/