Ticket #2565: callmonitor.module.patch
| File callmonitor.module.patch, 2.0 kB (added by sasargen, 8 months ago) |
|---|
-
callmonitor.module
old new 99 99 global $ASTERISK_CALLMONITOR_PATH; 100 100 global $CALLMONITOR_ALLOW_DELETE; 101 101 global $AJAX_PAGE_REFRESH_ENABLE; 102 global $ARI_CRYPT_PASSWORD; 102 103 103 104 $display = new DisplaySearch(); 105 $crypt = new Crypt(); 104 106 105 107 // get the search string 106 108 $m = getArgument($args,'m'); … … 205 207 206 208 // recording file 207 209 $recording = $recordings[$value['uniqueid'] . $value['calldate']]; 210 $recordingCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD); 208 211 209 212 // date and time 210 213 $buf = split(' ', $value[calldate]); … … 213 216 214 217 // recording delete checkbox 215 218 if ($CALLMONITOR_ALLOW_DELETE) { 216 $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $recording . "></td>";219 $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $recordingCrypt . "></td>"; 217 220 } 218 221 219 222 $recordingLink = ''; 220 223 if (is_file($recordings[$value['uniqueid'] . $value['calldate']])) { 221 $recordingLink = "<a href='#' onClick=\"javascript:popUp('misc/recording_popup.php?recording=" . $recording . "&date=" . $date . "&time=" . $time . "'); return false;\">" . _("play") . "</a>";224 $recordingLink = "<a href='#' onClick=\"javascript:popUp('misc/recording_popup.php?recording=" . $recordingCrypt . "&date=" . $date . "&time=" . $time . "'); return false;\">" . _("play") . "</a>"; 222 225 } 223 226 224 227 $recording_body .= "<tr> … … 525 528 */ 526 529 function deleteRecData($files) { 527 530 528 foreach($files as $key => $file) { 531 global $ARI_CRYPT_PASSWORD; 532 533 $crypt = new Crypt(); 534 535 foreach($files as $key => $fileCrypt) { 536 $file = $crypt->decrypt($fileCrypt,$ARI_CRYPT_PASSWORD); 529 537 if (is_writable($file)) { 530 538 unlink($file); 531 539 } else {
