Redirect to the correct domain if using show all (#7265)

* Redirect to the correct domain if using show all

* Update bridges.php

* Update call_recordings.php

* Update conference_controls.php

* Update conference_profile_params.php

* Update conference_profiles.php

* Update email_queue.php

* Update event_guard_logs.php

* Update fax_queue.php

* Update user_settings.php

* Update require.php
This commit is contained in:
Alex 2025-02-20 16:30:09 -07:00 committed by GitHub
parent c2fe9d32f7
commit 8cfc221da4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
57 changed files with 273 additions and 0 deletions

View File

@ -211,8 +211,12 @@
if (!empty($access_controls) && count($access_controls) > 0) { if (!empty($access_controls) && count($access_controls) > 0) {
$x = 0; $x = 0;
foreach ($access_controls as $row) { foreach ($access_controls as $row) {
$list_row_url = '';
if (permission_exists('access_control_edit')) { if (permission_exists('access_control_edit')) {
$list_row_url = "access_control_edit.php?id=".urlencode($row['access_control_uuid']); $list_row_url = "access_control_edit.php?id=".urlencode($row['access_control_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('access_control_add') || permission_exists('access_control_edit') || permission_exists('access_control_delete')) { if (permission_exists('access_control_add') || permission_exists('access_control_edit') || permission_exists('access_control_delete')) {
@ -254,3 +258,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -234,8 +234,12 @@
if (!empty($bridges)) { if (!empty($bridges)) {
$x = 0; $x = 0;
foreach ($bridges as $row) { foreach ($bridges as $row) {
$list_row_url = '';
if (permission_exists('bridge_edit')) { if (permission_exists('bridge_edit')) {
$list_row_url = "bridge_edit.php?id=".urlencode($row['bridge_uuid']); $list_row_url = "bridge_edit.php?id=".urlencode($row['bridge_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('bridge_add') || permission_exists('bridge_edit') || permission_exists('bridge_delete')) { if (permission_exists('bridge_add') || permission_exists('bridge_edit') || permission_exists('bridge_delete')) {

View File

@ -309,8 +309,12 @@
if (!empty($result)) { if (!empty($result)) {
$x = 0; $x = 0;
foreach ($result as $row) { foreach ($result as $row) {
$list_row_url = '';
if (permission_exists('call_block_edit')) { if (permission_exists('call_block_edit')) {
$list_row_url = "call_block_edit.php?id=".urlencode($row['call_block_uuid']); $list_row_url = "call_block_edit.php?id=".urlencode($row['call_block_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('call_block_add') || permission_exists('call_block_edit') || permission_exists('call_block_delete')) { if (permission_exists('call_block_add') || permission_exists('call_block_edit') || permission_exists('call_block_delete')) {
@ -405,3 +409,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -227,8 +227,12 @@
if (!empty($result)) { if (!empty($result)) {
$x = 0; $x = 0;
foreach($result as $row) { foreach($result as $row) {
$list_row_url = '';
if (permission_exists('call_broadcast_edit')) { if (permission_exists('call_broadcast_edit')) {
$list_row_url = "call_broadcast_edit.php?id=".urlencode($row['call_broadcast_uuid']); $list_row_url = "call_broadcast_edit.php?id=".urlencode($row['call_broadcast_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('call_broadcast_add') || permission_exists('call_broadcast_delete')) { if (permission_exists('call_broadcast_add') || permission_exists('call_broadcast_delete')) {
@ -286,3 +290,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -128,6 +128,9 @@
$x = 0; $x = 0;
foreach($call_center_queues as $row) { foreach($call_center_queues as $row) {
$list_row_url = PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".escape($row['call_center_queue_uuid'])."&name=".urlencode(escape($row['queue_name'])); $list_row_url = PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".escape($row['call_center_queue_uuid'])."&name=".urlencode(escape($row['queue_name']));
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
echo " <td><a href='".$list_row_url."'>".escape($row['queue_name'])."</a></td>\n"; echo " <td><a href='".$list_row_url."'>".escape($row['queue_name'])."</a></td>\n";
echo " <td>".escape($row['queue_extension'])."</td>\n"; echo " <td>".escape($row['queue_extension'])."</td>\n";
@ -159,3 +162,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -214,8 +214,12 @@
if (!empty($result)) { if (!empty($result)) {
$x = 0; $x = 0;
foreach($result as $row) { foreach($result as $row) {
$list_row_url = '';
if (permission_exists('call_center_agent_edit')) { if (permission_exists('call_center_agent_edit')) {
$list_row_url = "call_center_agent_edit.php?id=".urlencode($row['call_center_agent_uuid']); $list_row_url = "call_center_agent_edit.php?id=".urlencode($row['call_center_agent_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('call_center_agent_delete')) { if (permission_exists('call_center_agent_delete')) {
@ -290,3 +294,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -227,8 +227,12 @@
if (!empty($result)) { if (!empty($result)) {
$x = 0; $x = 0;
foreach($result as $row) { foreach($result as $row) {
$list_row_url = '';
if (permission_exists('call_center_queue_edit')) { if (permission_exists('call_center_queue_edit')) {
$list_row_url = "call_center_queue_edit.php?id=".urlencode($row['call_center_queue_uuid']); $list_row_url = "call_center_queue_edit.php?id=".urlencode($row['call_center_queue_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_delete')) { if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_delete')) {
@ -293,3 +297,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -243,8 +243,12 @@
if (!empty($call_flows)) { if (!empty($call_flows)) {
$x = 0; $x = 0;
foreach ($call_flows as $row) { foreach ($call_flows as $row) {
$list_row_url = '';
if (permission_exists('call_flow_edit')) { if (permission_exists('call_flow_edit')) {
$list_row_url = "call_flow_edit.php?id=".urlencode($row['call_flow_uuid']); $list_row_url = "call_flow_edit.php?id=".urlencode($row['call_flow_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('call_flow_add') || permission_exists('call_flow_edit') || permission_exists('call_flow_delete')) { if (permission_exists('call_flow_add') || permission_exists('call_flow_edit') || permission_exists('call_flow_delete')) {
@ -311,3 +315,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -306,6 +306,9 @@
$x = 0; $x = 0;
foreach ($extensions as $row) { foreach ($extensions as $row) {
$list_row_url = PROJECT_PATH . "/app/call_forward/call_forward_edit.php?id=" . $row['extension_uuid'] . "&return_url=" . urlencode($_SERVER['REQUEST_URI']); $list_row_url = PROJECT_PATH . "/app/call_forward/call_forward_edit.php?id=" . $row['extension_uuid'] . "&return_url=" . urlencode($_SERVER['REQUEST_URI']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
echo "<tr class='list-row' href='" . $list_row_url . "'>\n"; echo "<tr class='list-row' href='" . $list_row_url . "'>\n";
if (!$is_included && $extensions) { if (!$is_included && $extensions) {
echo " <td class='checkbox'>\n"; echo " <td class='checkbox'>\n";
@ -424,3 +427,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
} }
?> ?>

View File

@ -229,8 +229,12 @@
if (!empty($conference_centers)) { if (!empty($conference_centers)) {
$x = 0; $x = 0;
foreach ($conference_centers as $row) { foreach ($conference_centers as $row) {
$list_row_url = '';
if (permission_exists('conference_center_edit')) { if (permission_exists('conference_center_edit')) {
$list_row_url = "conference_center_edit.php?id=".$row['conference_center_uuid']; $list_row_url = "conference_center_edit.php?id=".$row['conference_center_uuid'];
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('conference_center_edit') || permission_exists('conference_center_delete')) { if (permission_exists('conference_center_edit') || permission_exists('conference_center_delete')) {
@ -285,3 +289,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -319,8 +319,12 @@
$participant_pin = substr($participant_pin, 0, 3) ."-". substr($participant_pin, 3, 3) ."-". substr($participant_pin, -3)."\n"; $participant_pin = substr($participant_pin, 0, 3) ."-". substr($participant_pin, 3, 3) ."-". substr($participant_pin, -3)."\n";
} }
$list_row_url = '';
if (permission_exists('conference_room_edit')) { if (permission_exists('conference_room_edit')) {
$list_row_url = "conference_room_edit.php?id=".urlencode($row['conference_room_uuid']); $list_row_url = "conference_room_edit.php?id=".urlencode($row['conference_room_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('conference_room_add') || permission_exists('conference_room_edit') || permission_exists('conference_room_delete')) { if (permission_exists('conference_room_add') || permission_exists('conference_room_edit') || permission_exists('conference_room_delete')) {
@ -508,3 +512,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -231,8 +231,12 @@
if (!empty($conferences)) { if (!empty($conferences)) {
$x = 0; $x = 0;
foreach($conferences as $row) { foreach($conferences as $row) {
$list_row_url = '';
if (permission_exists('conference_edit')) { if (permission_exists('conference_edit')) {
$list_row_url = "conference_edit.php?id=".urlencode($row['conference_uuid']); $list_row_url = "conference_edit.php?id=".urlencode($row['conference_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('conference_add') || permission_exists('conference_edit') || permission_exists('conference_delete')) { if (permission_exists('conference_add') || permission_exists('conference_edit') || permission_exists('conference_delete')) {
@ -301,3 +305,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -195,8 +195,12 @@
$x = 0; $x = 0;
foreach($transactions as $row) { foreach($transactions as $row) {
if (empty($row['domain_name'])) { $row['domain_name'] = $text['label-global']; } if (empty($row['domain_name'])) { $row['domain_name'] = $text['label-global']; }
$list_row_url = '';
if (permission_exists('database_transaction_edit')) { if (permission_exists('database_transaction_edit')) {
$list_row_url = "database_transaction_edit.php?id=".urlencode($row['database_transaction_uuid']).(!empty($page) ? "&page=".urlencode($page) : null).(!empty($search) ? "&search=".urlencode($search) : null); $list_row_url = "database_transaction_edit.php?id=".urlencode($row['database_transaction_uuid']).(!empty($page) ? "&page=".urlencode($page) : null).(!empty($search) ? "&search=".urlencode($search) : null);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
echo " <td>".escape($row['domain_name'])."&nbsp;</td>\n"; echo " <td>".escape($row['domain_name'])."&nbsp;</td>\n";
@ -225,3 +229,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -375,8 +375,12 @@
foreach ($destinations as $row) { foreach ($destinations as $row) {
//create the row link //create the row link
$list_row_url = '';
if (permission_exists('destination_edit')) { if (permission_exists('destination_edit')) {
$list_row_url = "destination_edit.php?id=".urlencode($row['destination_uuid']); $list_row_url = "destination_edit.php?id=".urlencode($row['destination_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
//show the data //show the data
@ -459,3 +463,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -237,8 +237,12 @@
if (is_array($device_profiles) && @sizeof($device_profiles) != 0) { if (is_array($device_profiles) && @sizeof($device_profiles) != 0) {
$x = 0; $x = 0;
foreach($device_profiles as $row) { foreach($device_profiles as $row) {
$list_row_url = '';
if (permission_exists('device_profile_edit')) { if (permission_exists('device_profile_edit')) {
$list_row_url = "device_profile_edit.php?id=".urlencode($row['device_profile_uuid']); $list_row_url = "device_profile_edit.php?id=".urlencode($row['device_profile_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('device_profile_add') || permission_exists('device_profile_edit') || permission_exists('device_profile_delete')) { if (permission_exists('device_profile_add') || permission_exists('device_profile_edit') || permission_exists('device_profile_delete')) {
@ -298,3 +302,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -211,8 +211,12 @@
unset ($vendor_function_groups); unset ($vendor_function_groups);
//show the row of data //show the row of data
$list_row_url = '';
if (permission_exists('device_vendor_function_edit')) { if (permission_exists('device_vendor_function_edit')) {
$list_row_url = "device_vendor_function_edit.php?device_vendor_uuid=".urlencode($row['device_vendor_uuid'])."&id=".urlencode($row['device_vendor_function_uuid']); $list_row_url = "device_vendor_function_edit.php?device_vendor_uuid=".urlencode($row['device_vendor_uuid'])."&id=".urlencode($row['device_vendor_function_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('device_vendor_function_add') || permission_exists('device_vendor_function_edit') || permission_exists('device_vendor_function_delete')) { if (permission_exists('device_vendor_function_add') || permission_exists('device_vendor_function_edit') || permission_exists('device_vendor_function_delete')) {
@ -289,3 +293,4 @@
echo "</script>\n"; echo "</script>\n";
?> ?>

View File

@ -178,8 +178,12 @@
if (is_array($result) && @sizeof($result) != 0) { if (is_array($result) && @sizeof($result) != 0) {
$x = 0; $x = 0;
foreach($result as $row) { foreach($result as $row) {
$list_row_url = '';
if (permission_exists('device_vendor_edit')) { if (permission_exists('device_vendor_edit')) {
$list_row_url = "device_vendor_edit.php?id=".urlencode($row['device_vendor_uuid']); $list_row_url = "device_vendor_edit.php?id=".urlencode($row['device_vendor_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('device_vendor_edit') || permission_exists('device_vendor_delete')) { if (permission_exists('device_vendor_edit') || permission_exists('device_vendor_delete')) {
@ -222,3 +226,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -397,8 +397,12 @@
} }
} }
$list_row_url = '';
if (permission_exists('device_edit')) { if (permission_exists('device_edit')) {
$list_row_url = "device_edit.php?id=".urlencode($row['device_uuid']); $list_row_url = "device_edit.php?id=".urlencode($row['device_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
$device_provisioned_method = ''; $device_provisioned_method = '';
@ -473,3 +477,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -551,9 +551,13 @@
$x = 0; $x = 0;
foreach ($dialplans as $row) { foreach ($dialplans as $row) {
$list_row_url = '';
if ($row['app_uuid'] == "4b821450-926b-175a-af93-a03c441818b1") { if ($row['app_uuid'] == "4b821450-926b-175a-af93-a03c441818b1") {
if (permission_exists('time_condition_edit') || permission_exists('dialplan_edit')) { if (permission_exists('time_condition_edit') || permission_exists('dialplan_edit')) {
$list_row_url = PROJECT_PATH."/app/time_conditions/time_condition_edit.php?id=".urlencode($row['dialplan_uuid']).(is_uuid($app_uuid) ? "&app_uuid=".urlencode($app_uuid) : null); $list_row_url = PROJECT_PATH."/app/time_conditions/time_condition_edit.php?id=".urlencode($row['dialplan_uuid']).(is_uuid($app_uuid) ? "&app_uuid=".urlencode($app_uuid) : null);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
} }
else if ( else if (
@ -563,6 +567,9 @@
permission_exists('dialplan_edit') permission_exists('dialplan_edit')
) { ) {
$list_row_url = "dialplan_edit.php?id=".urlencode($row['dialplan_uuid']).(is_uuid($app_uuid) ? "&app_uuid=".urlencode($app_uuid) : null); $list_row_url = "dialplan_edit.php?id=".urlencode($row['dialplan_uuid']).(is_uuid($app_uuid) ? "&app_uuid=".urlencode($app_uuid) : null);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
else { else {
unset($list_row_url); unset($list_row_url);
@ -648,3 +655,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -337,8 +337,12 @@
if (is_array($email_queue) && @sizeof($email_queue) != 0) { if (is_array($email_queue) && @sizeof($email_queue) != 0) {
$x = 0; $x = 0;
foreach ($email_queue as $row) { foreach ($email_queue as $row) {
$list_row_url = '';
if (permission_exists('email_queue_edit')) { if (permission_exists('email_queue_edit')) {
$list_row_url = "email_queue_edit.php?id=".urlencode($row['email_queue_uuid']); $list_row_url = "email_queue_edit.php?id=".urlencode($row['email_queue_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('email_queue_add') || permission_exists('email_queue_edit') || permission_exists('email_queue_delete')) { if (permission_exists('email_queue_add') || permission_exists('email_queue_edit') || permission_exists('email_queue_delete')) {

View File

@ -257,8 +257,12 @@
if (!empty($result)) { if (!empty($result)) {
$x = 0; $x = 0;
foreach($result as $row) { foreach($result as $row) {
$list_row_url = '';
if (permission_exists('email_template_edit')) { if (permission_exists('email_template_edit')) {
$list_row_url = "email_template_edit.php?id=".urlencode($row['email_template_uuid']); $list_row_url = "email_template_edit.php?id=".urlencode($row['email_template_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('email_template_add') || permission_exists('email_template_edit') || permission_exists('email_template_delete')) { if (permission_exists('email_template_add') || permission_exists('email_template_edit') || permission_exists('email_template_delete')) {
@ -323,3 +327,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -244,8 +244,12 @@
if (is_array($event_guard_logs) && @sizeof($event_guard_logs) != 0) { if (is_array($event_guard_logs) && @sizeof($event_guard_logs) != 0) {
$x = 0; $x = 0;
foreach ($event_guard_logs as $row) { foreach ($event_guard_logs as $row) {
$list_row_url = '';
if (permission_exists('event_guard_log_edit')) { if (permission_exists('event_guard_log_edit')) {
$list_row_url = "event_guard_log_edit.php?id=".urlencode($row['event_guard_log_uuid']); $list_row_url = "event_guard_log_edit.php?id=".urlencode($row['event_guard_log_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row'>\n"; echo "<tr class='list-row'>\n";
if (permission_exists('event_guard_log_add') || permission_exists('event_guard_log_edit') || permission_exists('event_guard_log_delete')) { if (permission_exists('event_guard_log_add') || permission_exists('event_guard_log_edit') || permission_exists('event_guard_log_delete')) {

View File

@ -339,8 +339,12 @@
if (is_array($extensions) && @sizeof($extensions) != 0) { if (is_array($extensions) && @sizeof($extensions) != 0) {
$x = 0; $x = 0;
foreach($extensions as $row) { foreach($extensions as $row) {
$list_row_url = '';
if (permission_exists('extension_edit')) { if (permission_exists('extension_edit')) {
$list_row_url = "extension_edit.php?id=".urlencode($row['extension_uuid']).(is_numeric($page) ? '&page='.urlencode($page) : null); $list_row_url = "extension_edit.php?id=".urlencode($row['extension_uuid']).(is_numeric($page) ? '&page='.urlencode($page) : null);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('extension_enabled') || permission_exists('extension_delete')) { if (permission_exists('extension_enabled') || permission_exists('extension_delete')) {
@ -447,3 +451,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -247,8 +247,12 @@
if (is_array($result) && @sizeof($result) != 0) { if (is_array($result) && @sizeof($result) != 0) {
$x = 0; $x = 0;
foreach ($result as $row) { foreach ($result as $row) {
$list_row_url = '';
if (permission_exists('fax_extension_edit')) { if (permission_exists('fax_extension_edit')) {
$list_row_url = "fax_edit.php?id=".urlencode($row['fax_uuid']); $list_row_url = "fax_edit.php?id=".urlencode($row['fax_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('fax_extension_add') || permission_exists('fax_extension_delete')) { if (permission_exists('fax_extension_add') || permission_exists('fax_extension_delete')) {
@ -325,3 +329,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -332,8 +332,12 @@
if (!empty($fax_queue)) { if (!empty($fax_queue)) {
$x = 0; $x = 0;
foreach ($fax_queue as $row) { foreach ($fax_queue as $row) {
$list_row_url = '';
if ($permission['fax_queue_edit']) { if ($permission['fax_queue_edit']) {
$list_row_url = "fax_queue_edit.php?id=".urlencode($row['fax_queue_uuid']); $list_row_url = "fax_queue_edit.php?id=".urlencode($row['fax_queue_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if ($permission['fax_queue_add'] || $permission['fax_queue_edit'] || $permission['fax_queue_delete']) { if ($permission['fax_queue_add'] || $permission['fax_queue_edit'] || $permission['fax_queue_delete']) {

View File

@ -264,6 +264,9 @@
foreach ($fifo as $row) { foreach ($fifo as $row) {
if (permission_exists('fifo_edit')) { if (permission_exists('fifo_edit')) {
$list_row_url = "fifo_edit.php?id=".urlencode($row['fifo_uuid']); $list_row_url = "fifo_edit.php?id=".urlencode($row['fifo_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('fifo_add') || permission_exists('fifo_edit') || permission_exists('fifo_delete')) { if (permission_exists('fifo_add') || permission_exists('fifo_edit') || permission_exists('fifo_delete')) {
@ -320,3 +323,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -286,8 +286,12 @@
if (!empty($gateways)) { if (!empty($gateways)) {
$x = 0; $x = 0;
foreach($gateways as $row) { foreach($gateways as $row) {
$list_row_url = '';
if (permission_exists('gateway_edit')) { if (permission_exists('gateway_edit')) {
$list_row_url = "gateway_edit.php?id=".urlencode($row['gateway_uuid']); $list_row_url = "gateway_edit.php?id=".urlencode($row['gateway_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('gateway_add') || permission_exists('gateway_edit') || permission_exists('gateway_delete')) { if (permission_exists('gateway_add') || permission_exists('gateway_edit') || permission_exists('gateway_delete')) {
@ -391,3 +395,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -236,8 +236,12 @@
if (!empty($ivr_menus)) { if (!empty($ivr_menus)) {
$x = 0; $x = 0;
foreach($ivr_menus as $row) { foreach($ivr_menus as $row) {
$list_row_url = '';
if (permission_exists('ivr_menu_edit')) { if (permission_exists('ivr_menu_edit')) {
$list_row_url = "ivr_menu_edit.php?id=".urlencode($row['ivr_menu_uuid']); $list_row_url = "ivr_menu_edit.php?id=".urlencode($row['ivr_menu_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('ivr_menu_add') || permission_exists('ivr_menu_edit') || permission_exists('ivr_menu_delete')) { if (permission_exists('ivr_menu_add') || permission_exists('ivr_menu_edit') || permission_exists('ivr_menu_delete')) {
@ -298,3 +302,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -202,8 +202,12 @@
echo "</tr>\n"; echo "</tr>\n";
write_header($row["module_category"]); write_header($row["module_category"]);
} }
$list_row_url = '';
if (permission_exists('module_edit')) { if (permission_exists('module_edit')) {
$list_row_url = "module_edit.php?id=".urlencode($row['module_uuid']); $list_row_url = "module_edit.php?id=".urlencode($row['module_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('module_edit') || permission_exists('module_delete')) { if (permission_exists('module_edit') || permission_exists('module_delete')) {
@ -283,3 +287,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -225,8 +225,12 @@
if (!empty($number_translations)) { if (!empty($number_translations)) {
$x = 0; $x = 0;
foreach ($number_translations as $row) { foreach ($number_translations as $row) {
$list_row_url = '';
if (permission_exists('number_translation_edit')) { if (permission_exists('number_translation_edit')) {
$list_row_url = "number_translation_edit.php?id=".urlencode($row['number_translation_uuid']); $list_row_url = "number_translation_edit.php?id=".urlencode($row['number_translation_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('number_translation_add') || permission_exists('number_translation_edit') || permission_exists('number_translation_delete')) { if (permission_exists('number_translation_add') || permission_exists('number_translation_edit') || permission_exists('number_translation_delete')) {
@ -276,3 +280,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -211,8 +211,12 @@
if (is_array($phrases) && @sizeof($phrases) != 0) { if (is_array($phrases) && @sizeof($phrases) != 0) {
$x = 0; $x = 0;
foreach($phrases as $row) { foreach($phrases as $row) {
$list_row_url = '';
if (permission_exists('phrase_edit')) { if (permission_exists('phrase_edit')) {
$list_row_url = "phrase_edit.php?id=".urlencode($row['phrase_uuid']); $list_row_url = "phrase_edit.php?id=".urlencode($row['phrase_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('phrase_add') || permission_exists('phrase_edit') || permission_exists('phrase_delete')) { if (permission_exists('phrase_add') || permission_exists('phrase_edit') || permission_exists('phrase_delete')) {
@ -273,3 +277,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -189,8 +189,12 @@
if (is_array($pin_numbers) && @sizeof($pin_numbers) != 0) { if (is_array($pin_numbers) && @sizeof($pin_numbers) != 0) {
$x = 0; $x = 0;
foreach ($pin_numbers as $row) { foreach ($pin_numbers as $row) {
$list_row_url = '';
if (permission_exists('pin_number_edit')) { if (permission_exists('pin_number_edit')) {
$list_row_url = "pin_number_edit.php?id=".urlencode($row['pin_number_uuid']); $list_row_url = "pin_number_edit.php?id=".urlencode($row['pin_number_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('pin_number_add') || permission_exists('pin_number_edit') || permission_exists('pin_number_delete')) { if (permission_exists('pin_number_add') || permission_exists('pin_number_edit') || permission_exists('pin_number_delete')) {
@ -241,3 +245,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -529,8 +529,12 @@
echo "<tr class='list-row' id='recording_progress_bar_".escape($row['recording_uuid'])."' onclick=\"recording_seek(event,'".escape($row['recording_uuid'] ?? '')."')\" style='display: none;'><td id='playback_progress_bar_background_".escape($row['recording_uuid'])."' class='playback_progress_bar_background' style='padding: 0; border: none;' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".escape($row['recording_uuid'])."'></span></td></tr>\n"; echo "<tr class='list-row' id='recording_progress_bar_".escape($row['recording_uuid'])."' onclick=\"recording_seek(event,'".escape($row['recording_uuid'] ?? '')."')\" style='display: none;'><td id='playback_progress_bar_background_".escape($row['recording_uuid'])."' class='playback_progress_bar_background' style='padding: 0; border: none;' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".escape($row['recording_uuid'])."'></span></td></tr>\n";
echo "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color echo "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color
} }
$list_row_url = '';
if (permission_exists('recording_edit')) { if (permission_exists('recording_edit')) {
$list_row_url = "recording_edit.php?id=".urlencode($row['recording_uuid']); $list_row_url = "recording_edit.php?id=".urlencode($row['recording_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('recording_delete')) { if (permission_exists('recording_delete')) {
@ -710,3 +714,4 @@
} }
?> ?>

View File

@ -257,8 +257,12 @@
if (is_array($ring_groups) && @sizeof($ring_groups) != 0) { if (is_array($ring_groups) && @sizeof($ring_groups) != 0) {
$x = 0; $x = 0;
foreach ($ring_groups as $row) { foreach ($ring_groups as $row) {
$list_row_url = '';
if (permission_exists('ring_group_edit')) { if (permission_exists('ring_group_edit')) {
$list_row_url = "ring_group_edit.php?id=".urlencode($row['ring_group_uuid']); $list_row_url = "ring_group_edit.php?id=".urlencode($row['ring_group_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('ring_group_add') || permission_exists('ring_group_edit') || permission_exists('ring_group_delete')) { if (permission_exists('ring_group_add') || permission_exists('ring_group_edit') || permission_exists('ring_group_delete')) {
@ -315,3 +319,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -188,8 +188,12 @@
if (!empty($sip_profiles) && @sizeof($sip_profiles) != 0) { if (!empty($sip_profiles) && @sizeof($sip_profiles) != 0) {
$x = 0; $x = 0;
foreach ($sip_profiles as $row) { foreach ($sip_profiles as $row) {
$list_row_url = '';
if (permission_exists('sip_profile_edit')) { if (permission_exists('sip_profile_edit')) {
$list_row_url = "sip_profile_edit.php?id=".urlencode($row['sip_profile_uuid']); $list_row_url = "sip_profile_edit.php?id=".urlencode($row['sip_profile_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('sip_profile_add') || permission_exists('sip_profile_edit') || permission_exists('sip_profile_delete')) { if (permission_exists('sip_profile_add') || permission_exists('sip_profile_edit') || permission_exists('sip_profile_delete')) {
@ -239,3 +243,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -331,3 +331,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -209,8 +209,12 @@
if (!empty($sofia_global_settings) && @sizeof($sofia_global_settings) != 0) { if (!empty($sofia_global_settings) && @sizeof($sofia_global_settings) != 0) {
$x = 0; $x = 0;
foreach ($sofia_global_settings as $row) { foreach ($sofia_global_settings as $row) {
$list_row_url = '';
if (permission_exists('sofia_global_setting_edit')) { if (permission_exists('sofia_global_setting_edit')) {
$list_row_url = "sofia_global_setting_edit.php?id=".urlencode($row['sofia_global_setting_uuid']); $list_row_url = "sofia_global_setting_edit.php?id=".urlencode($row['sofia_global_setting_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('sofia_global_setting_add') || permission_exists('sofia_global_setting_edit') || permission_exists('sofia_global_setting_delete')) { if (permission_exists('sofia_global_setting_add') || permission_exists('sofia_global_setting_edit') || permission_exists('sofia_global_setting_delete')) {
@ -261,3 +265,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -248,8 +248,12 @@
if (!empty($streams)) { if (!empty($streams)) {
$x = 0; $x = 0;
foreach ($streams as $row) { foreach ($streams as $row) {
$list_row_url = '';
if (permission_exists('stream_edit')) { if (permission_exists('stream_edit')) {
$list_row_url = "stream_edit.php?id=".urlencode($row['stream_uuid']); $list_row_url = "stream_edit.php?id=".urlencode($row['stream_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('stream_add') || permission_exists('stream_edit') || permission_exists('stream_delete')) { if (permission_exists('stream_add') || permission_exists('stream_edit') || permission_exists('stream_delete')) {
@ -315,3 +319,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -218,8 +218,12 @@
if (is_array($dialplans) && @sizeof($dialplans) != 0) { if (is_array($dialplans) && @sizeof($dialplans) != 0) {
$x = 0; $x = 0;
foreach ($dialplans as $row) { foreach ($dialplans as $row) {
$list_row_url = '';
if (permission_exists('time_condition_edit')) { if (permission_exists('time_condition_edit')) {
$list_row_url = "time_condition_edit.php?id=".urlencode($row['dialplan_uuid']); $list_row_url = "time_condition_edit.php?id=".urlencode($row['dialplan_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('time_condition_add') || permission_exists('time_condition_edit') || permission_exists('time_condition_delete')) { if (permission_exists('time_condition_add') || permission_exists('time_condition_edit') || permission_exists('time_condition_delete')) {
@ -282,3 +286,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -224,8 +224,12 @@
echo "</tr>\n"; echo "</tr>\n";
write_header($row["var_category"]); write_header($row["var_category"]);
} }
$list_row_url = '';
if (permission_exists('var_edit')) { if (permission_exists('var_edit')) {
$list_row_url = "var_edit.php?id=".urlencode($row['var_uuid']); $list_row_url = "var_edit.php?id=".urlencode($row['var_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('var_add') || permission_exists('var_edit') || permission_exists('var_delete')) { if (permission_exists('var_add') || permission_exists('var_edit') || permission_exists('var_delete')) {
@ -283,3 +287,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -437,8 +437,12 @@
echo "<tr class='list-row' id='recording_progress_bar_".escape($row['voicemail_greeting_uuid'])."' onclick=\"recording_seek(event,'".escape($row['voicemail_greeting_uuid'])."')\" style='display: none;'><td id='playback_progress_bar_background_".escape($row['voicemail_greeting_uuid'])."' class='playback_progress_bar_background' style='padding: 0; border: none;' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".escape($row['voicemail_greeting_uuid'])."'></span></td></tr>\n"; echo "<tr class='list-row' id='recording_progress_bar_".escape($row['voicemail_greeting_uuid'])."' onclick=\"recording_seek(event,'".escape($row['voicemail_greeting_uuid'])."')\" style='display: none;'><td id='playback_progress_bar_background_".escape($row['voicemail_greeting_uuid'])."' class='playback_progress_bar_background' style='padding: 0; border: none;' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".escape($row['voicemail_greeting_uuid'])."'></span></td></tr>\n";
echo "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color echo "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color
} }
$list_row_url = '';
if (permission_exists('voicemail_greeting_edit')) { if (permission_exists('voicemail_greeting_edit')) {
$list_row_url = "voicemail_greeting_edit.php?id=".urlencode($row['voicemail_greeting_uuid'])."&voicemail_id=".urlencode($voicemail_id); $list_row_url = "voicemail_greeting_edit.php?id=".urlencode($row['voicemail_greeting_uuid'])."&voicemail_id=".urlencode($voicemail_id);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('voicemail_greeting_delete')) { if (permission_exists('voicemail_greeting_delete')) {
@ -605,3 +609,4 @@
} }
?> ?>

View File

@ -297,8 +297,12 @@
if (is_array($voicemails) && sizeof($voicemails) != 0) { if (is_array($voicemails) && sizeof($voicemails) != 0) {
$x = 0; $x = 0;
foreach ($voicemails as $row) { foreach ($voicemails as $row) {
$list_row_url = '';
if (permission_exists('voicemail_edit')) { if (permission_exists('voicemail_edit')) {
$list_row_url = "voicemail_edit.php?id=".urlencode($row['voicemail_uuid']); $list_row_url = "voicemail_edit.php?id=".urlencode($row['voicemail_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('voicemail_edit') || permission_exists('voicemail_delete')) { if (permission_exists('voicemail_edit') || permission_exists('voicemail_delete')) {
@ -373,3 +377,4 @@
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";

View File

@ -877,8 +877,12 @@
$content .= "<tr class='list-row' id='recording_progress_bar_".$row['xml_cdr_uuid']."' style='display: none;' onclick=\"recording_seek(event,'".escape($row['xml_cdr_uuid'])."')\"><td id='playback_progress_bar_background_".escape($row['xml_cdr_uuid'])."' class='playback_progress_bar_background' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".$row['xml_cdr_uuid']."'></span></td></tr>\n"; $content .= "<tr class='list-row' id='recording_progress_bar_".$row['xml_cdr_uuid']."' style='display: none;' onclick=\"recording_seek(event,'".escape($row['xml_cdr_uuid'])."')\"><td id='playback_progress_bar_background_".escape($row['xml_cdr_uuid'])."' class='playback_progress_bar_background' colspan='".$col_count."'><span class='playback_progress_bar' id='recording_progress_".$row['xml_cdr_uuid']."'></span></td></tr>\n";
$content .= "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color $content .= "<tr class='list-row' style='display: none;'><td></td></tr>\n"; // dummy row to maintain alternating background color
} }
$list_row_url = '';
if ($permission['xml_cdr_details']) { if ($permission['xml_cdr_details']) {
$list_row_url = "xml_cdr_details.php?id=".urlencode($row['xml_cdr_uuid']).($_REQUEST['show'] ? "&show=all" : null); $list_row_url = "xml_cdr_details.php?id=".urlencode($row['xml_cdr_uuid']).($_REQUEST['show'] ? "&show=all" : null);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
$content .= "<tr class='list-row' href='".$list_row_url."'>\n"; $content .= "<tr class='list-row' href='".$list_row_url."'>\n";
if (!$archive_request && $permission['xml_cdr_delete']) { if (!$archive_request && $permission['xml_cdr_delete']) {
@ -1059,3 +1063,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -88,8 +88,12 @@
$x = 0; $x = 0;
foreach ($contact_addresses as $row) { foreach ($contact_addresses as $row) {
$map_query = $row['address_street']." ".$row['address_extended'].", ".$row['address_locality'].", ".$row['address_region'].", ".$row['address_region'].", ".$row['address_postal_code']; $map_query = $row['address_street']." ".$row['address_extended'].", ".$row['address_locality'].", ".$row['address_region'].", ".$row['address_region'].", ".$row['address_postal_code'];
$list_row_url = '';
if (permission_exists('contact_address_edit')) { if (permission_exists('contact_address_edit')) {
$list_row_url = "contact_address_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_address_uuid']); $list_row_url = "contact_address_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_address_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_address_delete')) { if (permission_exists('contact_address_delete')) {
@ -123,3 +127,4 @@
} }
?> ?>

View File

@ -107,8 +107,12 @@
foreach ($contact_attachments as $row) { foreach ($contact_attachments as $row) {
$attachment_type = strtolower(pathinfo($row['attachment_filename'], PATHINFO_EXTENSION)); $attachment_type = strtolower(pathinfo($row['attachment_filename'], PATHINFO_EXTENSION));
$attachment_type_label = $attachment_type == 'jpg' || $attachment_type == 'jpeg' || $attachment_type == 'gif' || $attachment_type == 'png' ? $text['label-image'] : $text['label-file']; $attachment_type_label = $attachment_type == 'jpg' || $attachment_type == 'jpeg' || $attachment_type == 'gif' || $attachment_type == 'png' ? $text['label-image'] : $text['label-file'];
$list_row_url = '';
if (permission_exists('contact_attachment_edit')) { if (permission_exists('contact_attachment_edit')) {
$list_row_url = "contact_attachment_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_attachment_uuid']); $list_row_url = "contact_attachment_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_attachment_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_attachment_delete')) { if (permission_exists('contact_attachment_delete')) {
@ -147,3 +151,4 @@
} }
?> ?>

View File

@ -79,8 +79,12 @@
if (!empty($contact_emails)) { if (!empty($contact_emails)) {
$x = 0; $x = 0;
foreach ($contact_emails as $row) { foreach ($contact_emails as $row) {
$list_row_url = '';
if (permission_exists('contact_email_edit')) { if (permission_exists('contact_email_edit')) {
$list_row_url = "contact_email_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_email_uuid']); $list_row_url = "contact_email_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_email_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_email_delete')) { if (permission_exists('contact_email_delete')) {
@ -110,3 +114,4 @@
} }
?> ?>

View File

@ -77,8 +77,12 @@
if (!empty($contact_extensions)) { if (!empty($contact_extensions)) {
$x = 0; $x = 0;
foreach ($contact_extensions as $row) { foreach ($contact_extensions as $row) {
$list_row_url = '';
if (permission_exists('extension_edit')) { if (permission_exists('extension_edit')) {
$list_row_url = PROJECT_PATH.'/app/extensions/extension_edit.php?id='.urlencode($row['extension_uuid']); $list_row_url = PROJECT_PATH.'/app/extensions/extension_edit.php?id='.urlencode($row['extension_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."' ".($row['url_primary'] ? "style='font-weight: bold;'" : null).">\n"; echo "<tr class='list-row' href='".$list_row_url."' ".($row['url_primary'] ? "style='font-weight: bold;'" : null).">\n";
echo " <td>"; echo " <td>";
@ -109,3 +113,4 @@
} }
?> ?>

View File

@ -82,8 +82,12 @@
$contact_note = $row['contact_note']; $contact_note = $row['contact_note'];
$contact_note = escape($contact_note); $contact_note = escape($contact_note);
$contact_note = str_replace("\n","<br />",$contact_note); $contact_note = str_replace("\n","<br />",$contact_note);
$list_row_url = '';
if (permission_exists('contact_note_add')) { if (permission_exists('contact_note_add')) {
$list_row_url = "contact_note_edit.php?contact_uuid=".escape($row['contact_uuid'])."&id=".escape($row['contact_note_uuid']); $list_row_url = "contact_note_edit.php?contact_uuid=".escape($row['contact_uuid'])."&id=".escape($row['contact_note_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_note_delete')) { if (permission_exists('contact_note_delete')) {
@ -112,3 +116,4 @@
} }
?> ?>

View File

@ -93,8 +93,12 @@
if (!empty($contact_phones)) { if (!empty($contact_phones)) {
$x = 0; $x = 0;
foreach ($contact_phones as $row) { foreach ($contact_phones as $row) {
$list_row_url = '';
if (permission_exists('contact_phone_edit')) { if (permission_exists('contact_phone_edit')) {
$list_row_url = "contact_phone_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_phone_uuid']); $list_row_url = "contact_phone_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_phone_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_phone_delete')) { if (permission_exists('contact_phone_delete')) {
@ -144,3 +148,4 @@
} }
?> ?>

View File

@ -93,8 +93,12 @@
if (!empty($contact_relations)) { if (!empty($contact_relations)) {
$x = 0; $x = 0;
foreach ($contact_relations as $row) { foreach ($contact_relations as $row) {
$list_row_url = '';
if (permission_exists('contact_relation_edit')) { if (permission_exists('contact_relation_edit')) {
$list_row_url = "contact_relation_edit.php?contact_uuid=".urlencode($contact_uuid)."&id=".urlencode($row['contact_relation_uuid']); $list_row_url = "contact_relation_edit.php?contact_uuid=".urlencode($contact_uuid)."&id=".urlencode($row['contact_relation_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_relation_delete')) { if (permission_exists('contact_relation_delete')) {
@ -124,3 +128,4 @@
} }
?> ?>

View File

@ -86,8 +86,12 @@
if (!empty($contact_settings)) { if (!empty($contact_settings)) {
$x = 0; $x = 0;
foreach ($contact_settings as $row) { foreach ($contact_settings as $row) {
$list_row_url = '';
if (permission_exists('contact_setting_edit')) { if (permission_exists('contact_setting_edit')) {
$list_row_url = "contact_setting_edit.php?contact_uuid=".urlencode($contact_uuid)."&id=".urlencode($row['contact_setting_uuid']); $list_row_url = "contact_setting_edit.php?contact_uuid=".urlencode($contact_uuid)."&id=".urlencode($row['contact_setting_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_setting_delete')) { if (permission_exists('contact_setting_delete')) {
@ -133,3 +137,4 @@
} }
?> ?>

View File

@ -97,8 +97,12 @@
} }
$tmp = explode(' ', $row['time_start']); $tmp = explode(' ', $row['time_start']);
$time_start = $tmp[0]; $time_start = $tmp[0];
$list_row_url = '';
if (permission_exists('contact_time_edit')) { if (permission_exists('contact_time_edit')) {
$list_row_url = "contact_time_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_time_uuid']); $list_row_url = "contact_time_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_time_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_time_delete')) { if (permission_exists('contact_time_delete')) {
@ -129,3 +133,4 @@
} }
?> ?>

View File

@ -81,8 +81,12 @@
if (!empty($contact_urls)) { if (!empty($contact_urls)) {
$x = 0; $x = 0;
foreach ($contact_urls as $row) { foreach ($contact_urls as $row) {
$list_row_url = '';
if (permission_exists('contact_url_edit')) { if (permission_exists('contact_url_edit')) {
$list_row_url = "contact_url_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_url_uuid']); $list_row_url = "contact_url_edit.php?contact_uuid=".urlencode($row['contact_uuid'])."&id=".urlencode($row['contact_url_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_url_delete')) { if (permission_exists('contact_url_delete')) {
@ -112,3 +116,4 @@
} }
?> ?>

View File

@ -396,6 +396,9 @@
$x = 0; $x = 0;
foreach($contacts as $row) { foreach($contacts as $row) {
$list_row_url = "contact_view.php?id=".urlencode($row['contact_uuid'])."&query_string=".urlencode($_SERVER["QUERY_STRING"]); $list_row_url = "contact_view.php?id=".urlencode($row['contact_uuid'])."&query_string=".urlencode($_SERVER["QUERY_STRING"]);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('contact_delete')) { if (permission_exists('contact_delete')) {
echo " <td class='checkbox'>\n"; echo " <td class='checkbox'>\n";
@ -469,3 +472,5 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -202,8 +202,12 @@
if (!empty($dashboard)) { if (!empty($dashboard)) {
$x = 0; $x = 0;
foreach ($dashboard as $row) { foreach ($dashboard as $row) {
$list_row_url = '';
if (permission_exists('dashboard_edit')) { if (permission_exists('dashboard_edit')) {
$list_row_url = "dashboard_edit.php?id=".urlencode($row['dashboard_uuid']); $list_row_url = "dashboard_edit.php?id=".urlencode($row['dashboard_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('dashboard_add') || permission_exists('dashboard_edit') || permission_exists('dashboard_delete')) { if (permission_exists('dashboard_add') || permission_exists('dashboard_edit') || permission_exists('dashboard_delete')) {
@ -256,3 +260,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -200,3 +200,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>

View File

@ -276,8 +276,12 @@
if (is_array($users) && @sizeof($users) != 0) { if (is_array($users) && @sizeof($users) != 0) {
$x = 0; $x = 0;
foreach ($users as $row) { foreach ($users as $row) {
$list_row_url = '';
if (permission_exists('user_edit')) { if (permission_exists('user_edit')) {
$list_row_url = "user_edit.php?id=".urlencode($row['user_uuid']); $list_row_url = "user_edit.php?id=".urlencode($row['user_uuid']);
if ($row['domain_uuid'] != $_SESSION['domain_uuid'] && permission_exists('domain_select')) {
$list_row_url .= '&domain_uuid='.urlencode($row['domain_uuid']).'&domain_change=true';
}
} }
echo "<tr class='list-row' href='".$list_row_url."'>\n"; echo "<tr class='list-row' href='".$list_row_url."'>\n";
if (permission_exists('user_add') || permission_exists('user_edit') || permission_exists('user_delete')) { if (permission_exists('user_add') || permission_exists('user_edit') || permission_exists('user_delete')) {
@ -337,3 +341,4 @@
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>