List Views: Minor adjustments to code.
This commit is contained in:
parent
34adf14ed9
commit
aa593c03fc
|
|
@ -46,19 +46,18 @@
|
|||
$access_controls = $_POST['access_controls'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($access_controls) && @sizeof($access_controls) != 0) {
|
||||
$obj = new access_controls;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('access_control_add')) {
|
||||
$obj = new access_controls;
|
||||
$obj->copy($access_controls);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('access_control_delete')) {
|
||||
$obj = new access_controls;
|
||||
$obj->delete($access_controls);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -47,25 +47,24 @@
|
|||
$call_blocks = $_POST['call_blocks'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_blocks) && @sizeof($call_blocks) != 0) {
|
||||
$obj = new call_block;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_block_add')) {
|
||||
$obj = new call_block;
|
||||
$obj->copy($call_blocks);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('call_block_edit')) {
|
||||
$obj = new call_block;
|
||||
$obj->toggle($call_blocks);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('call_block_delete')) {
|
||||
$obj = new call_block;
|
||||
$obj->delete($call_blocks);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -46,19 +46,18 @@
|
|||
$call_broadcasts = $_POST['call_broadcasts'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_broadcasts) && @sizeof($call_broadcasts) != 0) {
|
||||
$obj = new call_broadcast;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_broadcast_add')) {
|
||||
$obj = new call_broadcast;
|
||||
$obj->copy($call_broadcasts);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('call_broadcast_delete')) {
|
||||
$obj = new call_broadcast;
|
||||
$obj->delete($call_broadcasts);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$call_center_agents = $_POST['call_center_agents'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_center_agents) && @sizeof($call_center_agents) != 0) {
|
||||
$obj = new call_center;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_center_agent_add')) {
|
||||
$obj = new call_center;
|
||||
$obj->copy_agents($call_center_agents);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('call_center_agent_delete')) {
|
||||
$obj = new call_center;
|
||||
$obj->delete_agents($call_center_agents);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$call_center_queues = $_POST['call_center_queues'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_center_queues) && @sizeof($call_center_queues) != 0) {
|
||||
$obj = new call_center;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_center_queue_add')) {
|
||||
$obj = new call_center;
|
||||
$obj->copy_queues($call_center_queues);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('call_center_queue_delete')) {
|
||||
$obj = new call_center;
|
||||
$obj->delete_queues($call_center_queues);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,25 +50,24 @@
|
|||
$call_flows = $_POST['call_flows'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_flows) && @sizeof($call_flows) != 0) {
|
||||
$obj = new call_flows;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_flow_add')) {
|
||||
$obj = new call_flows;
|
||||
$obj->copy($call_flows);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('call_flow_edit')) {
|
||||
$obj = new call_flows;
|
||||
$obj->toggle($call_flows);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('call_flow_delete')) {
|
||||
$obj = new call_flows;
|
||||
$obj->delete($call_flows);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
$extensions = $_POST['extensions'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($extensions) && @sizeof($extensions) != 0) {
|
||||
switch ($action) {
|
||||
case 'toggle_call_forward':
|
||||
|
|
@ -59,14 +59,12 @@
|
|||
$obj->toggle($extensions);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle_follow_me':
|
||||
if (permission_exists('follow_me')) {
|
||||
$obj = new follow_me;
|
||||
$obj->toggle($extensions);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle_do_not_disturb':
|
||||
if (permission_exists('do_not_disturb')) {
|
||||
$obj = new do_not_disturb;
|
||||
|
|
|
|||
|
|
@ -51,25 +51,24 @@
|
|||
}
|
||||
|
||||
/*
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($conference_centers) && @sizeof($conference_centers) != 0) {
|
||||
$obj = new conference_centers;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('conference_center_add')) {
|
||||
$obj = new conference_centers;
|
||||
$obj->copy($conference_centers);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('conference_center_edit')) {
|
||||
$obj = new conference_centers;
|
||||
$obj->toggle($conference_centers);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('conference_center_delete')) {
|
||||
$obj = new conference_centers;
|
||||
$obj->delete($conference_centers);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,25 +50,24 @@
|
|||
$conferences = $_POST['conferences'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($conferences) && @sizeof($conferences) != 0) {
|
||||
$obj = new conferences;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('conference_add')) {
|
||||
$obj = new conferences;
|
||||
$obj->copy($conferences);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('conference_edit')) {
|
||||
$obj = new conferences;
|
||||
$obj->toggle($conferences);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('conference_delete')) {
|
||||
$obj = new conferences;
|
||||
$obj->delete($conferences);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,13 +50,12 @@
|
|||
$contacts = $_POST['contacts'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($contacts) && @sizeof($contacts) != 0) {
|
||||
$obj = new contacts;
|
||||
|
||||
switch ($action) {
|
||||
case 'delete':
|
||||
if (permission_exists('contact_delete')) {
|
||||
$obj = new contacts;
|
||||
$obj->delete($contacts);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$destinations = $_POST['destinations'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($destinations) && @sizeof($destinations) != 0) {
|
||||
$obj = new destinations;
|
||||
|
||||
switch ($action) {
|
||||
case 'toggle':
|
||||
if (permission_exists('destination_edit')) {
|
||||
$obj = new destinations;
|
||||
$obj->toggle($destinations);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('destination_delete')) {
|
||||
$obj = new destinations;
|
||||
$obj->delete($destinations);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -49,25 +49,24 @@
|
|||
$profiles = $_POST['profiles'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($profiles) && @sizeof($profiles) != 0) {
|
||||
$obj = new device;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('device_profile_add')) {
|
||||
$obj = new device;
|
||||
$obj->copy_profiles($profiles);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('device_profile_edit')) {
|
||||
$obj = new device;
|
||||
$obj->toggle_profiles($profiles);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('device_profile_delete')) {
|
||||
$obj = new device;
|
||||
$obj->delete_profiles($profiles);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$vendors = $_POST['vendors'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($vendors) && @sizeof($vendors) != 0) {
|
||||
$obj = new device;
|
||||
|
||||
switch ($action) {
|
||||
case 'toggle':
|
||||
if (permission_exists('device_vendor_edit')) {
|
||||
$obj = new device;
|
||||
$obj->toggle_vendors($vendors);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('device_vendor_delete')) {
|
||||
$obj = new device;
|
||||
$obj->delete_vendors($vendors);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -52,19 +52,18 @@
|
|||
//get the search
|
||||
$search = strtolower($_REQUEST["search"]);
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($devices) && @sizeof($devices) != 0) {
|
||||
$obj = new device;
|
||||
|
||||
switch ($action) {
|
||||
case 'toggle':
|
||||
if (permission_exists('device_edit')) {
|
||||
$obj = new device;
|
||||
$obj->toggle($devices);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('device_delete')) {
|
||||
$obj = new device;
|
||||
$obj->delete($devices);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
$app_uuid = $_REQUEST["app_uuid"];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($dialplans) && @sizeof($dialplans) != 0) {
|
||||
|
||||
//define redirect parameters and url
|
||||
|
|
@ -65,37 +65,39 @@
|
|||
if ($search) { $params[] = "search=".urlencode($search); }
|
||||
if ($order_by) { $params[] = "order_by=".urlencode($order_by); }
|
||||
if ($order) { $params[] = "order=".urlencode($order); }
|
||||
$redirect_url = 'dialplans.php'.($params ? '?'.implode('&', $params) : null);
|
||||
$list_page = 'dialplans.php'.($params ? '?'.implode('&', $params) : null);
|
||||
unset($params);
|
||||
|
||||
//create object, set app_uuid and redirect
|
||||
$obj = new dialplan;
|
||||
$obj->app_uuid = $app_uuid;
|
||||
$obj->list_page = $redirect_url;
|
||||
|
||||
//process action
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('dialplan_add')) {
|
||||
$obj = new dialplan;
|
||||
$obj->app_uuid = $app_uuid;
|
||||
$obj->list_page = $list_page;
|
||||
$obj->copy($dialplans);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('dialplan_edit')) {
|
||||
$obj = new dialplan;
|
||||
$obj->app_uuid = $app_uuid;
|
||||
$obj->list_page = $list_page;
|
||||
$obj->toggle($dialplans);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('dialplan_delete')) {
|
||||
$obj = new dialplan;
|
||||
$obj->app_uuid = $app_uuid;
|
||||
$obj->list_page = $list_page;
|
||||
$obj->delete($dialplans);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
//redirect
|
||||
header('Location: '.$redirect_url);
|
||||
header('Location: '.$list_page);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,27 +41,25 @@
|
|||
$emails = $_POST['emails'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($emails) && @sizeof($emails) != 0) {
|
||||
$obj = new email_logs;
|
||||
|
||||
switch ($action) {
|
||||
case 'download':
|
||||
if (permission_exists('email_log_download')) {
|
||||
$obj = new email_logs;
|
||||
$obj->download($emails);
|
||||
//download failed, set message
|
||||
message::add($text['message-download_failed'],'negative',7000);
|
||||
message::add($text['message-download_failed'],'negative',7000); //download failed, set message
|
||||
}
|
||||
break;
|
||||
|
||||
case 'resend':
|
||||
if (permission_exists('email_log_resend')) {
|
||||
$obj = new email_logs;
|
||||
$obj->resend($emails);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('email_log_delete')) {
|
||||
$obj = new email_logs;
|
||||
$obj->delete($emails);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -47,25 +47,24 @@
|
|||
$email_templates = $_POST['email_templates'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($email_templates) && @sizeof($email_templates) != 0) {
|
||||
$obj = new email_templates;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('email_template_add')) {
|
||||
$obj = new email_templates;
|
||||
$obj->copy($email_templates);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('email_template_edit')) {
|
||||
$obj = new email_templates;
|
||||
$obj->toggle($email_templates);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('email_template_delete')) {
|
||||
$obj = new email_templates;
|
||||
$obj->delete($email_templates);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$extensions = $_POST['extensions'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($extensions) && @sizeof($extensions) != 0) {
|
||||
$obj = new extension;
|
||||
|
||||
switch ($action) {
|
||||
case 'toggle':
|
||||
if (permission_exists('extension_enabled')) {
|
||||
$obj = new extension;
|
||||
$obj->toggle($extensions);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('extension_delete')) {
|
||||
$obj = new extension;
|
||||
$obj->delete($extensions);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$fax_servers = $_POST['fax_servers'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($fax_servers) && @sizeof($fax_servers) != 0) {
|
||||
$obj = new fax;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('fax_extension_copy')) {
|
||||
$obj = new fax;
|
||||
$obj->copy($fax_servers);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('fax_extension_delete')) {
|
||||
$obj = new fax;
|
||||
$obj->delete($fax_servers);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,25 +50,24 @@
|
|||
$gateways = $_POST['gateways'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($gateways) && @sizeof($gateways) != 0) {
|
||||
$obj = new gateways;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('gateway_add')) {
|
||||
$obj = new gateways;
|
||||
$obj->copy($gateways);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('gateway_edit')) {
|
||||
$obj = new gateways;
|
||||
$obj->toggle($gateways);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('gateway_delete')) {
|
||||
$obj = new gateways;
|
||||
$obj->delete($gateways);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,25 +50,24 @@
|
|||
$ivr_menus = $_POST['ivr_menus'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($ivr_menus) && @sizeof($ivr_menus) != 0) {
|
||||
$obj = new ivr_menu;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('ivr_menu_add')) {
|
||||
$obj = new ivr_menu;
|
||||
$obj->copy($ivr_menus);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('ivr_menu_edit')) {
|
||||
$obj = new ivr_menu;
|
||||
$obj->toggle($ivr_menus);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('ivr_menu_delete')) {
|
||||
$obj = new ivr_menu;
|
||||
$obj->delete($ivr_menus);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -50,19 +50,18 @@
|
|||
$modules = $_POST['modules'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($modules) && @sizeof($modules) != 0) {
|
||||
$obj = new modules;
|
||||
|
||||
switch ($action) {
|
||||
case 'toggle':
|
||||
if (permission_exists('module_edit')) {
|
||||
$obj = new modules;
|
||||
$obj->toggle($modules);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('module_delete')) {
|
||||
$obj = new modules;
|
||||
$obj->delete($modules);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -43,25 +43,24 @@
|
|||
$number_translations = $_POST['number_translations'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($number_translations) && @sizeof($number_translations) != 0) {
|
||||
$obj = new number_translations;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('number_translation_add')) {
|
||||
$obj = new number_translations;
|
||||
$obj->copy($number_translations);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('number_translation_edit')) {
|
||||
$obj = new number_translations;
|
||||
$obj->toggle($number_translations);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('number_translation_delete')) {
|
||||
$obj = new number_translations;
|
||||
$obj->delete($number_translations);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -48,27 +48,26 @@
|
|||
$phrases = $_POST['phrases'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($phrases) && @sizeof($phrases) != 0) {
|
||||
$obj = new phrases;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('phrase_add')) {
|
||||
$obj = new phrases;
|
||||
$obj->copy($phrases);
|
||||
save_phrases_xml();
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('phrase_edit')) {
|
||||
$obj = new phrases;
|
||||
$obj->toggle($phrases);
|
||||
save_phrases_xml();
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('phrase_delete')) {
|
||||
$obj = new phrases;
|
||||
$obj->delete($phrases);
|
||||
save_phrases_xml();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,25 +50,24 @@
|
|||
$pin_numbers = $_POST['pin_numbers'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($pin_numbers) && @sizeof($pin_numbers) != 0) {
|
||||
$obj = new pin_numbers;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('pin_number_add')) {
|
||||
$obj = new pin_numbers;
|
||||
$obj->copy($pin_numbers);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
if (permission_exists('pin_number_edit')) {
|
||||
$obj = new pin_numbers;
|
||||
$obj->toggle($pin_numbers);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
if (permission_exists('pin_number_delete')) {
|
||||
$obj = new pin_numbers;
|
||||
$obj->delete($pin_numbers);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -264,13 +264,12 @@
|
|||
$recordings = $_POST['recordings'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($recordings) && @sizeof($recordings) != 0) {
|
||||
$obj = new switch_recordings;
|
||||
|
||||
switch ($action) {
|
||||
case 'delete':
|
||||
if (permission_exists('recording_delete')) {
|
||||
$obj = new switch_recordings;
|
||||
$obj->delete($recordings);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -51,20 +51,19 @@
|
|||
$ring_groups = $_POST['ring_groups'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($ring_groups) && @sizeof($ring_groups) != 0) {
|
||||
$obj = new ring_groups;
|
||||
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
$obj = new ring_groups;
|
||||
$obj->copy($ring_groups);
|
||||
break;
|
||||
|
||||
case 'toggle':
|
||||
$obj = new ring_groups;
|
||||
$obj->toggle($ring_groups);
|
||||
break;
|
||||
|
||||
case 'delete':
|
||||
$obj = new ring_groups;
|
||||
$obj->delete($ring_groups);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,13 +50,12 @@
|
|||
$xml_cdrs = $_POST['xml_cdrs'];
|
||||
}
|
||||
|
||||
//process posted data by action
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($xml_cdrs) && @sizeof($xml_cdrs) != 0) {
|
||||
$obj = new xml_cdr;
|
||||
|
||||
switch ($action) {
|
||||
case 'delete':
|
||||
if (permission_exists('xml_cdr_delete')) {
|
||||
$obj = new xml_cdr;
|
||||
$obj->delete($xml_cdrs);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue