| | |
| | | $MESSAGE = new rcube_message(get_input_value('_uid', RCUBE_INPUT_GET)); |
| | | } |
| | | |
| | | send_nocacheing_headers(); |
| | | |
| | | // show part page |
| | | if (!empty($_GET['_frame'])) { |
| | |
| | | |
| | | $browser = new rcube_browser; |
| | | |
| | | send_nocacheing_headers(); |
| | | |
| | | // send download headers |
| | | if ($_GET['_download']) { |
| | | header("Content-Type: application/octet-stream"); |
| | |
| | | } |
| | | else { |
| | | // don't kill the connection if download takes more than 30 sec. |
| | | if (!ini_get('safe_mode')) { |
| | | set_time_limit(0); |
| | | } |
| | | @set_time_limit(0); |
| | | |
| | | $filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary; |
| | | |