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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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']);


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