Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: attachment.php 2164 2006-08-30 06:17:49Z chris $
| * $Id: attachment.php 3030 2007-04-26 00:19:47Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 100 | Zeile 100 |
---|
$type = "image/unknown"; break; }
|
$type = "image/unknown"; break; }
|
header("Content-disposition: filename=$attachment[filename]");
| header("Content-disposition: filename={$attachment['filename']}");
|
header("Content-type: ".$type); $thumb = $mybb->settings['uploadspath']."/".$attachment['thumbnail']; header("Content-length: ".@filesize($thumb));
| header("Content-type: ".$type); $thumb = $mybb->settings['uploadspath']."/".$attachment['thumbnail']; header("Content-length: ".@filesize($thumb));
|
Zeile 111 | Zeile 111 |
---|
$ext = get_extension($attachment['filename']); if($ext == "txt" || $ext == "htm" || $ext == "html" || $ext == "pdf") {
|
$ext = get_extension($attachment['filename']); if($ext == "txt" || $ext == "htm" || $ext == "html" || $ext == "pdf") {
|
header("Content-disposition: attachment; filename=$attachment[filename]");
| header("Content-disposition: attachment; filename={$attachment['filename']}");
|
} else {
|
} else {
|
header("Content-disposition: inline; filename=$attachment[filename]");
| header("Content-disposition: inline; filename={$attachment['filename']}");
|
}
|
}
|
header("Content-type: $attachment[filetype]"); header("Content-length: $attachment[filesize]");
| header("Content-type: {$attachment['filetype']}"); header("Content-length: {$attachment['filesize']}");
|
echo file_get_contents($mybb->settings['uploadspath']."/".$attachment['attachname']); } ?>
| echo file_get_contents($mybb->settings['uploadspath']."/".$attachment['attachname']); } ?>
|