Changeset 6478
- Timestamp:
- 08/26/08 08:30:34 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/callmonitor.module
r6474 r6478 208 208 // recording file 209 209 $recording = $recordings[$value['uniqueid'] . $value['calldate']]; 210 $recordingCrypt = urlencode($crypt->encrypt($recording,$ARI_CRYPT_PASSWORD)); 210 $fileCrypt = $crypt->encrypt($recording,$ARI_CRYPT_PASSWORD); 211 $recordingCrypt = urlencode($fileCrypt); 211 212 212 213 // date and time … … 217 218 // recording delete checkbox 218 219 if ($CALLMONITOR_ALLOW_DELETE) { 219 $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $ recordingCrypt . "></td>";220 $recording_delete_checkbox = "<td class='checkbox'><input type=checkbox name='selected" . ++$i . "' value=" . $fileCrypt . "></td>"; 220 221 } 221 222 … … 535 536 536 537 foreach($files as $key => $fileCrypt) { 537 $file = $crypt->decrypt( urldecode($fileCrypt),$ARI_CRYPT_PASSWORD);538 $file = $crypt->decrypt($fileCrypt,$ARI_CRYPT_PASSWORD); 538 539 if (is_writable($file)) { 539 540 unlink($file); freepbx/branches/2.5/amp_conf/htdocs/recordings/modules/voicemail.module
r6474 r6478 408 408 } 409 409 410 $fileCrypt = urlencode($crypt->encrypt($file,$ARI_CRYPT_PASSWORD));410 $fileCrypt = $crypt->encrypt($file,$ARI_CRYPT_PASSWORD); 411 411 412 412 $tableText .= " … … 629 629 630 630 // decrypt path 631 $path = $crypt->decrypt( urldecode($pathCrypt),$ARI_CRYPT_PASSWORD);631 $path = $crypt->decrypt($pathCrypt,$ARI_CRYPT_PASSWORD); 632 632 633 633 // get file parts for search … … 725 725 foreach($files as $key => $pathCrypt) { 726 726 // decrypt path 727 $pathPlain = $crypt->decrypt( urlencode($pathCrypt),$ARI_CRYPT_PASSWORD);727 $pathPlain = $crypt->decrypt($pathCrypt,$ARI_CRYPT_PASSWORD); 728 728 // add plain path to new array 729 729 $filesPlain[] = $pathPlain;
