Vergleich member.php - 1.4.5 - 1.4.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
<?php
/**
* MyBB 1.4

<?php
/**
* MyBB 1.4

 * Copyright � 2008 MyBB Group, All Rights Reserved

 * Copyright © 2008 MyBB Group, All Rights Reserved

 *
* Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 *
* Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: member.php 4304 2009-01-02 01:11:56Z chris $

 * $Id: member.php 5379 2011-02-21 11:06:42Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 989Zeile 989
		$mybb->input['action'] = "login";
$mybb->input['request_method'] = "get";


		$mybb->input['action'] = "login";
$mybb->input['request_method'] = "get";


		if($mybb->settings['failedlogintext'] == 1)

		if($mybb->settings['failedlogincount'] != 0 && $mybb->settings['failedlogintext'] == 1)

		{
$login_text = $lang->sprintf($lang->failed_login_again, $mybb->settings['failedlogincount'] - $logins);
}

		{
$login_text = $lang->sprintf($lang->failed_login_again, $mybb->settings['failedlogincount'] - $logins);
}

Zeile 1109Zeile 1109
	login_attempt_check();

// Redirect to the page where the user came from, but not if that was the login page.

	login_attempt_check();

// Redirect to the page where the user came from, but not if that was the login page.

	if($mybb->input['url'] && !preg_match("/action=login/i", $mybb->input['url']))
{
$redirect_url = htmlentities($mybb->input['url']);
}
elseif($_SERVER['HTTP_REFERER'])

	if($_SERVER['HTTP_REFERER'] && strpos($_SERVER['HTTP_REFERER'], "action=login") === false)





	{
$redirect_url = htmlentities($_SERVER['HTTP_REFERER']);
}

	{
$redirect_url = htmlentities($_SERVER['HTTP_REFERER']);
}

	





	else
{
$redirect_url = '';
}


	$captcha = "";
// Show captcha image for guests if enabled
if($mybb->settings['captchaimage'] == 1 && function_exists("imagepng") && $do_captcha == true)

	$captcha = "";
// Show captcha image for guests if enabled
if($mybb->settings['captchaimage'] == 1 && function_exists("imagepng") && $do_captcha == true)

Zeile 1254Zeile 1254
	}

$lang->profile = $lang->sprintf($lang->profile, $memprofile['username']);

	}

$lang->profile = $lang->sprintf($lang->profile, $memprofile['username']);





	if(!$memprofile['uid'])
{
error($lang->error_nomember);

	if(!$memprofile['uid'])
{
error($lang->error_nomember);

Zeile 1272Zeile 1272
	if($mybb->settings['enablepms'] != 0 && $memprofile['receivepms'] != 0 && $memperms['canusepms'] != 0 && my_strpos(",".$memprofile['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
$lang->send_pm = $lang->sprintf($lang->send_pm, $memprofile['username']);

	if($mybb->settings['enablepms'] != 0 && $memprofile['receivepms'] != 0 && $memperms['canusepms'] != 0 && my_strpos(",".$memprofile['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
$lang->send_pm = $lang->sprintf($lang->send_pm, $memprofile['username']);

	}

	}

	else
{
$lang->send_pm = '';

	else
{
$lang->send_pm = '';

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

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





	if($memprofile['avatar'])
{
$memprofile['avatar'] = htmlspecialchars_uni($memprofile['avatar']);

	if($memprofile['avatar'])
{
$memprofile['avatar'] = htmlspecialchars_uni($memprofile['avatar']);

Zeile 1303Zeile 1303
	}
else
{

	}
else
{

 
		$alttrow = "trow1"; // To properly sort the contact details below

		$sendemail = '';

		$sendemail = '';

 
	}

// Clean alt_trow for the contact details
$cat_array = array(
"pm",
"icq",
"aim",
"yahoo",
"msn",
);

$bgcolors = array();
foreach($cat_array as $cat)
{
$bgcolors[$cat] = alt_trow();

	}

if($memprofile['website'])

	}

if($memprofile['website'])

Zeile 1325Zeile 1341
			"allow_imgcode" => $mybb->settings['sigimgcode'],
"me_username" => $memprofile['username']
);

			"allow_imgcode" => $mybb->settings['sigimgcode'],
"me_username" => $memprofile['username']
);





		$memprofile['signature'] = $parser->parse_message($memprofile['signature'], $sig_parser);
eval("\$signature = \"".$templates->get("member_profile_signature")."\";");
}

		$memprofile['signature'] = $parser->parse_message($memprofile['signature'], $sig_parser);
eval("\$signature = \"".$templates->get("member_profile_signature")."\";");
}

Zeile 1342Zeile 1358
	if($numposts == 0)
{
$percent = "0";

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

	}

	}

	else
{
$percent = $memprofile['postnum']*100/$numposts;

	else
{
$percent = $memprofile['postnum']*100/$numposts;

Zeile 1353Zeile 1369
	{
$percent = 100;
}

	{
$percent = 100;
}


$query = $db->simple_select("users", "COUNT(uid) AS referrals", "referrer='{$memprofile['uid']}'");
$referrals = $db->fetch_field($query, "referrals");

 

if(!empty($memprofile['icq']))


if(!empty($memprofile['icq']))

	{

	{

		$memprofile['icq'] = intval($memprofile['icq']);
}
else

		$memprofile['icq'] = intval($memprofile['icq']);
}
else

	{

	{

		$memprofile['icq'] = '';
}


		$memprofile['icq'] = '';
}


Zeile 1371Zeile 1384
		$lang->away_note = $lang->sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);
if(!empty($memprofile['awayreason']))

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

		{

		{

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

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

Zeile 1398Zeile 1411
			}
}
eval("\$awaybit = \"".$templates->get("member_profile_away")."\";");

			}
}
eval("\$awaybit = \"".$templates->get("member_profile_away")."\";");

	}

	}

	if($memprofile['dst'] == 1)
{
$memprofile['timezone']++;

	if($memprofile['dst'] == 1)
{
$memprofile['timezone']++;

Zeile 1477Zeile 1490
	{
$memprofile['displaygroup'] = $memprofile['usergroup'];
}

	{
$memprofile['displaygroup'] = $memprofile['usergroup'];
}

 

// Grab the following fields from the user's displaygroup
$displaygroupfields = array(
"title",
"usertitle",
"stars",
"starimage",
"image",
"usereputationsystem"
);

	$displaygroup = usergroup_displaygroup($memprofile['displaygroup']);

// Get the user title for this user

	$displaygroup = usergroup_displaygroup($memprofile['displaygroup']);

// Get the user title for this user

Zeile 1508Zeile 1531
		}
}


		}
}


	if($displaygroup['stars'])
{

	if($displaygroup['stars'] || $displaygroup['usertitle'])
{

		// Set the number of stars if display group has constant number of stars
$stars = $displaygroup['stars'];
}

		// Set the number of stars if display group has constant number of stars
$stars = $displaygroup['stars'];
}

Zeile 1525Zeile 1548
				$starimage = $title['starimage'];
break;
}

				$starimage = $title['starimage'];
break;
}

		}

		}

	}

if(!empty($displaygroup['image']))

	}

if(!empty($displaygroup['image']))

Zeile 1533Zeile 1556
		if(!empty($mybb->user['language']))
{
$language = $mybb->user['language'];

		if(!empty($mybb->user['language']))
{
$language = $mybb->user['language'];

		}

		}

		else
{
$language = $mybb->settings['bblanguage'];

		else
{
$language = $mybb->settings['bblanguage'];

Zeile 1541Zeile 1564
		$displaygroup['image'] = str_replace("{lang}", $language, $displaygroup['image']);
$displaygroup['image'] = str_replace("{theme}", $theme['imgdir'], $displaygroup['image']);
eval("\$groupimage = \"".$templates->get("member_profile_groupimage")."\";");

		$displaygroup['image'] = str_replace("{lang}", $language, $displaygroup['image']);
$displaygroup['image'] = str_replace("{theme}", $theme['imgdir'], $displaygroup['image']);
eval("\$groupimage = \"".$templates->get("member_profile_groupimage")."\";");

	}

	}


if(!$starimage)
{


if(!$starimage)
{

Zeile 1577Zeile 1600
	}

// Fetch the reputation for this user

	}

// Fetch the reputation for this user

	if($memperms['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1)

	if($memperms['usereputationsystem'] == 1 && $displaygroup['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1)

	{
$reputation = get_reputation($memprofile['reputation']);


	{
$reputation = get_reputation($memprofile['reputation']);


Zeile 1614Zeile 1637
	$userfields = $db->fetch_array($query);
$customfields = '';
$bgcolor = "trow1";

	$userfields = $db->fetch_array($query);
$customfields = '';
$bgcolor = "trow1";

 
	$alttrow = "trow1";

	// If this user is an Administrator or a Moderator then we wish to show all profile fields

	// If this user is an Administrator or a Moderator then we wish to show all profile fields

	if($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1 || $mybb->usergroup['gid'] == 6)

	if($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1 || $mybb->usergroup['canmodcp'] == 1)

	{
$field_hidden = '1=1';
}

	{
$field_hidden = '1=1';
}

Zeile 1684Zeile 1708
	{
$modoptions = '';
}

	{
$modoptions = '';
}

	



	$plugins->run_hooks("member_profile_end");

eval("\$profile = \"".$templates->get("member_profile")."\";");

	$plugins->run_hooks("member_profile_end");

eval("\$profile = \"".$templates->get("member_profile")."\";");

Zeile 1709Zeile 1733
	{
$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}' AND dateline >= '".(TIME_NOW - (60*60*24))."'");
$sent_count = $db->fetch_field($query, "sent_count");

	{
$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}' AND dateline >= '".(TIME_NOW - (60*60*24))."'");
$sent_count = $db->fetch_field($query, "sent_count");

		if($sent_count > $mybb->usergroup['maxemails'])

		if($sent_count >= $mybb->usergroup['maxemails'])

		{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);
error($lang->error_max_emails_day);

		{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);
error($lang->error_max_emails_day);