Vergleich attachment.php - 1.00 - 1.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id$

 * $Id: attachment.php 649 2005-08-30 06:03:31Z chris $

 */

define("KILL_GLOBALS", 1);

 */

define("KILL_GLOBALS", 1);

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']);