Vergleich attachment.php - 1.6.2 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: attachment.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 55Zeile 55
// Permissions
$forumpermissions = forum_permissions($fid);


// Permissions
$forumpermissions = forum_permissions($fid);


if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['candlattachments'] == 0 && !$mybb->input['thumbnail']))

if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']) || ($forumpermissions['candlattachments'] == 0 && !$mybb->input['thumbnail']))

{
error_no_permission();
}

{
error_no_permission();
}

Zeile 127Zeile 127
			break;

default:

			break;

default:

			header("Content-type: application/force-download");








			$filetype = $attachment['filetype'];

if(!$filetype)
{
$filetype = 'application/force-download';
}

header("Content-type: {$filetype}");

			$disposition = "attachment";
}


			$disposition = "attachment";
}