Vergleich member.php - 1.2.1 - 1.2.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: member.php 2224 2006-09-14 00:35:33Z chris $

 * $Id: member.php 2932 2007-03-10 05:48:55Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 381Zeile 381
			}
elseif($referrername)
{

			}
elseif($referrername)
{

				$query = $db->simple_select(TABLE_PREFIX."users", "uid", "username='".$db->escape_string($referrername)."'");

				$query = $db->simple_select(TABLE_PREFIX."users", "uid", "LOWER(username)='".$db->escape_string(my_strtolower($referrername))."'");

				$ref = $db->fetch_array($query);
if(!$ref['uid'])
{

				$ref = $db->fetch_array($query);
if(!$ref['uid'])
{

Zeile 615Zeile 615

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


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

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");

		$user = $db->fetch_array($query);
if(!$user['username'])
{

		$user = $db->fetch_array($query);
if(!$user['username'])
{

Zeile 799Zeile 799

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


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

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");

		$user = $db->fetch_array($query);
if(!$user['uid'])
{

		$user = $db->fetch_array($query);
if(!$user['uid'])
{

Zeile 902Zeile 902
	}

my_setcookie('loginattempts', 1);

	}

my_setcookie('loginattempts', 1);

	$db->delete_query(TABLE_PREFIX."sessions", "ip='".$session->ipaddress."' AND sid != '".$session->sid."'");

	$db->delete_query(TABLE_PREFIX."sessions", "ip='".$db->escape_string($session->ipaddress)."' AND sid != '".$session->sid."'");

	$newsession = array(
"uid" => $user['uid'],
"loginattempts" => 1,

	$newsession = array(
"uid" => $user['uid'],
"loginattempts" => 1,

Zeile 1046Zeile 1046
	$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']);
$lang->users_signature = sprintf($lang->users_signature, $memprofile['username']);
$lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);

	$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']);
$lang->users_signature = sprintf($lang->users_signature, $memprofile['username']);
$lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);


if(!empty($memprofile['awayreason']))
{
$awayreason = $memprofile['awayreason'];
}
else
{
$awayreason = $lang->away_no_reason;
}

 

if($memprofile['avatar'])
{


if($memprofile['avatar'])
{

Zeile 1065Zeile 1056
			$avatar_width_height = "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";
}
$avatar = "<img src=\"$memprofile[avatar]\" alt=\"\" $avatar_width_height />";

			$avatar_width_height = "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";
}
$avatar = "<img src=\"$memprofile[avatar]\" alt=\"\" $avatar_width_height />";

	}
else
{
$avatar = '';

	}
else
{
$avatar = '';

	}

if($memprofile['hideemail'] != "yes")

	}

if($memprofile['hideemail'] != "yes")

	{

	{

		eval("\$sendemail = \"".$templates->get("member_profile_email")."\";");
}
else
{
$sendemail = '';

		eval("\$sendemail = \"".$templates->get("member_profile_email")."\";");
}
else
{
$sendemail = '';

	}


	}


	if($memprofile['website'])

	if($memprofile['website'])

	{

	{

		$memprofile['website'] = htmlspecialchars_uni($memprofile['website']);
$website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";

		$memprofile['website'] = htmlspecialchars_uni($memprofile['website']);
$website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";

	}

	}

	else
{
$website = '';

	else
{
$website = '';

	}


	}


	if($memprofile['signature'])
{
$sig_parser = array(

	if($memprofile['signature'])
{
$sig_parser = array(

Zeile 1110Zeile 1101
	{
$ppd = $memprofile['postnum'];
}

	{
$ppd = $memprofile['postnum'];
}

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS posts", "visible > 0");
$posts = $db->fetch_field($query, "posts");

	$stats = $cache->read("stats");
$posts = $stats['numposts'];

	if($posts == 0)
{
$percent = "0";

	if($posts == 0)
{
$percent = "0";

Zeile 1138Zeile 1129
	{
$lang->away_note = sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);

	{
$lang->away_note = sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);

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








		if(!empty($memprofile['awayreason']))
{
$awayreason = htmlspecialchars_uni($memprofile['awayreason']);
}
else
{
$awayreason = $lang->away_no_reason;
}

		if($memprofile['returndate'] == '')
{
$returndate = "$lang->unknown";
}
else

		if($memprofile['returndate'] == '')
{
$returndate = "$lang->unknown";
}
else

		{

		{			

			$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);
$returndate = my_date($mybb->settings['dateformat'], $returnmkdate);

			$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);
$returndate = my_date($mybb->settings['dateformat'], $returnmkdate);

Zeile 1399Zeile 1397
	{
error_no_permission();
}

	{
error_no_permission();
}

	$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "username='".$db->escape_string($mybb->input['touser'])."'");

	$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['touser']))."'");

	$emailto = $db->fetch_array($query);
if(!$emailto['username'])
{

	$emailto = $db->fetch_array($query);
if(!$emailto['username'])
{