Vergleich attachment.php - 1.10 - 1.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 70Zeile 70

$plugins->run_hooks("attachment_end");



$plugins->run_hooks("attachment_end");


header("Content-disposition: filename=$attachment[filename]");

 
if($mybb->input['thumbnail'])
{
$ext = getextention($attachment['thumbnail']);

if($mybb->input['thumbnail'])
{
$ext = getextention($attachment['thumbnail']);

Zeile 94Zeile 93
			$type = "image/unknown";
break;
}

			$type = "image/unknown";
break;
}

 
	header("Content-disposition: filename=$attachment[filename]");  

	header("Content-type: ".$type);
$thumb = $settings['uploadspath']."/".$attachment['thumbnail'];
header("Content-length: ".@filesize($thumb));

	header("Content-type: ".$type);
$thumb = $settings['uploadspath']."/".$attachment['thumbnail'];
header("Content-length: ".@filesize($thumb));

Zeile 101Zeile 101
}
else
{

}
else
{

 
	$ext = getextention($attachment['filename']);
if($ext == "txt" || $ext == "htm" || $ext == "html")
{
header("Content-disposition: attachment; filename=$attachment[filename]");
}
else
{
header("Content-disposition: inline; filename=$attachment[filename]");
}

	header("Content-type: $attachment[filetype]");
header("Content-length: $attachment[filesize]");
echo file_get_contents($settings['uploadspath']."/".$attachment['attachname']);

	header("Content-type: $attachment[filetype]");
header("Content-length: $attachment[filesize]");
echo file_get_contents($settings['uploadspath']."/".$attachment['attachname']);