Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: attachment.php 4143 2008-08-22 02:47:25Z Tikitiki $
| * $Id: attachment.php 4304 2009-01-02 01:11:56Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 113 | Zeile 113 |
---|
{ $ext = get_extension($attachment['filename']);
|
{ $ext = get_extension($attachment['filename']);
|
if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "msie") !== false && strpos($attachment['filetype'], "image") === false)
| if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "msie") !== false)
|
{ header("Content-disposition: attachment; filename=\"{$attachment['filename']}\""); } else { header("Content-disposition: inline; filename=\"{$attachment['filename']}\"");
|
{ header("Content-disposition: attachment; filename=\"{$attachment['filename']}\""); } else { header("Content-disposition: inline; filename=\"{$attachment['filename']}\"");
|
| } if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), "msie 6.0") !== false) { header("Expires: -1");
|
} header("Content-type: {$attachment['filetype']}");
| } header("Content-type: {$attachment['filetype']}");
|