Vergleich attachment.php - 1.2.0 - 1.2.4

  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: attachment.php 2164 2006-08-30 06:17:49Z chris $

 * $Id: attachment.php 2475 2006-12-01 04:58:21Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 100Zeile 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 111Zeile 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']);
}
?>