From 2a0a1d1e120ecd09419ce45cce35e53c58d61865 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 27 Nov 2019 11:00:16 -0700 Subject: [PATCH] Email Logs, CDR: Minor adjustments. --- app/email_logs/email_logs.php | 43 ----------------------------------- app/xml_cdr/xml_cdr.php | 8 +++---- 2 files changed, 4 insertions(+), 47 deletions(-) diff --git a/app/email_logs/email_logs.php b/app/email_logs/email_logs.php index c8d190cae3..a33f70418d 100644 --- a/app/email_logs/email_logs.php +++ b/app/email_logs/email_logs.php @@ -79,49 +79,6 @@ } } - -//resend email (previous method) - /* - if ($_REQUEST['a'] == 'resend' && permission_exists('email_log_resend')) { - $email_log_uuid = $_REQUEST["id"]; - $resend = true; - - $msg_found = false; - - if (is_uuid($email_log_uuid)) { - $sql = "select email from v_email_logs "; - $sql .= "where email_log_uuid = :email_log_uuid "; - if (!permission_exists('email_log_all') || $_REQUEST['showall'] != 'true') { - $sql .= "and domain_uuid = :domain_uuid "; - $parameters['domain_uuid'] = $domain_uuid; - } - $parameters['email_log_uuid'] = $email_log_uuid; - $database = new database; - $row = $database->select($sql, $parameters, 'row'); - if (is_array($row) && @sizeof($row) != 0) { - $email = $row['email']; - $msg_found = true; - } - unset($sql, $parameters, $row); - } - - if ($msg_found) { - $msg = $email; - require_once "secure/v_mailto.php"; - if ($mailer_error == '') { - message::add($text['message-message_resent']); - header("Location: email_log_delete.php?id=".$email_log_uuid.(permission_exists('email_log_all') && $_REQUEST['showall'] == 'true' ? "&showall=true" : null)); - } - else { - message::add($text['message-resend_failed'].": ".$mailer_error, 'negative', 4000); - header("Location: email_logs.php".(permission_exists('email_log_all') && $_REQUEST['showall'] == 'true' ? "?showall=true" : null)); - } - } - - exit; - } - */ - //get order and order by and sanatize the values $order_by = $_GET["order_by"]; $order = $_GET["order"]; diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index 005c5d9ab5..75974d42dc 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -475,12 +475,12 @@ $param = substr($param, 0, strrpos($param, '&order_by=')); //remove trailing order by //show the results - $col_count = 0; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; + $col_count = 0; if (permission_exists('xml_cdr_delete')) { echo " \n"; - $content .= "\n"; // dummy table row to maintain alternating background color + $content .= "\n"; // dummy row to maintain alternating background color } if (permission_exists('xml_cdr_details')) { $list_row_url = "xml_cdr_details.php?id=".urlencode($row['xml_cdr_uuid']).($_REQUEST['show'] ? "&show=all" : null); @@ -763,10 +763,10 @@ $content .= " \n"; }
\n"; echo " \n"; @@ -631,7 +631,7 @@ //recording playback if (permission_exists('xml_cdr_recording_play') && $record_path != '') { $content .= "