Vergleich usercp.php - 1.2.7 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: usercp.php 3055 2007-05-13 15:01:15Z Tikitiki $

 * $Id: usercp.php 3139 2007-06-18 08:34:28Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 333Zeile 333
		}
else
{

		}
else
{



			$user['awayreason'] = htmlspecialchars_uni($user['awayreason']);

			if($mybb->user['away'] == "yes")
{
$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']);

			if($mybb->user['away'] == "yes")
{
$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']);

Zeile 777Zeile 777
	}

if($user['showredirect'] != "no")

	}

if($user['showredirect'] != "no")

	{

	{

		$showredirectcheck = "checked=\"checked\"";
}
else

		$showredirectcheck = "checked=\"checked\"";
}
else

Zeile 1221Zeile 1221
			$lastposttime = my_date($mybb->settings['timeformat'], $subscription['lastpost']);
// Don't link to guest's profiles (they have no profile).
if($subscription['lastposteruid'] == 0)

			$lastposttime = my_date($mybb->settings['timeformat'], $subscription['lastpost']);
// Don't link to guest's profiles (they have no profile).
if($subscription['lastposteruid'] == 0)

			{

			{

				$lastposterlink = $subscription['lastposter'];
}
else

				$lastposterlink = $subscription['lastposter'];
}
else

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

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

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

 




		if(!$type) 
{



		// Copy the avatar to the local server (work around remote URL access disabled for getimagesize)
$file = fetch_remote_file($mybb->input['avatarurl']);
if(!$file)
{

			$avatar_error = $lang->error_invalidavatarurl;

			$avatar_error = $lang->error_invalidavatarurl;

 
		}
else
{
$tmp_name = $mybb->settings['avataruploadpath']."/remote_".md5(uniqid(rand(), true));
$fp = @fopen($tmp_name, "wb");
if(!$fp)
{
$avatar_error = $lang->error_invalidavatarurl;
}
else
{
fwrite($fp, $file);
fclose($fp);
list($width, $height, $type) = @getimagesize($tmp_name);
@unlink($tmp_name);
if(!$type)
{
$avatar_error = $lang->error_invalidavatarurl;
}
}

		}

if(empty($avatar_error))

		}

if(empty($avatar_error))