Vergleich admin/modules/forum/attachments.php - 1.8.29 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 78Zeile 78
	{
require_once MYBB_ROOT."inc/functions_upload.php";


	{
require_once MYBB_ROOT."inc/functions_upload.php";


		$query = $db->simple_select("attachments", "aid,pid,posthash, filename", "aid IN (".implode(",", $mybb->input['aids']).")");

		$query = $db->simple_select("attachments", "aid,pid,posthash,filename", "aid IN (".implode(",", $mybb->input['aids']).")");

		while($attachment = $db->fetch_array($query))
{
if(!$attachment['pid'])

		while($attachment = $db->fetch_array($query))
{
if(!$attachment['pid'])

Zeile 693Zeile 693
		}

// Username matching

		}

// Username matching

		if($mybb->input['username'])

		if(!empty($mybb->input['username']))

		{
$user = get_user_by_username($mybb->input['username']);


		{
$user = get_user_by_username($mybb->input['username']);


			if(!$user['uid'])

			if(!$user)

			{
if($user_types == 1)
{

			{
if($user_types == 1)
{

Zeile 752Zeile 752
			"downloads"    => $mybb->get_input('downloads', MyBB::INPUT_INT)
);


			"downloads"    => $mybb->get_input('downloads', MyBB::INPUT_INT)
);


		if(!empty($mybb->input['dateuploaded']) && $mybb->request_method == "post")

		if(!empty($mybb->input['dateuploaded']))

		{
$direction_fields['dateuploaded'] = TIME_NOW-$direction_fields['dateuploaded']*60*60*24;
}

		{
$direction_fields['dateuploaded'] = TIME_NOW-$direction_fields['dateuploaded']*60*60*24;
}

		if(!empty($mybb->input['filesize']) && $mybb->request_method == "post")

		if(!empty($mybb->input['filesize']))

		{
$direction_fields['filesize'] *= 1024;
}

		{
$direction_fields['filesize'] *= 1024;
}

Zeile 878Zeile 878
				$pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');
foreach($pagination_vars as $var)
{

				$pagination_vars = array('perpage', 'sortby', 'order', 'filename', 'mimetype', 'username', 'downloads', 'downloads_dir', 'dateuploaded', 'dateuploaded_dir', 'filesize', 'filesize_dir');
foreach($pagination_vars as $var)
{

					if($mybb->input[$var])

					if($mybb->get_input($var))

					{
$pagination_url .= "&{$var}=".urlencode($mybb->input[$var]);
}
}

					{
$pagination_url .= "&{$var}=".urlencode($mybb->input[$var]);
}
}

				if(is_array($mybb->input['forum']) && !empty($mybb->input['forum']))

				if(!empty($mybb->input['forum']) && is_array($mybb->input['forum']))

				{
foreach($mybb->input['forum'] as $fid)
{

				{
foreach($mybb->input['forum'] as $fid)
{