Vergleich member.php - 1.8.27 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 839Zeile 839
				$ref['username'] = htmlspecialchars_uni($ref['username']);
$referrername = $ref['username'];
}

				$ref['username'] = htmlspecialchars_uni($ref['username']);
$referrername = $ref['username'];
}

			elseif(isset($referrer))

			elseif(!empty($referrer))

			{
$query = $db->simple_select("users", "username", "uid='".(int)$referrer['uid']."'");
$ref = $db->fetch_array($query);

			{
$query = $db->simple_select("users", "username", "uid='".(int)$referrer['uid']."'");
$ref = $db->fetch_array($query);

Zeile 901Zeile 901
				$code = $select = $val = $options = $expoptions = $useropts = '';
$seloptions = array();
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);

				$code = $select = $val = $options = $expoptions = $useropts = '';
$seloptions = array();
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);

				$thing = explode("\n", $profilefield['type'], "2");

				$thing = explode("\n", $profilefield['type'], 2);

				$type = trim($thing[0]);

				$type = trim($thing[0]);

				$options = $thing[1];

				$options = isset($thing[1]) ? $thing[1] : null;

				$select = '';
$field = "fid{$profilefield['fid']}";
$profilefield['description'] = htmlspecialchars_uni($profilefield['description']);

				$select = '';
$field = "fid{$profilefield['fid']}";
$profilefield['description'] = htmlspecialchars_uni($profilefield['description']);

Zeile 1716Zeile 1716
		}

$code = htmlspecialchars_uni($mybb->get_input('code'));

		}

$code = htmlspecialchars_uni($mybb->get_input('code'));


if(!isset($mybb->input['username']))
{
$input_username = '';
}
$input_username = htmlspecialchars_uni($mybb->input['username']);


		
$input_username = htmlspecialchars_uni($mybb->get_input('username'));






		eval("\$activate = \"".$templates->get("member_resetpassword")."\";");
output_page($activate);
}

		eval("\$activate = \"".$templates->get("member_resetpassword")."\";");
output_page($activate);
}

Zeile 1735Zeile 1731
    verify_post_check($mybb->get_input('my_post_key'));

$errors = array();

    verify_post_check($mybb->get_input('my_post_key'));

$errors = array();





	$plugins->run_hooks("member_do_login_start");

require_once MYBB_ROOT."inc/datahandlers/login.php";

	$plugins->run_hooks("member_do_login_start");

require_once MYBB_ROOT."inc/datahandlers/login.php";

Zeile 1789Zeile 1785
		$errors = $loginhandler->get_friendly_errors();

// If we need a captcha set it here

		$errors = $loginhandler->get_friendly_errors();

// If we need a captcha set it here

		if($mybb->settings['failedcaptchalogincount'] > 0 && (isset($user['loginattempts']) && $user['loginattempts'] > $mybb->settings['failedcaptchalogincount'] || (int)$mybb->cookies['loginattempts'] > $mybb->settings['failedcaptchalogincount']))













		if(
$mybb->settings['failedcaptchalogincount'] > 0 &&
(
(
isset($user['loginattempts']) &&
$user['loginattempts'] > $mybb->settings['failedcaptchalogincount']
) ||
(
isset($mybb->cookies['loginattempts']) &&
(int)$mybb->cookies['loginattempts'] > $mybb->settings['failedcaptchalogincount']
)
)
)

		{
$do_captcha = true;
$correct = $loginhandler->captcha_verified;

		{
$do_captcha = true;
$correct = $loginhandler->captcha_verified;

Zeile 1806Zeile 1814
		$loginhandler->complete_login();

$plugins->run_hooks("member_do_login_end");

		$loginhandler->complete_login();

$plugins->run_hooks("member_do_login_end");





		$mybb->input['url'] = $mybb->get_input('url');

if(!empty($mybb->input['url']) && my_strpos(basename($mybb->input['url']), 'member.php') === false && !preg_match('#^javascript:#i', $mybb->input['url']))

		$mybb->input['url'] = $mybb->get_input('url');

if(!empty($mybb->input['url']) && my_strpos(basename($mybb->input['url']), 'member.php') === false && !preg_match('#^javascript:#i', $mybb->input['url']))

Zeile 1835Zeile 1843
		{

redirect("index.php", $lang->redirect_loggedin);

		{

redirect("index.php", $lang->redirect_loggedin);

		}
}


		}
}


	$plugins->run_hooks("member_do_login_end");
}


	$plugins->run_hooks("member_do_login_end");
}


Zeile 2189Zeile 2197

$numthreads = $stats['numthreads'];
if($numthreads == 0)


$numthreads = $stats['numthreads'];
if($numthreads == 0)

	{

	{

		$thread_percent = "0";
}
else

		$thread_percent = "0";
}
else

Zeile 2233Zeile 2241
		if($memprofile['returndate'] == '')
{
$returndate = "$lang->unknown";

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

		}

		}

		else
{
$returnhome = explode("-", $memprofile['returndate']);

		else
{
$returnhome = explode("-", $memprofile['returndate']);

Zeile 2306Zeile 2314
			{
$membday = mktime(0, 0, 0, 1, 1, $membday[2]);
$membday = date("Y", $membday);

			{
$membday = mktime(0, 0, 0, 1, 1, $membday[2]);
$membday = date("Y", $membday);

				$membdayage = '';

				$membdayage = '';

			}
else
{

			}
else
{

Zeile 2317Zeile 2325
		}

if($memprofile['birthdayprivacy'] == 'age')

		}

if($memprofile['birthdayprivacy'] == 'age')

		{
$membday = $lang->birthdayhidden;
}

		{
$membday = $lang->birthdayhidden;
}

		else if($memprofile['birthdayprivacy'] == 'none')
{
$membday = $lang->birthdayhidden;
$membdayage = '';

		else if($memprofile['birthdayprivacy'] == 'none')
{
$membday = $lang->birthdayhidden;
$membdayage = '';

		}
}
else
{

		}
}
else
{

		$membday = $lang->not_specified;
$membdayage = '';
}

// Get the user title for this user

		$membday = $lang->not_specified;
$membdayage = '';
}

// Get the user title for this user

	unset($usertitle);

 
	unset($stars);

	unset($stars);

 
	$usertitle = '';

	$starimage = '';
if(trim($memprofile['usertitle']) != '')
{

	$starimage = '';
if(trim($memprofile['usertitle']) != '')
{

Zeile 2348Zeile 2356
	}
else
{

	}
else
{

 
		if(!isset($usertitles))
{
$usertitles = $cache->read('usertitles');
}


		// No usergroup title so get a default one

		// No usergroup title so get a default one

		$usertitles = $cache->read('usertitles');


 
		if(is_array($usertitles))
{
foreach($usertitles as $title)

		if(is_array($usertitles))
{
foreach($usertitles as $title)

Zeile 2358Zeile 2369
				if($memprofile['postnum'] >= $title['posts'])
{
$usertitle = $title['title'];

				if($memprofile['postnum'] >= $title['posts'])
{
$usertitle = $title['title'];

					$stars = $title['stars'];
$starimage = $title['starimage'];


					$stars = $title['stars'];
$starimage = $title['starimage'];


					break;
}
}

					break;
}
}

Zeile 2370Zeile 2381
	$usertitle = htmlspecialchars_uni($usertitle);

if($memperms['stars'] || $memperms['usertitle'])

	$usertitle = htmlspecialchars_uni($usertitle);

if($memperms['stars'] || $memperms['usertitle'])

	{

	{

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

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

	elseif(!$stars)

	elseif(!isset($stars))

	{

	{

		if(!is_array($usertitles))

		if(!isset($usertitles))

		{
$usertitles = $cache->read('usertitles');
}

// This is for cases where the user has a title, but the group has no defined number of stars (use number of stars as per default usergroups)

		{
$usertitles = $cache->read('usertitles');
}

// This is for cases where the user has a title, but the group has no defined number of stars (use number of stars as per default usergroups)

		if(is_array($usertitles))

		if(is_array($usertitles))

		{
foreach($usertitles as $title)
{

		{
foreach($usertitles as $title)
{

Zeile 2393Zeile 2404
					break;
}
}

					break;
}
}

 
		}

if(!isset($stars))
{
$stars = 0;

		}
}


		}
}


Zeile 2545Zeile 2561

// If this user is an Administrator or a Moderator then we wish to show all profile fields
$pfcache = $cache->read('profilefields');


// If this user is an Administrator or a Moderator then we wish to show all profile fields
$pfcache = $cache->read('profilefields');





	if(is_array($pfcache))
{
foreach($pfcache as $customfield)

	if(is_array($pfcache))
{
foreach($pfcache as $customfield)

Zeile 2560Zeile 2576

$customfieldval = $customfield_val = '';
$field = "fid{$customfield['fid']}";


$customfieldval = $customfield_val = '';
$field = "fid{$customfield['fid']}";





			if(isset($userfields[$field]))
{
$useropts = explode("\n", $userfields[$field]);

			if(isset($userfields[$field]))
{
$useropts = explode("\n", $userfields[$field]);

Zeile 2575Zeile 2591
						}
}
if($customfield_val != '')

						}
}
if($customfield_val != '')

					{

					{

						eval("\$customfieldval = \"".$templates->get("member_profile_customfields_field_multi")."\";");
}
}

						eval("\$customfieldval = \"".$templates->get("member_profile_customfields_field_multi")."\";");
}
}

Zeile 2604Zeile 2620
					{
$parser_options['allow_imgcode'] = 0;
}

					{
$parser_options['allow_imgcode'] = 0;
}





					$customfieldval = $parser->parse_message($userfields[$field], $parser_options);
}

					$customfieldval = $parser->parse_message($userfields[$field], $parser_options);
}

			}


			}


			if($customfieldval)
{
$customfield['name'] = htmlspecialchars_uni($customfield['name']);

			if($customfieldval)
{
$customfield['name'] = htmlspecialchars_uni($customfield['name']);

Zeile 2619Zeile 2635
	}

if($customfields)

	}

if($customfields)

	{

	{

		eval("\$profilefields = \"".$templates->get("member_profile_customfields")."\";");
}


		eval("\$profilefields = \"".$templates->get("member_profile_customfields")."\";");
}


Zeile 2636Zeile 2652
	{
// Fetch details on their ban
$query = $db->simple_select('banned b LEFT JOIN '.TABLE_PREFIX.'users a ON (b.admin=a.uid)', 'b.*, a.username AS adminuser', "b.uid='{$uid}'", array('limit' => 1));

	{
// Fetch details on their ban
$query = $db->simple_select('banned b LEFT JOIN '.TABLE_PREFIX.'users a ON (b.admin=a.uid)', 'b.*, a.username AS adminuser', "b.uid='{$uid}'", array('limit' => 1));

		$memban = $db->fetch_array($query);

if($memban['reason'])
{
$memban['reason'] = htmlspecialchars_uni($parser->parse_badwords($memban['reason']));
}
else
{
$memban['reason'] = $lang->na;
}

if($memban['lifted'] == 'perm' || $memban['lifted'] == '' || $memban['bantime'] == 'perm' || $memban['bantime'] == '---')
{
$banlength = $lang->permanent;
$timeremaining = $lang->na;
$banned_class = "normal_banned";
}
else
{
// Set up the array of ban times.
$bantimes = fetch_ban_times();

$banlength = $bantimes[$memban['bantime']];
$remaining = $memban['lifted']-TIME_NOW;

$timeremaining = nice_time($remaining, array('short' => 1, 'seconds' => false))."";

 




			$banned_class = '';
if($remaining < 3600)
{
$banned_class = "high_banned";
}
else if($remaining < 86400)









		if($db->num_rows($query))
{
$memban = $db->fetch_array($query);

if($memban['reason'])
{
$memban['reason'] = htmlspecialchars_uni($parser->parse_badwords($memban['reason']));
}
else
{
$memban['reason'] = $lang->na;
}

if($memban['lifted'] == 'perm' || $memban['lifted'] == '' || $memban['bantime'] == 'perm' || $memban['bantime'] == '---')

			{

			{

				$banned_class = "moderate_banned";
}
else if($remaining < 604800)
{
$banned_class = "low_banned";

				$banlength = $lang->permanent;
$timeremaining = $lang->na;
$banned_class = "normal_banned";



			}
else
{

			}
else
{

				$banned_class = "normal_banned";

























				// Set up the array of ban times.
$bantimes = fetch_ban_times();

$banlength = $bantimes[$memban['bantime']];
$remaining = $memban['lifted']-TIME_NOW;

$timeremaining = nice_time($remaining, array('short' => 1, 'seconds' => false))."";

$banned_class = '';
if($remaining < 3600)
{
$banned_class = "high_banned";
}
else if($remaining < 86400)
{
$banned_class = "moderate_banned";
}
else if($remaining < 604800)
{
$banned_class = "low_banned";
}
else
{
$banned_class = "normal_banned";
}

			}

			}

		}
eval('$timeremaining = "'.$templates->get('member_profile_banned_remaining').'";');

$memban['adminuser'] = build_profile_link(htmlspecialchars_uni($memban['adminuser']), $memban['admin']);

			eval('$timeremaining = "'.$templates->get('member_profile_banned_remaining').'";');








		// Display a nice warning to the user
eval('$bannedbit = "'.$templates->get('member_profile_banned').'";');









			$memban['adminuser'] = build_profile_link(htmlspecialchars_uni($memban['adminuser']), $memban['admin']);

// Display a nice warning to the user
eval('$bannedbit = "'.$templates->get('member_profile_banned').'";');
}
else
{
// TODO: more specific output for converted/merged boards where no ban record is merged.
$bannedbit = '';
}

	}

$adminoptions = '';

	}

$adminoptions = '';

Zeile 2879Zeile 2904
		$last_email = $db->fetch_array($query);

// Users last email was within the flood time, show the error

		$last_email = $db->fetch_array($query);

// Users last email was within the flood time, show the error

		if($last_email['mid'])

		if(isset($last_email['mid']))

		{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);


		{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);


Zeile 3052Zeile 3077
		$last_email = $db->fetch_array($query);

// Users last email was within the flood time, show the error

		$last_email = $db->fetch_array($query);

// Users last email was within the flood time, show the error

		if($last_email['mid'])

		if(isset($last_email['mid']))

		{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);


		{
$remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);