Update xml_cdr_archive.php (#4832)

This commit is contained in:
chansizzle
2019-11-05 11:21:23 -07:00
committed by FusionPBX
parent 175a150237
commit 8f23d4d5dd

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2018
Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -380,7 +380,7 @@
echo th_order_by('caller_destination', $text['label-caller_destination'], $order_by, $order, null, null, $param);
}
echo th_order_by('destination_number', $text['label-destination'], $order_by, $order, null, null, $param);
if (permission_exists('recording_play') || permission_exists('recording_download')) {
if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) {
echo "<th>".$text['label-recording']."</th>\n";
$col_count++;
}
@@ -466,7 +466,7 @@
$seconds = ($row['hangup_cause']=="ORIGINATOR_CANCEL") ? $row['duration'] : round(($row['billmsec'] / 1000), 0, PHP_ROUND_HALF_UP);
//determine recording properties
if (permission_exists('recording_play') || permission_exists('recording_download')) {
if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) {
$record_path = $row['record_path'];
$record_name = $row['record_name'];
//$record_name = strtolower(pathinfo($tmp_name, PATHINFO_BASENAME));
@@ -479,7 +479,7 @@
}
//recording playback
if (permission_exists('recording_play') && $record_path != '') {
if (permission_exists('xml_cdr_recording_play') && $record_path != '') {
echo "<tr id='recording_progress_bar_".escape($row['xml_cdr_uuid'])."' style='display: none;'><td class='".$row_style[$c]." playback_progress_bar_background' style='padding: 0; border: none;' colspan='".escape($col_count)."'><span class='playback_progress_bar' id='recording_progress_".escape($row['xml_cdr_uuid'])."'></span></td></tr>\n";
}
@@ -566,17 +566,17 @@
echo " </a>\n";
echo " </td>\n";
//recording
if (permission_exists('recording_play') || permission_exists('recording_download')) {
if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) {
if ($record_path != '' && file_exists($record_path.'/'.$record_name)) {
echo " <td valign='top' align='center' class='".$row_style[$c]." row_style_slim tr_link_void' nowrap='nowrap'>";
if (permission_exists('recording_play')) {
if (permission_exists('xml_cdr_recording_play')) {
echo "<audio id='recording_audio_".escape($row['xml_cdr_uuid'])."' style='display: none;' preload='none' ontimeupdate=\"update_progress('".escape($row['xml_cdr_uuid'])."')\" onended=\"recording_reset('".escape($row['xml_cdr_uuid'])."');\" src=\"download.php?id=".escape($row['xml_cdr_uuid'])."&t=record\" type='".escape($record_type)."'></audio>";
echo "<span id='recording_button_".escape($row['xml_cdr_uuid'])."' onclick=\"recording_play('".escape($row['xml_cdr_uuid'])."')\" title='".$text['label-play']." / ".$text['label-pause']."'>".$v_link_label_play."</span>";
}
else {
echo "don't have recording_play permission ";
echo "don't have xml_cdr_recording_play permission ";
}
if (permission_exists('recording_download')) {
if (permission_exists('xml_cdr_recording_download')) {
echo "<a href=\"download.php?id=".escape($row['xml_cdr_uuid'])."&t=bin\" title='".$text['label-download']."'>".$v_link_label_download."</a>";
}
echo " </td>\n";
@@ -722,4 +722,4 @@
//show the footer
require_once "resources/footer.php";
?>
?>