Changeset 5


Ignore:
Timestamp:
03/26/07 16:49:53 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/gotodownload.php

    r2 r5  
    1919                $imap_attachment = new imap_attachment();                        
    2020                $a = $imap_attachment->download_attachment($mbox_stream, $msg_number); 
    21                 $filename = $a[$idx_file]['name'];                                               
     21                 
     22                $filename = $a[$idx_file]['name']; 
    2223        } 
    2324        else 
     
    2526                         
    2627        $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    
    2931   function downloadFile($strFileType, $strFileName, $newFileName, $fileContent, $encoding) { 
    3032        $ContentType = "application/octet-stream"; 
     
    131133    header("Pragma: public"); 
    132134    header("Expires: 0"); // set expiration time 
    133         header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\""); 
    134          
     135    header ("Content-Disposition: attachment; filename=\"". addslashes($newFileName)."\"");      
     136     
    135137        if($fileContent) { 
    136138                if($encoding == 'base64') 
     
    144146                readfile($strFileName); 
    145147   } 
    146 ?> 
     148   ?> 
  • trunk/expressoMail1_2/js/common_functions.js

    r2 r5  
    265265        if(encoding) 
    266266                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>"; 
    268268} 
    269269function download_all_attachments(msg_folder, msg_number){ 
Note: See TracChangeset for help on using the changeset viewer.