Vergleich usercp.php - 1.15 - 1.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1351Zeile 1351
	}

// Check to see if we're in a gallery or not

	}

// Check to see if we're in a gallery or not

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

	if($activegallery)

	{

	{

		$gallery = $mybb->input['gallery'];

		$gallery = str_replace("..", "", $mybb->input['gallery']);

		$lang->avatars_in_gallery = sprintf($lang->avatars_in_gallery, $friendlyname);
// Get a listing of avatars in this gallery
$avatardir = $mybb->settings['avatardir'];

		$lang->avatars_in_gallery = sprintf($lang->avatars_in_gallery, $friendlyname);
// Get a listing of avatars in this gallery
$avatardir = $mybb->settings['avatardir'];

Zeile 1496Zeile 1496
		$mybb->input['avatarurl'] = preg_replace("#script:#i", "", $mybb->input['avatarurl']);
$mybb->input['avatarurl'] = htmlspecialchars($mybb->input['avatarurl']);
$ext = getextention($mybb->input['avatarurl']);

		$mybb->input['avatarurl'] = preg_replace("#script:#i", "", $mybb->input['avatarurl']);
$mybb->input['avatarurl'] = htmlspecialchars($mybb->input['avatarurl']);
$ext = getextention($mybb->input['avatarurl']);

		if(preg_match("#gif|jpg|jpeg|jpe|bmp|png#i", $ext) && $mybb->settings['maxavatardims'] != "")








		list($width, $height, $type) = @getimagesize($mybb->input['avatarurl']);

if(!$type)
{
error($lang->error_invalidavatarurl);
}

if($width && $height && $mybb->settings['maxavatardims'] != "")

		{

		{

			list($width, $height) = @getimagesize($mybb->input['avatarurl']);

 
			list($maxwidth, $maxheight) = explode("x", $mybb->settings['maxavatardims']);
if(($maxwidth && $width > $maxwidth) || ($maxheight && $height > $maxheight))
{

			list($maxwidth, $maxheight) = explode("x", $mybb->settings['maxavatardims']);
if(($maxwidth && $width > $maxwidth) || ($maxheight && $height > $maxheight))
{