mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Audited the permissions names. Permissions names are to be non plural.
This commit is contained in:
@@ -56,57 +56,57 @@
|
||||
$apps[$x]['menu'][1]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'call_center_queues_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'call_center_queue_view';
|
||||
$apps[$x]['permissions'][0]['menu']['uuid'] = '6c072b29-5b6c-49fc-008e-95e24c77de99';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'agent';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'call_center_queues_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'call_center_queue_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'call_center_queues_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'call_center_queue_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'call_center_queues_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'call_center_queue_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][4]['name'] = 'call_center_agents_view';
|
||||
$apps[$x]['permissions'][4]['name'] = 'call_center_agent_view';
|
||||
$apps[$x]['permissions'][4]['menu']['uuid'] = '597c483a-51a9-f95a-8d54-ea7d87ada2b8';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'agent';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][5]['name'] = 'call_center_agents_add';
|
||||
$apps[$x]['permissions'][5]['name'] = 'call_center_agent_add';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][6]['name'] = 'call_center_agents_edit';
|
||||
$apps[$x]['permissions'][6]['name'] = 'call_center_agent_edit';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][7]['name'] = 'call_center_agents_delete';
|
||||
$apps[$x]['permissions'][7]['name'] = 'call_center_agent_delete';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][8]['name'] = 'call_center_tiers_view';
|
||||
$apps[$x]['permissions'][8]['name'] = 'call_center_tier_view';
|
||||
$apps[$x]['permissions'][8]['menu']['uuid'] = '';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'agent';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][9]['name'] = 'call_center_tiers_add';
|
||||
$apps[$x]['permissions'][9]['name'] = 'call_center_tier_add';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][10]['name'] = 'call_center_tiers_edit';
|
||||
$apps[$x]['permissions'][10]['name'] = 'call_center_tier_edit';
|
||||
$apps[$x]['permissions'][10]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][10]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][11]['name'] = 'call_center_tiers_delete';
|
||||
$apps[$x]['permissions'][11]['name'] = 'call_center_tier_delete';
|
||||
$apps[$x]['permissions'][11]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][11]['groups'][] = 'superadmin';
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_agents_delete')) {
|
||||
if (permission_exists('call_center_agent_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_agents_add') || permission_exists('call_center_agents_edit')) {
|
||||
if (permission_exists('call_center_agent_add') || permission_exists('call_center_agent_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_agents_view')) {
|
||||
if (permission_exists('call_center_agent_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_agents_view')) {
|
||||
if (permission_exists('call_center_agent_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -128,7 +128,7 @@ require_once "resources/paging.php";
|
||||
//echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order);
|
||||
//echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('call_center_agents_add')) {
|
||||
if (permission_exists('call_center_agent_add')) {
|
||||
echo " <a href='call_center_agent_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -150,10 +150,10 @@ require_once "resources/paging.php";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_reject_delay_time]." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[agent_busy_delay_time]." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('call_center_agents_edit')) {
|
||||
if (permission_exists('call_center_agent_edit')) {
|
||||
echo " <a href='call_center_agent_edit.php?id=".$row[call_center_agent_uuid]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('call_center_agents_delete')) {
|
||||
if (permission_exists('call_center_agent_delete')) {
|
||||
echo " <a href='call_center_agent_delete.php?id=".$row[call_center_agent_uuid]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
//echo " <input type='button' class='btn' name='' alt='edit' onclick=\"window.location='call_center_agent_edit.php?id=".$row[call_center_agent_uuid]."'\" value='e'>\n";
|
||||
@@ -172,7 +172,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('call_center_agents_add')) {
|
||||
if (permission_exists('call_center_agent_add')) {
|
||||
echo " <a href='call_center_agent_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_queues_delete')) {
|
||||
if (permission_exists('call_center_queue_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_queues_add') || permission_exists('call_center_queues_edit')) {
|
||||
if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_queues_view')) {
|
||||
if (permission_exists('call_center_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -131,7 +131,7 @@ require_once "resources/paging.php";
|
||||
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
|
||||
echo th_order_by('queue_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('call_center_queues_add')) {
|
||||
if (permission_exists('call_center_queue_add')) {
|
||||
echo " <a href='call_center_queue_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -156,10 +156,10 @@ require_once "resources/paging.php";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_wait_multiply_level]." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_description]." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('call_center_queues_edit')) {
|
||||
if (permission_exists('call_center_queue_edit')) {
|
||||
echo " <a href='call_center_queue_edit.php?id=".$row[call_center_queue_uuid]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('call_center_queues_delete')) {
|
||||
if (permission_exists('call_center_queue_delete')) {
|
||||
echo " <a href='call_center_queue_delete.php?id=".$row[call_center_queue_uuid]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -176,7 +176,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('call_center_queues_add')) {
|
||||
if (permission_exists('call_center_queue_add')) {
|
||||
echo " <a href='call_center_queue_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_tiers_delete')) {
|
||||
if (permission_exists('call_center_tier_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_tiers_add') || permission_exists('call_center_tiers_edit')) {
|
||||
if (permission_exists('call_center_tier_add') || permission_exists('call_center_tier_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_tiers_view')) {
|
||||
if (permission_exists('call_center_tier_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -120,7 +120,7 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('tier_level', $text['label-tier_level'], $order_by, $order);
|
||||
echo th_order_by('tier_position', $text['label-tier_position'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('call_center_tiers_add')) {
|
||||
if (permission_exists('call_center_tier_add')) {
|
||||
echo " <a href='call_center_tier_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -136,10 +136,10 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[tier_level]." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[tier_position]." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('call_center_tiers_edit')) {
|
||||
if (permission_exists('call_center_tier_edit')) {
|
||||
echo " <a href='call_center_tier_edit.php?id=".$row[call_center_tier_uuid]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('call_center_tiers_delete')) {
|
||||
if (permission_exists('call_center_tier_delete')) {
|
||||
echo " <a href='call_center_tier_delete.php?id=".$row[call_center_tier_uuid]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -157,7 +157,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('call_center_tiers_add')) {
|
||||
if (permission_exists('call_center_tier_add')) {
|
||||
echo " <a href='call_center_tier_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('call_center_queues_add') || permission_exists('call_center_queues_edit')) {
|
||||
if (permission_exists('call_center_queue_add') || permission_exists('call_center_queue_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -54,51 +54,51 @@
|
||||
$apps[$x]['menu'][1]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'calls_active_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'call_active_view';
|
||||
$apps[$x]['permissions'][0]['menu']['uuid'] = 'eba3d07f-dd5c-6b7b-6880-493b44113ade';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'calls_active_transfer';
|
||||
$apps[$x]['permissions'][1]['name'] = 'call_active_transfer';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'calls_active_hangup';
|
||||
$apps[$x]['permissions'][2]['name'] = 'call_active_hangup';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'calls_active_park';
|
||||
$apps[$x]['permissions'][3]['name'] = 'call_active_park';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][4]['name'] = 'calls_active_rec';
|
||||
$apps[$x]['permissions'][4]['name'] = 'call_active_rec';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][5]['name'] = 'extensions_active_view';
|
||||
$apps[$x]['permissions'][5]['name'] = 'extension_active_view';
|
||||
$apps[$x]['permissions'][0]['menu']['uuid'] = '6dd85c19-cb6b-5cca-bf32-499bbe936f79';
|
||||
//$apps[$x]['permissions'][5]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][6]['name'] = 'extensions_active_transfer';
|
||||
$apps[$x]['permissions'][6]['name'] = 'extension_active_transfer';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][7]['name'] = 'extensions_active_hangup';
|
||||
$apps[$x]['permissions'][7]['name'] = 'extension_active_hangup';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][8]['name'] = 'extensions_active_park';
|
||||
$apps[$x]['permissions'][8]['name'] = 'extension_active_park';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][9]['name'] = 'extensions_active_rec';
|
||||
$apps[$x]['permissions'][9]['name'] = 'extension_active_rec';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][10]['name'] = 'extensions_active_list_view';
|
||||
$apps[$x]['permissions'][10]['name'] = 'extension_active_list_view';
|
||||
$apps[$x]['permissions'][10]['menu']['uuid'] = '';
|
||||
//$apps[$x]['permissions'][10]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][10]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][10]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][11]['name'] = 'extensions_active_assigned_view';
|
||||
$apps[$x]['permissions'][11]['name'] = 'extension_active_assigned_view';
|
||||
$apps[$x]['permissions'][11]['menu']['uuid'] = '';
|
||||
//$apps[$x]['permissions'][11]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][11]['groups'][] = 'admin';
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('calls_active_view')) {
|
||||
if (permission_exists('call_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('extensions_active_assigned_view')) {
|
||||
if (permission_exists('extension_active_assigned_view')) {
|
||||
|
||||
//add multi-lingual support
|
||||
foreach($text as $key => $value) {
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('extensions_active_view')) {
|
||||
if (permission_exists('extension_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('extensions_active_view')) {
|
||||
if (permission_exists('extension_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -320,7 +320,7 @@ else {
|
||||
include "calls_active_assigned_extensions_inc.php";
|
||||
|
||||
//list all extensions
|
||||
if (permission_exists('extensions_active_list_view')) {
|
||||
if (permission_exists('extension_active_list_view')) {
|
||||
echo "<table width='100%' border='0' cellpadding='5' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td valign='top'>\n";
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
if (permission_exists('calls_active_view')) {
|
||||
if (permission_exists('call_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('calls_active_view') || permission_exists('extensions_active_view')) {
|
||||
if (permission_exists('call_active_view') || permission_exists('extension_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -325,7 +325,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-conference-center']."</b></td>\n";
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
if (permission_exists('conferences_active_advanced_view')) {
|
||||
if (permission_exists('conference_active_advanced_view')) {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-view']."' onclick=\"window.location='".PROJECT_PATH."/app/conferences_active/conferences_active.php'\" value='".$text['button-view']."'>\n";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='conference_centers.php'\" value='".$text['button-back']."'>\n";
|
||||
|
||||
@@ -65,7 +65,7 @@ else {
|
||||
echo " <tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-conference-centers']."</b></td>\n";
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
if (permission_exists('conferences_active_advanced_view')) {
|
||||
if (permission_exists('conference_active_advanced_view')) {
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-view']."' onclick=\"window.location='".PROJECT_PATH."/app/conferences_active/conferences_active.php'\" value='".$text['button-view']."'>\n";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-rooms']."' onclick=\"window.location='conference_rooms.php'\" value='".$text['button-rooms']."'>\n";
|
||||
|
||||
@@ -95,7 +95,7 @@ else {
|
||||
}
|
||||
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
|
||||
if (permission_exists('conference_session_play')) {
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
//echo " ".$text['label-play']."\n";
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['label-play']."' onclick=\"\" value='".$text['label-play']."'></a>\n";
|
||||
//echo " \n";
|
||||
@@ -105,7 +105,7 @@ else {
|
||||
//echo " ".$text['label-download']."\n";
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['label-download']."' onclick=\"\" value='".$text['label-download']."'></a>\n";
|
||||
//echo " \n";
|
||||
//echo " <input type='button' class='btn' name='' alt='".$text['label-download']."' onclick=\"window.location='".PROJECT_PATH."/app/recordings/recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."'\" value='".$text['label-download']."'>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='".$text['label-download']."' onclick=\"window.location='".PROJECT_PATH."/app/recordings/recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."'\" value='".$text['label-download']."'>\n";
|
||||
echo " \n";
|
||||
}
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='conference_sessions.php'\" value='".$text['button-back']."'>\n";
|
||||
|
||||
@@ -165,7 +165,7 @@ else {
|
||||
echo " <a href='conference_session_details.php?uuid=".$row['conference_session_uuid']."'>".$text['label-details']."</a> \n";
|
||||
if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) {
|
||||
if (permission_exists('conference_session_play')) {
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " ".$text['label-play']."\n";
|
||||
echo " </a>\n";
|
||||
echo " \n";
|
||||
|
||||
@@ -62,7 +62,7 @@ require_once "resources/paging.php";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='2'>\n";
|
||||
echo " ".$text['description']." \n";
|
||||
if (permission_exists('conferences_active_advanced_view')) {
|
||||
if (permission_exists('conference_active_advanced_view')) {
|
||||
echo " Show <a href='".PROJECT_PATH."/app/conferences_active/v_conferences_active.php'>".$text['title-2']."</a> ".$text['description-2']."<br /><br />\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -38,38 +38,38 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'user';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'conferences_active_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'conference_active_view';
|
||||
$apps[$x]['permissions'][0]['menu']['uuid'] = '2d857bbb-43b9-b8f7-a138-642868e0453a';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'conferences_active_lock';
|
||||
$apps[$x]['permissions'][2]['name'] = 'conference_active_lock';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'conferences_active_kick';
|
||||
$apps[$x]['permissions'][3]['name'] = 'conference_active_kick';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][4]['name'] = 'conferences_active_energy';
|
||||
$apps[$x]['permissions'][4]['name'] = 'conference_active_energy';
|
||||
//$apps[$x]['permissions'][4]['groups'][] = 'user';
|
||||
//$apps[$x]['permissions'][4]['groups'][] = 'admin';
|
||||
//$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][5]['name'] = 'conferences_active_volume';
|
||||
$apps[$x]['permissions'][5]['name'] = 'conference_active_volume';
|
||||
//$apps[$x]['permissions'][5]['groups'][] = 'user';
|
||||
//$apps[$x]['permissions'][5]['groups'][] = 'admin';
|
||||
//$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][6]['name'] = 'conferences_active_gain';
|
||||
$apps[$x]['permissions'][6]['name'] = 'conference_active_gain';
|
||||
//$apps[$x]['permissions'][6]['groups'][] = 'user';
|
||||
//$apps[$x]['permissions'][6]['groups'][] = 'admin';
|
||||
//$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][7]['name'] = 'conferences_active_mute';
|
||||
$apps[$x]['permissions'][7]['name'] = 'conference_active_mute';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][7]['groups'][] = 'superadmin';
|
||||
@@ -79,12 +79,12 @@
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][8]['name'] = 'conferences_active_video';
|
||||
$apps[$x]['permissions'][8]['name'] = 'conference_active_video';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][8]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][9]['name'] = 'conferences_active_advanced_view';
|
||||
$apps[$x]['permissions'][9]['name'] = 'conference_active_advanced_view';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][9]['groups'][] = 'superadmin';
|
||||
?>
|
||||
@@ -41,7 +41,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('conferences_active_view')) {
|
||||
if (permission_exists('conference_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('conferences_active_view')) {
|
||||
if (permission_exists('conference_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('conferences_active_view')) {
|
||||
if (permission_exists('conference_active_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -127,7 +127,7 @@ else {
|
||||
else {
|
||||
echo " ".$text['label-not-recording']." ";
|
||||
}
|
||||
if (permission_exists('conferences_active_lock')) {
|
||||
if (permission_exists('conference_active_lock')) {
|
||||
if ($locked == "true") {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=unlock');\" value='".$text['label-unlock']."'>\n";
|
||||
}
|
||||
@@ -159,7 +159,7 @@ else {
|
||||
echo "<th>".$text['label-speak']."</th>\n";
|
||||
echo "<th>".$text['label-talking']."</th>\n";
|
||||
echo "<th>".$text['label-last-talk']."</th>\n";
|
||||
if (permission_exists('conferences_active_video')) {
|
||||
if (permission_exists('conference_active_video')) {
|
||||
echo "<th>".$text['label-video']."</th>\n";
|
||||
}
|
||||
echo "<th>".$text['label-floor']."</th>\n";
|
||||
@@ -219,7 +219,7 @@ else {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-no']."</td>\n";
|
||||
}
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>$last_talking_formatted</td>\n";
|
||||
if (permission_exists('conferences_active_video')) {
|
||||
if (permission_exists('conference_active_video')) {
|
||||
if ($flag_has_video == "true") {
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$text['label-yes']."</td>\n";
|
||||
}
|
||||
@@ -235,27 +235,27 @@ else {
|
||||
}
|
||||
echo "<td valign='top' class='".$row_style[$c]."' style='text-align:right;'>\n";
|
||||
//energy
|
||||
if (permission_exists('conferences_active_energy')) {
|
||||
if (permission_exists('conference_active_energy')) {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='+".$text['label-energy']."'>\n";
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\" value='-".$text['label-energy']."'>\n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">+".$text['label-energy']."</a> \n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=energy&id=".$id."');\">-".$text['label-energy']."</a> \n";
|
||||
}
|
||||
//volume
|
||||
if (permission_exists('conferences_active_volume')) {
|
||||
if (permission_exists('conference_active_volume')) {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\" value='+".$text['label-volume']."'>\n";
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\" value='-".$text['label-volume']."'>\n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."%&data=volume_in&id=".$id."');\">+".$text['label-volume']."</a> \n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_in&id=".$id."');\">-".$text['label-volume']."</a> \n";
|
||||
}
|
||||
if (permission_exists('conferences_active_gain')) {
|
||||
if (permission_exists('conference_active_gain')) {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='+".$text['label-gain']."'>\n";
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\" value='-".$text['label-gain']."'>\n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=up&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">+".$text['label-gain']."</a> \n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?direction=down&cmd=conference&name=".$conference_name."&data=volume_out&id=".$id."');\">-".$text['label-gain']."</a> \n";
|
||||
}
|
||||
//mute and unmute
|
||||
if (permission_exists('conferences_active_mute')) {
|
||||
if (permission_exists('conference_active_mute')) {
|
||||
if ($flag_can_speak == "true") {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=mute&id=".$id."');\" value='".$text['label-mute']."'>\n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('');\">".$text['label-mute']."</a> \n";
|
||||
@@ -277,7 +277,7 @@ else {
|
||||
}
|
||||
}
|
||||
//kick someone from the conference
|
||||
if (permission_exists('conferences_active_kick')) {
|
||||
if (permission_exists('conference_active_kick')) {
|
||||
echo " <input type='button' class='btn' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\" value='".$text['label-kick']."'>\n";
|
||||
//echo " <a href='javascript:void(0);' onclick=\"send_cmd('conference_exec.php?cmd=conference&name=".$conference_name."&data=kick&id=".$id."&uuid=".$uuid."');\">".$text['label-kick']."</a> \n";
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('conferences_active_advanced_view')) {
|
||||
if (permission_exists('conference_active_advanced_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('conferences_active_advanced_view')) {
|
||||
if (permission_exists('conference_active_advanced_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -38,22 +38,22 @@
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'contacts_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'contact_view';
|
||||
$apps[$x]['permissions'][0]['menu']['uuid'] = 'f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
//$apps[$x]['permissions'][0]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'contacts_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'contact_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'contacts_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'contact_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
//$apps[$x]['permissions'][2]['groups'][] = 'user';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'contacts_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'contact_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_view')) {
|
||||
if (permission_exists('contact_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_delete')) {
|
||||
if (permission_exists('contact_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -57,7 +57,7 @@ if (strlen($id)>0) {
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_edit')) {
|
||||
if (permission_exists('contact_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -140,7 +140,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-add']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -168,7 +168,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-update']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -232,7 +232,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo $text['header-contact_addresses-add'];
|
||||
}
|
||||
echo "</b></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contacts_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contact_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' colspan='2'>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_add')) {
|
||||
if (permission_exists('contact_add')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -62,7 +62,7 @@ else {
|
||||
$enclosure = check_str($_GET["data_enclosure"]);
|
||||
|
||||
//upload the contact csv
|
||||
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recordings_upload')) {
|
||||
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recording_upload')) {
|
||||
//copy the csv file
|
||||
if (check_str($_POST['type']) == 'csv') {
|
||||
move_uploaded_file($_FILES['ulfile']['tmp_name'], $_SESSION['server']['temp']['dir'].'/'.$_FILES['ulfile']['name']);
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_view')) {
|
||||
if (permission_exists('contact_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_delete')) {
|
||||
if (permission_exists('contact_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -56,7 +56,7 @@ if (strlen($id)>0) {
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_edit')) {
|
||||
if (permission_exists('contact_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -111,7 +111,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-add']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -131,7 +131,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-update']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -187,7 +187,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
if ($action == "update") {
|
||||
echo "<td align='left' width='15%' nowrap='nowrap'><b>".$text['header-contact_notes-edit']."</b></td>\n";
|
||||
}
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contacts_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contact_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_view')) {
|
||||
if (permission_exists('contact_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_delete')) {
|
||||
if (permission_exists('contact_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -56,7 +56,7 @@ if (strlen($id)>0) {
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-delete']."\n";
|
||||
echo "</div>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_edit')) {
|
||||
if (permission_exists('contact_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -115,7 +115,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-add']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -136,7 +136,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
unset($sql);
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contacts_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=contact_edit.php?id=$contact_uuid\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo $text['message-update']."\n";
|
||||
echo "</div>\n";
|
||||
@@ -192,7 +192,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo $text['header-contact_phones-add'];
|
||||
}
|
||||
echo "</b></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contacts_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='contact_edit.php?id=$contact_uuid'\" value='".$text['button-back']."'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' colspan='2'>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_view')) {
|
||||
if (permission_exists('contact_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -72,7 +72,7 @@ require_once "resources/paging.php";
|
||||
echo " <input class=\"btn\" type=\"submit\" name=\"submit\" value=\"".$text['button-search']."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " </form>\n";
|
||||
if (permission_exists('contacts_add')) {
|
||||
if (permission_exists('contact_add')) {
|
||||
echo " <td align=\"right\" valign=\"middle\" width=\"50px\">\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>\n";
|
||||
echo " </td>\n";
|
||||
@@ -199,7 +199,7 @@ require_once "resources/paging.php";
|
||||
//echo th_order_by('contact_time_zone', $text['label-contact_time_zone'], $order_by, $order);
|
||||
//echo th_order_by('contact_note', $text['label-contact_note'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo " <a href='contacts_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
|
||||
@@ -219,8 +219,8 @@ require_once "resources/paging.php";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_time_zone']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['contact_note']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <a href='contacts_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='contacts_delete.php?id=".$row['contact_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo " <a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='contact_delete.php?id=".$row['contact_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
@@ -235,7 +235,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
echo " <a href='contacts_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_delete')) {
|
||||
if (permission_exists('contact_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_edit')) {
|
||||
if (permission_exists('contact_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('contacts_view')) {
|
||||
if (permission_exists('contact_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -31,7 +31,7 @@ if (permission_exists('dialplan_add')
|
||||
|| permission_exists('inbound_route_add')
|
||||
|| permission_exists('outbound_route_add')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')) {
|
||||
|| permission_exists('time_condition_add')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -30,7 +30,7 @@ if (permission_exists('dialplan_delete')
|
||||
|| permission_exists('inbound_route_delete')
|
||||
|| permission_exists('outbound_route_delete')
|
||||
|| permission_exists('fifo_delete')
|
||||
|| permission_exists('time_conditions_delete')) {
|
||||
|| permission_exists('time_condition_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -30,7 +30,7 @@ if (permission_exists('dialplan_delete')
|
||||
|| permission_exists('inbound_route_delete')
|
||||
|| permission_exists('outbound_route_delete')
|
||||
|| permission_exists('fifo_delete')
|
||||
|| permission_exists('time_conditions_delete')) {
|
||||
|| permission_exists('time_condition_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -34,8 +34,8 @@ if (permission_exists('dialplan_add')
|
||||
|| permission_exists('outbound_route_edit')
|
||||
|| permission_exists('fifo_edit')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')
|
||||
|| permission_exists('time_conditions_edit')) {
|
||||
|| permission_exists('time_condition_add')
|
||||
|| permission_exists('time_condition_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -35,8 +35,8 @@ if (permission_exists('dialplan_add')
|
||||
|| permission_exists('outbound_route_edit')
|
||||
|| permission_exists('fifo_edit')
|
||||
|| permission_exists('fifo_add')
|
||||
|| permission_exists('time_conditions_add')
|
||||
|| permission_exists('time_conditions_edit')) {
|
||||
|| permission_exists('time_condition_add')
|
||||
|| permission_exists('time_condition_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -213,7 +213,7 @@ else {
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_add')) {
|
||||
if (permission_exists('time_condition_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/time_conditions/time_condition_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
@@ -285,10 +285,10 @@ else {
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_edit')) {
|
||||
if (permission_exists('time_condition_edit')) {
|
||||
echo " <a href='dialplan_edit.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('time_conditions_delete')) {
|
||||
if (permission_exists('time_condition_delete')) {
|
||||
echo " <a href='dialplan_delete.php?id=".$row['dialplan_uuid']."&app_uuid=$app_uuid' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
}
|
||||
@@ -331,7 +331,7 @@ else {
|
||||
}
|
||||
}
|
||||
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
|
||||
if (permission_exists('time_conditions_add')) {
|
||||
if (permission_exists('time_condition_add')) {
|
||||
echo " <a href='".PROJECT_PATH."/app/time_conditions/time_condition_add.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,19 +37,19 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'active_queues_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'active_queue_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'active_queues_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'active_queue_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'active_queues_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'active_queue_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'active_queues_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'active_queue_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
?>
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queues_edit')) {
|
||||
if (permission_exists('active_queue_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queues_view')) {
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queues_view')) {
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queues_view')) {
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('active_queues_view')) {
|
||||
if (permission_exists('active_queue_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -36,16 +36,16 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'modules_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'module_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'modules_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'module_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'modules_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'module_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'modules_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'module_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
//schema details
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('modules_view')) {
|
||||
if (permission_exists('module_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -123,7 +123,7 @@ if (strlen($_GET["a"]) > 0) {
|
||||
$tmp_module_header .= "<th>".$text['label-action']."</th>\n";
|
||||
$tmp_module_header .= "<th>".$text['label-enabled']."</th>\n";
|
||||
$tmp_module_header .= "<td align='right' width='42'>\n";
|
||||
$tmp_module_header .= " <a href='modules_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
$tmp_module_header .= " <a href='module_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
$tmp_module_header .= "</td>\n";
|
||||
$tmp_module_header .= "<tr>\n";
|
||||
|
||||
@@ -140,8 +140,8 @@ if (strlen($_GET["a"]) > 0) {
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('modules_add')) {
|
||||
echo " <a href='modules_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
if (permission_exists('module_add')) {
|
||||
echo " <a href='module_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
@@ -181,11 +181,11 @@ if (strlen($_GET["a"]) > 0) {
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('modules_edit')) {
|
||||
echo " <a href='modules_edit.php?id=".$row["module_uuid"]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
if (permission_exists('module_edit')) {
|
||||
echo " <a href='module_edit.php?id=".$row["module_uuid"]."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('modules_delete')) {
|
||||
echo " <a href='modules_delete.php?id=".$row["module_uuid"]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
if (permission_exists('module_delete')) {
|
||||
echo " <a href='module_delete.php?id=".$row["module_uuid"]."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -203,8 +203,8 @@ if (strlen($_GET["a"]) > 0) {
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('modules_add')) {
|
||||
echo " <a href='modules_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
if (permission_exists('module_add')) {
|
||||
echo " <a href='module_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('modules_delete')) {
|
||||
if (permission_exists('module_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('modules_add') || permission_exists('modules_edit')) {
|
||||
if (permission_exists('module_add') || permission_exists('module_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -88,7 +88,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('modules_add')) {
|
||||
if ($action == "add" && permission_exists('module_add')) {
|
||||
$module_uuid = uuid();
|
||||
$sql = "insert into v_modules ";
|
||||
$sql .= "(";
|
||||
@@ -124,7 +124,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('modules_edit')) {
|
||||
if ($action == "update" && permission_exists('module_edit')) {
|
||||
$sql = "update v_modules set ";
|
||||
$sql .= "module_label = '$module_label', ";
|
||||
$sql .= "module_name = '$module_name', ";
|
||||
|
||||
@@ -37,32 +37,32 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'recordings_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'recording_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'recordings_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'recording_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'recordings_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'recording_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'recordings_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'recording_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][4]['name'] = 'recordings_upload';
|
||||
$apps[$x]['permissions'][4]['name'] = 'recording_upload';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][5]['name'] = 'recordings_play';
|
||||
$apps[$x]['permissions'][5]['name'] = 'recording_play';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][6]['name'] = 'recordings_download';
|
||||
$apps[$x]['permissions'][6]['name'] = 'recording_download';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('recordings_view')) {
|
||||
if (permission_exists('recording_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -50,7 +50,7 @@ require_once "resources/paging.php";
|
||||
$order = $_GET["order"];
|
||||
|
||||
//download the recordings
|
||||
if ($_GET['a'] == "download" && permission_exists('recordings_download')) {
|
||||
if ($_GET['a'] == "download" && permission_exists('recording_download')) {
|
||||
session_cache_limiter('public');
|
||||
if ($_GET['type'] = "rec") {
|
||||
if (file_exists($_SESSION['switch']['recordings']['dir'].'/'.base64_decode($_GET['filename']))) {
|
||||
@@ -82,8 +82,8 @@ require_once "resources/paging.php";
|
||||
}
|
||||
|
||||
//upload the recording
|
||||
if (permission_exists('recordings_upload')) {
|
||||
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recordings_upload')) {
|
||||
if (permission_exists('recording_upload')) {
|
||||
if (($_POST['submit'] == "Upload") && is_uploaded_file($_FILES['ulfile']['tmp_name']) && permission_exists('recording_upload')) {
|
||||
if ($_POST['type'] == 'rec') {
|
||||
move_uploaded_file($_FILES['ulfile']['tmp_name'], $_SESSION['switch']['recordings']['dir'].'/'.$_FILES['ulfile']['name']);
|
||||
$savemsg = $text['message-uploaded']." ".$_SESSION['switch']['recordings']['dir']."/". htmlentities($_FILES['ulfile']['name']);
|
||||
@@ -177,7 +177,7 @@ require_once "resources/paging.php";
|
||||
echo $_SESSION['switch']['recordings']['dir'];
|
||||
}
|
||||
echo " </td>\n";
|
||||
if (permission_exists('recordings_upload')) {
|
||||
if (permission_exists('recording_upload')) {
|
||||
echo "<form action=\"\" method=\"POST\" enctype=\"multipart/form-data\" name=\"frmUpload\" onSubmit=\"\">\n";
|
||||
echo " <td valign=\"top\" class=\"label\">\n";
|
||||
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
|
||||
@@ -229,8 +229,8 @@ require_once "resources/paging.php";
|
||||
echo "<th width=\"10%\" class=\"listhdr\" nowrap>Size</th>\n";
|
||||
echo th_order_by('recording_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('recordings_add')) {
|
||||
echo " <a href='recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
if (permission_exists('recording_add')) {
|
||||
echo " <a href='recording_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -247,7 +247,7 @@ require_once "resources/paging.php";
|
||||
echo " </a>";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recordings_play.php?a=download&type=moh&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('recording_play.php?a=download&type=moh&filename=".base64_encode($row['recording_filename'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo $row['recording_name'];
|
||||
echo " </a>";
|
||||
echo "</td>\n";
|
||||
@@ -256,11 +256,11 @@ require_once "resources/paging.php";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."' width='30%'>".$row['recording_description']."</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('recordings_edit')) {
|
||||
echo " <a href='recordings_edit.php?id=".$row['recording_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
if (permission_exists('recording_edit')) {
|
||||
echo " <a href='recording_edit.php?id=".$row['recording_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('recordings_delete')) {
|
||||
echo " <a href='recordings_delete.php?id=".$row['recording_uuid']."' alt='delete' onclick=\"return confirm('".$text['message-delete']."')\">$v_link_label_delete</a>\n";
|
||||
if (permission_exists('recording_delete')) {
|
||||
echo " <a href='recording_delete.php?id=".$row['recording_uuid']."' alt='delete' onclick=\"return confirm('".$text['message-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -276,8 +276,8 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('recordings_add')) {
|
||||
echo " <a href='recordings_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
if (permission_exists('recording_add')) {
|
||||
echo " <a href='recording_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('recordings_delete')) {
|
||||
if (permission_exists('recording_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('recordings_add') || permission_exists('recordings_edit')) {
|
||||
if (permission_exists('recording_add') || permission_exists('recording_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -92,7 +92,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('recordings_add')) {
|
||||
if ($action == "add" && permission_exists('recording_add')) {
|
||||
$recording_uuid = uuid();
|
||||
$sql = "insert into v_recordings ";
|
||||
$sql .= "(";
|
||||
@@ -122,7 +122,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('recordings_edit')) {
|
||||
if ($action == "update" && permission_exists('recording_edit')) {
|
||||
//get the original filename
|
||||
$sql = "select * from v_recordings ";
|
||||
$sql .= "where recording_uuid = '$recording_uuid' ";
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('recordings_play')) {
|
||||
if (permission_exists('recording_play')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -36,16 +36,16 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'services_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'service_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'services_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'service_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'services_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'service_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'services_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'service_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
//schema details
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('services_delete')) {
|
||||
if (permission_exists('service_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('services_add') || permission_exists('services_edit')) {
|
||||
if (permission_exists('service_add') || permission_exists('service_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -90,7 +90,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('services_add')) {
|
||||
if ($action == "add" && permission_exists('service_add')) {
|
||||
$service_uuid = uuid();
|
||||
$sql = "insert into v_services ";
|
||||
$sql .= "(";
|
||||
@@ -126,7 +126,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('services_edit')) {
|
||||
if ($action == "update" && permission_exists('service_edit')) {
|
||||
$sql = "update v_services set ";
|
||||
$sql .= "service_name = '$service_name', ";
|
||||
$sql .= "service_type = '$service_type', ";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('services_view')) {
|
||||
if (permission_exists('service_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -141,7 +141,7 @@ if (strlen($_GET["a"]) > 0) {
|
||||
echo "<th>Status</th>\n";
|
||||
echo "<th>Action</th>\n";
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('services_add')) {
|
||||
if (permission_exists('service_add')) {
|
||||
echo " <a href='service_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
@@ -173,10 +173,10 @@ if (strlen($_GET["a"]) > 0) {
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('services_edit')) {
|
||||
if (permission_exists('service_edit')) {
|
||||
echo " <a href='service_edit.php?id=".$row[service_uuid]."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('services_delete')) {
|
||||
if (permission_exists('service_delete')) {
|
||||
echo " <a href='service_delete.php?id=".$row[service_uuid]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -193,7 +193,7 @@ if (strlen($_GET["a"]) > 0) {
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('services_add')) {
|
||||
if (permission_exists('service_add')) {
|
||||
echo " <a href='service_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -32,14 +32,14 @@
|
||||
$apps[$x]['menu'][0]['uuid'] = '148ea42a-3711-3d64-181b-07a6a3c3ed60';
|
||||
$apps[$x]['menu'][0]['parent_uuid'] = '02194288-6d56-6d3e-0b1a-d53a2bc10788';
|
||||
$apps[$x]['menu'][0]['category'] = 'internal';
|
||||
$apps[$x]['menu'][0]['path'] = '/app/settings/settings_edit.php';
|
||||
$apps[$x]['menu'][0]['path'] = '/app/settings/setting_edit.php';
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'settings_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'setting_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'settings_edit';
|
||||
$apps[$x]['permissions'][1]['name'] = 'setting_edit';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
//schema details
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('settings_view') || if_group("superadmin")) {
|
||||
if (permission_exists('setting_view') || if_group("superadmin")) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -126,7 +126,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('settings_edit')) {
|
||||
if ($action == "add" && permission_exists('setting_edit')) {
|
||||
$sql = "insert into v_settings ";
|
||||
$sql .= "(";
|
||||
$sql .= "event_socket_ip_address, ";
|
||||
@@ -158,7 +158,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
save_setting_xml();
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=settings_edit.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=setting_edit.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Add Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -166,7 +166,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('settings_edit')) {
|
||||
if ($action == "update" && permission_exists('setting_edit')) {
|
||||
$sql = "update v_settings set ";
|
||||
$sql .= "event_socket_ip_address = '$event_socket_ip_address', ";
|
||||
$sql .= "event_socket_port = '$event_socket_port', ";
|
||||
@@ -184,7 +184,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
save_setting_xml();
|
||||
|
||||
require_once "resources/header.php";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=settings_edit.php\">\n";
|
||||
echo "<meta http-equiv=\"refresh\" content=\"2;url=setting_edit.php\">\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "Update Complete\n";
|
||||
echo "</div>\n";
|
||||
@@ -453,7 +453,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo $text['description-shout-volume']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
if (permission_exists('settings_edit')) {
|
||||
if (permission_exists('setting_edit')) {
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' align='right'>\n";
|
||||
echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
|
||||
|
||||
@@ -30,7 +30,7 @@ require_once "resources/paging.php";
|
||||
if (permission_exists('dialplan_add')
|
||||
|| permission_exists('inbound_route_add')
|
||||
|| permission_exists('outbound_route_add')
|
||||
|| permission_exists('time_conditions_add')) {
|
||||
|| permission_exists('time_condition_add')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -101,7 +101,7 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('sip_profile_setting_description', $text['label-setting_description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('sip_profile_add')) {
|
||||
echo " <a href='sip_profile_settings_edit.php?sip_profile_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='sip_profile_setting_edit.php?sip_profile_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -114,7 +114,7 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['sip_profile_setting_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('sip_profile_edit')) {
|
||||
echo " <a href='sip_profile_settings_edit.php?sip_profile_uuid=".$row['sip_profile_uuid']."&id=".$row['sip_profile_setting_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='sip_profile_setting_edit.php?sip_profile_uuid=".$row['sip_profile_uuid']."&id=".$row['sip_profile_setting_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('sip_profile_delete')) {
|
||||
echo " <a href='sip_profile_settings_delete.php?sip_profile_uuid=".$row['sip_profile_uuid']."&id=".$row['sip_profile_setting_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
@@ -134,7 +134,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('sip_profile_add')) {
|
||||
echo " <a href='sip_profile_settings_edit.php?sip_profile_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='sip_profile_setting_edit.php?sip_profile_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
@@ -37,19 +37,19 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'time_conditions_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'time_condition_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'time_conditions_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'time_condition_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'time_conditions_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'time_condition_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'time_conditions_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'time_condition_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
?>
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('time_conditions_add')) {
|
||||
if (permission_exists('time_condition_add')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -36,16 +36,16 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'variables_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'variable_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'variables_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'variable_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'variables_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'variable_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'variables_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'variable_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
//schema details
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('variables_delete')) {
|
||||
if (permission_exists('variable_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('variables_add') || permission_exists('variables_edit')) {
|
||||
if (permission_exists('variable_add') || permission_exists('variable_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -91,7 +91,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('variables_add')) {
|
||||
if ($action == "add" && permission_exists('variable_add')) {
|
||||
$var_uuid = uuid();
|
||||
$sql = "insert into v_vars ";
|
||||
$sql .= "(";
|
||||
@@ -132,7 +132,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('variables_edit')) {
|
||||
if ($action == "update" && permission_exists('variable_edit')) {
|
||||
$sql = "update v_vars set ";
|
||||
$sql .= "var_name = '$var_name', ";
|
||||
$sql .= "var_value = '$var_value', ";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('variables_view')) {
|
||||
if (permission_exists('variable_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -90,7 +90,7 @@ else {
|
||||
$tmp_var_header .= th_order_by('var_enabled', $text['label-enabled'], $order_by, $order);
|
||||
$tmp_var_header .= "<th>".$text['label-description']."</th>\n";
|
||||
$tmp_var_header .= "<td align='right' width='42'>\n";
|
||||
if (permission_exists('variables_add')) {
|
||||
if (permission_exists('variable_add')) {
|
||||
$tmp_var_header .= " <a href='var_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
$tmp_var_header .= "</td>\n";
|
||||
@@ -111,7 +111,7 @@ else {
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('variables_add')) {
|
||||
if (permission_exists('variable_add')) {
|
||||
echo " <a href='var_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -142,10 +142,10 @@ else {
|
||||
$var_description = str_replace(" ", " ", $var_description);
|
||||
echo " <td valign='top' align='left' class='".$row_style[$c]."'>".$var_description." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('variables_edit')) {
|
||||
if (permission_exists('variable_edit')) {
|
||||
echo " <a href='var_edit.php?id=".$row['var_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('variables_delete')) {
|
||||
if (permission_exists('variable_delete')) {
|
||||
echo " <a href='var_delete.php?id=".$row['var_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
@@ -164,7 +164,7 @@ else {
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('variables_add')) {
|
||||
if (permission_exists('variable_add')) {
|
||||
echo " <a href='var_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('variables_view')) {
|
||||
if (permission_exists('variable_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -45,7 +45,7 @@ else {
|
||||
$page["title"] = $text['title-variables_advanced'];
|
||||
|
||||
//restore the default vars.xml
|
||||
if ($_GET['a'] == "default" && permission_exists('variables_edit')) {
|
||||
if ($_GET['a'] == "default" && permission_exists('variable_edit')) {
|
||||
//read default config file
|
||||
$fd = fopen($_SESSION['switch']['conf']['dir'].".orig/vars.xml", "r");
|
||||
$v_content = fread($fd, filesize($_SESSION['switch']['conf']['dir'].".orig/vars.xml"));
|
||||
@@ -59,7 +59,7 @@ if ($_GET['a'] == "default" && permission_exists('variables_edit')) {
|
||||
}
|
||||
|
||||
//save the vars.xml
|
||||
if ($_POST['a'] == "save" && permission_exists('variables_edit')) {
|
||||
if ($_POST['a'] == "save" && permission_exists('variable_edit')) {
|
||||
$v_content = str_replace("\r","",$_POST['code']);
|
||||
$fd = fopen($_SESSION['switch']['conf']['dir']."/vars.xml", "w");
|
||||
fwrite($fd, $v_content);
|
||||
@@ -107,7 +107,7 @@ if ($_GET['a'] == "default" && permission_exists('variables_edit')) {
|
||||
<br /><br />
|
||||
</td>
|
||||
<td align='right' valign='top'>
|
||||
<?php if (permission_exists('variables_edit')) { ?>
|
||||
<?php if (permission_exists('variable_edit')) { ?>
|
||||
<input type="submit" class='btn' value="<?=$text['button-save']?>" />
|
||||
<?php } ?>
|
||||
</td>
|
||||
@@ -133,7 +133,7 @@ if ($_GET['a'] == "default" && permission_exists('variables_edit')) {
|
||||
<input type="hidden" name="f" value="<?php echo $_GET['f']; ?>" />
|
||||
<input type="hidden" name="a" value="save" />
|
||||
<?php
|
||||
if (permission_exists('variables_edit')) {
|
||||
if (permission_exists('variable_edit')) {
|
||||
echo "<input type='button' class='btn' value='".$text['button-restore']."' onclick=\"document.location.href='vars.php?a=default&f=vars.xml';\" />";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -28,37 +28,37 @@
|
||||
//$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'voicemail_greetings_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'voicemail_greeting_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'voicemail_greetings_add';
|
||||
$apps[$x]['permissions'][1]['name'] = 'voicemail_greeting_add';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][2]['name'] = 'voicemail_greetings_edit';
|
||||
$apps[$x]['permissions'][2]['name'] = 'voicemail_greeting_edit';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][3]['name'] = 'voicemail_greetings_delete';
|
||||
$apps[$x]['permissions'][3]['name'] = 'voicemail_greeting_delete';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][4]['name'] = 'voicemail_greetings_upload';
|
||||
$apps[$x]['permissions'][4]['name'] = 'voicemail_greeting_upload';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][4]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][5]['name'] = 'voicemail_greetings_play';
|
||||
$apps[$x]['permissions'][5]['name'] = 'voicemail_greeting_play';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][5]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][6]['name'] = 'voicemail_greetings_download';
|
||||
$apps[$x]['permissions'][6]['name'] = 'voicemail_greeting_download';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][6]['groups'][] = 'superadmin';
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_greetings_delete')) {
|
||||
if (permission_exists('voicemail_greeting_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_greetings_add') || permission_exists('voicemail_greetings_edit')) {
|
||||
if (permission_exists('voicemail_greeting_add') || permission_exists('voicemail_greeting_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -86,7 +86,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
|
||||
//add or update the database
|
||||
if ($_POST["persistformvar"] != "true") {
|
||||
if ($action == "add" && permission_exists('voicemail_greetings_add')) {
|
||||
if ($action == "add" && permission_exists('voicemail_greeting_add')) {
|
||||
$voicemail_greeting_uuid = uuid();
|
||||
$sql = "insert into v_voicemail_greetings ";
|
||||
$sql .= "(";
|
||||
@@ -114,7 +114,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //if ($action == "add")
|
||||
|
||||
if ($action == "update" && permission_exists('voicemail_greetings_edit')) {
|
||||
if ($action == "update" && permission_exists('voicemail_greeting_edit')) {
|
||||
//get the original filename
|
||||
$sql = "select * from v_voicemail_greetings ";
|
||||
$sql .= "where voicemail_greeting_uuid = '$voicemail_greeting_uuid' ";
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_greetings_play')) {
|
||||
if (permission_exists('voicemail_greeting_play')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_greetings_view')) {
|
||||
if (permission_exists('voicemail_greeting_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -78,7 +78,7 @@ else {
|
||||
$v_greeting_dir = $_SESSION['switch']['storage']['dir'].'/voicemail/default/'.$_SESSION['domains'][$domain_uuid]['domain_name'].'/'.$voicemail_id;
|
||||
|
||||
//upload the recording
|
||||
if (($_POST['submit'] == "Save") && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('recordings_upload')) {
|
||||
if (($_POST['submit'] == "Save") && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('recording_upload')) {
|
||||
if ($_POST['type'] == 'rec') {
|
||||
for($i = 1; $i < 10; $i++){
|
||||
$tmp_greeting = 'greeting_'.$i.'.wav';
|
||||
@@ -111,7 +111,7 @@ else {
|
||||
}
|
||||
|
||||
//download the voicemail greeting
|
||||
if ($_GET['a'] == "download") { // && permission_exists('voicemail_greetings_download')) {
|
||||
if ($_GET['a'] == "download") { // && permission_exists('voicemail_greeting_download')) {
|
||||
session_cache_limiter('public');
|
||||
if ($_GET['type'] = "rec") {
|
||||
if (file_exists($v_greeting_dir.'/'.base64_decode($_GET['filename']))) {
|
||||
@@ -302,8 +302,8 @@ else {
|
||||
echo "<th width=\"50px\" class=\"listhdr\" nowrap=\"nowrap\">".$text['table-size']."</th>\n";
|
||||
echo th_order_by('greeting_description', $text['table-description'], $order_by, $order);
|
||||
echo "<td align='right' width='21'>\n";
|
||||
//if (permission_exists('voicemail_greetings_add')) {
|
||||
// echo " <a href='voicemail_greetings_edit.php?&voicemail_id=".$voicemail_id."' alt='add'>$v_link_label_add</a>\n";
|
||||
//if (permission_exists('voicemail_greeting_add')) {
|
||||
// echo " <a href='voicemail_greeting_edit.php?&voicemail_id=".$voicemail_id."' alt='add'>$v_link_label_add</a>\n";
|
||||
//}
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
@@ -331,7 +331,7 @@ else {
|
||||
echo " download";
|
||||
echo " </a>";
|
||||
//echo " \n";
|
||||
//echo " <a href=\"javascript:void(0);\" onclick=\"window.open('voicemail_greetings_play.php?id=$voicemail_id&a=download&type=rec&filename=".base64_encode($row['greeting_name'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
//echo " <a href=\"javascript:void(0);\" onclick=\"window.open('voicemail_greeting_play.php?id=$voicemail_id&a=download&type=rec&filename=".base64_encode($row['greeting_name'])."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
//echo " play";
|
||||
//echo " </a>";
|
||||
echo "</td>\n";
|
||||
@@ -343,10 +343,10 @@ else {
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['greeting_description']." </td>\n";
|
||||
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
//if (permission_exists('voicemail_greetings_edit')) {
|
||||
//if (permission_exists('voicemail_greeting_edit')) {
|
||||
// echo " <a href='voicemail_greeting_edit.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
//}
|
||||
if (permission_exists('voicemail_greetings_delete')) {
|
||||
if (permission_exists('voicemail_greeting_delete')) {
|
||||
echo " <a href='voicemail_greeting_delete.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
||||
@@ -402,7 +402,7 @@ else {
|
||||
|
||||
echo " <td valign='top' class='".$row_style[$c]."' nowrap=\"nowrap\">";
|
||||
if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('".PROJECT_PATH."/app/recordings/recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " ".$text['label-play']."\n";
|
||||
echo " </a>\n";
|
||||
echo " \n";
|
||||
|
||||
@@ -174,7 +174,7 @@ else {
|
||||
//echo " <a href=\"../recordings/v_recordings.php?a=download&type=rec&t=bin&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$uuid.'.wav')."\">\n";
|
||||
//echo " </a>";
|
||||
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('../recordings/v_recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$uuid.'.wav')."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('../recordings/v_recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$uuid.'.wav')."', 'play',' width=420,height=40,menubar=no,status=no,toolbar=no')\">\n";
|
||||
//$tmp_file_array = explode("\.",$file);
|
||||
echo $caller_id_name.' ';
|
||||
echo " </a>";
|
||||
@@ -277,7 +277,7 @@ else {
|
||||
$tmp_name = $value."_1.mp3";
|
||||
}
|
||||
if (strlen($tmp_name) > 0 && file_exists($_SESSION['switch']['recordings']['dir'].'/archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)) {
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('../recordings/v_recordings_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " <a href=\"javascript:void(0);\" onclick=\"window.open('../recordings/v_recording_play.php?a=download&type=moh&filename=".base64_encode('archive/'.$tmp_year.'/'.$tmp_month.'/'.$tmp_day.'/'.$tmp_name)."', 'play',' width=420,height=150,menubar=no,status=no,toolbar=no')\">\n";
|
||||
echo " play";
|
||||
echo " </a> ";
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ require_once "resources/paging.php";
|
||||
echo th_order_by('domain_setting_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('domain_setting_add')) {
|
||||
echo " <a href='domain_settings_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='domain_setting_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
else {
|
||||
echo " \n";
|
||||
@@ -161,7 +161,7 @@ require_once "resources/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['domain_setting_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('domain_setting_edit')) {
|
||||
echo " <a href='domain_settings_edit.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='domain_setting_edit.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
|
||||
}
|
||||
if (permission_exists('domain_setting_delete')) {
|
||||
echo " <a href='domain_settings_delete.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
@@ -182,7 +182,7 @@ require_once "resources/paging.php";
|
||||
echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('domain_setting_add')) {
|
||||
echo " <a href='domain_settings_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
echo " <a href='domain_setting_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||
}
|
||||
else {
|
||||
echo " \n";
|
||||
|
||||
@@ -38,12 +38,12 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$apps[$x]['permissions'][0]['name'] = 'user_account_settings_view';
|
||||
$apps[$x]['permissions'][0]['name'] = 'user_account_setting_view';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['permissions'][1]['name'] = 'user_account_settings_edit';
|
||||
$apps[$x]['permissions'][1]['name'] = 'user_account_setting_edit';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'user';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'admin';
|
||||
$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
|
||||
|
||||
@@ -28,7 +28,7 @@ require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
include "app_languages.php";
|
||||
|
||||
if (permission_exists("user_account_settings_view")) {
|
||||
if (permission_exists("user_account_setting_view")) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -179,7 +179,7 @@ if (count($_POST)>0 && $_POST["persistform"] != "1") {
|
||||
$sql .= "user_status = '$user_status' ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and user_uuid = '$user_uuid' ";
|
||||
if (permission_exists("user_account_settings_edit")) {
|
||||
if (permission_exists("user_account_setting_edit")) {
|
||||
$count = $db->exec(check_sql($sql));
|
||||
}
|
||||
|
||||
|
||||
@@ -480,7 +480,7 @@ else {
|
||||
echo "<br />\n";
|
||||
echo $text['description-contact']."\n";
|
||||
if (strlen($contact_uuid) > 0) {
|
||||
echo " <a href=\"/app/contacts/contacts_edit.php?id=$contact_uuid\">".$text['description-contact_view']."</a>\n";
|
||||
echo " <a href=\"/app/contacts/contact_edit.php?id=$contact_uuid\">".$text['description-contact_view']."</a>\n";
|
||||
}
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
|
||||
@@ -202,8 +202,8 @@ function build_menu() {
|
||||
|
||||
$tab_array = array();
|
||||
$menu_selected = false;
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/settings_edit.php") { $menu_selected = true; }
|
||||
$tab_array[] = array(gettext("Settings"), $menu_selected, $relative_url."/settings_edit.php");
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/setting_edit.php") { $menu_selected = true; }
|
||||
$tab_array[] = array(gettext("Settings"), $menu_selected, $relative_url."/setting_edit.php");
|
||||
unset($menu_selected);
|
||||
|
||||
$menu_selected = false;
|
||||
@@ -232,7 +232,7 @@ function build_menu() {
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/auto_attendant_options_edit.php") { $menu_selected = true; }
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/modules.php") { $menu_selected = true; }
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/recordings.php") { $menu_selected = true; }
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/recordings_edit.php") { $menu_selected = true; }
|
||||
if ($_SERVER["SCRIPT_NAME"] == $relative_url."/recording_edit.php") { $menu_selected = true; }
|
||||
unset($menu_selected);
|
||||
|
||||
$menu_selected = false;
|
||||
|
||||
Reference in New Issue
Block a user