Changeset 5
- Timestamp:
- 03/26/07 16:49:53 (17 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/gotodownload.php
r2 r5 19 19 $imap_attachment = new imap_attachment(); 20 20 $a = $imap_attachment->download_attachment($mbox_stream, $msg_number); 21 $filename = $a[$idx_file]['name']; 21 22 $filename = $a[$idx_file]['name']; 22 23 } 23 24 else … … 25 26 26 27 $strFileType = strrev(substr(strrev(strtolower($filename)),0,4)); 27 28 downloadFile($strFileType, $filename, $newfilename ? $newfilename : $filename, $fileContent, $encoding); 28 29 downloadFile($strFileType, $filename, $newfilename ? $newfilename : $filename, $fileContent, $encoding); 30 29 31 function downloadFile($strFileType, $strFileName, $newFileName, $fileContent, $encoding) { 30 32 $ContentType = "application/octet-stream"; … … 131 133 header("Pragma: public"); 132 134 header("Expires: 0"); // set expiration time 133 header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\"");134 135 header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\""); 136 135 137 if($fileContent) { 136 138 if($encoding == 'base64') … … 144 146 readfile($strFileName); 145 147 } 146 ?>148 ?> -
trunk/expressoMail1_2/js/common_functions.js
r2 r5 265 265 if(encoding) 266 266 params += "&encoding="+encoding; 267 div_attachment.innerHTML="<iframe style=' width:400;height:400' name='attachment' src='inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params+"'></iframe>";267 div_attachment.innerHTML="<iframe style='display:none;width:0;height:0' name='attachment' src='inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params+"'></iframe>"; 268 268 } 269 269 function download_all_attachments(msg_folder, msg_number){
Note: See TracChangeset
for help on using the changeset viewer.