Vergleich member.php - 1.6.12 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 148Zeile 148
		"subscriptionmethod" => $mybb->input['subscriptionmethod'],
"receivepms" => $mybb->input['receivepms'],
"pmnotice" => $mybb->input['pmnotice'],

		"subscriptionmethod" => $mybb->input['subscriptionmethod'],
"receivepms" => $mybb->input['receivepms'],
"pmnotice" => $mybb->input['pmnotice'],

		"emailpmnotify" => $mybb->input['emailpmnotify'],

		"pmnotify" => $mybb->input['pmnotify'],

		"invisible" => $mybb->input['invisible'],
"dstcorrection" => $mybb->input['dstcorrection']
);

		"invisible" => $mybb->input['invisible'],
"dstcorrection" => $mybb->input['dstcorrection']
);

Zeile 217Zeile 217
			$pmnoticecheck = " checked=\"checked\"";
}


			$pmnoticecheck = " checked=\"checked\"";
}


		if($mybb->input['emailpmnotify'] == 1)

		if($mybb->input['pmnotify'] == 1)

		{

		{

			$emailpmnotifycheck = "checked=\"checked\"";

			$pmnotifycheck = "checked=\"checked\"";

		}

if($mybb->input['invisible'] == 1)

		}

if($mybb->input['invisible'] == 1)

Zeile 530Zeile 530
		}
// Custom profile fields baby!
$altbg = "trow1";

		}
// Custom profile fields baby!
$altbg = "trow1";

		$query = $db->simple_select("profilefields", "*", "required=1", array('order_by' => 'disporder'));

		$query = $db->simple_select("profilefields", "*", "required='1' AND editable='1'", array('order_by' => 'disporder'));

		while($profilefield = $db->fetch_array($query))
{
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);

		while($profilefield = $db->fetch_array($query))
{
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);

Zeile 705Zeile 705
			$emailnotifycheck = '';
$receivepmscheck = "checked=\"checked\"";
$pmnoticecheck = " checked=\"checked\"";

			$emailnotifycheck = '';
$receivepmscheck = "checked=\"checked\"";
$pmnoticecheck = " checked=\"checked\"";

			$emailpmnotifycheck = '';

			$pmnotifycheck = '';

			$invisiblecheck = '';
if($mybb->settings['dstcorrection'] == 1)
{

			$invisiblecheck = '';
if($mybb->settings['dstcorrection'] == 1)
{

Zeile 766Zeile 766
		foreach($languages as $lname => $language)
{
$language = htmlspecialchars_uni($language);

		foreach($languages as $lname => $language)
{
$language = htmlspecialchars_uni($language);

			if($user['language'] == $lname)

			if(isset($user['language']) && $user['language'] == $lname)

			{
$langoptions .= "<option value=\"$lname\" selected=\"selected\">$language</option>\n";
}

			{
$langoptions .= "<option value=\"$lname\" selected=\"selected\">$language</option>\n";
}

Zeile 789Zeile 789

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


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

		switch($mybb->settings['username'])

		switch($mybb->settings['username_method'])

		{
case 0:
$query = $db->simple_select("users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'", array('limit' => 1));

		{
case 0:
$query = $db->simple_select("users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'", array('limit' => 1));

Zeile 1067Zeile 1067
	}
if($mybb->input['code'] && $user['uid'])
{

	}
if($mybb->input['code'] && $user['uid'])
{

		$query = $db->simple_select("awaitingactivation", "*", "uid='".$user['uid']."' AND type='p'");
$activation = $db->fetch_array($query);

		$query = $db->simple_select("awaitingactivation", "code", "uid='".$user['uid']."' AND type='p'");
$activationcode = $db->fetch_field($query, 'code');

		$now = TIME_NOW;

		$now = TIME_NOW;

		if($activation['code'] != $mybb->input['code'])
{

		if(!$activationcode || $activationcode != $mybb->input['code'])
{

			error($lang->error_badlostpwcode);

			error($lang->error_badlostpwcode);

		}

		}

		$db->delete_query("awaitingactivation", "uid='".$user['uid']."' AND type='p'");
$username = $user['username'];

// Generate a new password, then update it
$password_length = intval($mybb->settings['minpasswordlength']);

		$db->delete_query("awaitingactivation", "uid='".$user['uid']."' AND type='p'");
$username = $user['username'];

// Generate a new password, then update it
$password_length = intval($mybb->settings['minpasswordlength']);





		if($password_length < 8)
{
$password_length = 8;
}

$password = random_str($password_length);

		if($password_length < 8)
{
$password_length = 8;
}

$password = random_str($password_length);

		$logindetails = update_password($user['uid'], md5($password), $user['salt']);


		$logindetails = update_password($user['uid'], md5($password), $user['salt']);


		$email = $user['email'];

$plugins->run_hooks("member_resetpassword_process");

		$email = $user['email'];

$plugins->run_hooks("member_resetpassword_process");

Zeile 1284Zeile 1284
			}

$mybb->input['url'] = str_replace('&amp;', '&', $mybb->input['url']);

			}

$mybb->input['url'] = str_replace('&amp;', '&', $mybb->input['url']);

			

			

			// Redirect to the URL if it is not member.php
redirect(htmlentities($mybb->input['url']), $lang->redirect_loggedin);
}

			// Redirect to the URL if it is not member.php
redirect(htmlentities($mybb->input['url']), $lang->redirect_loggedin);
}

Zeile 1482Zeile 1482
		else
{
$uid = $mybb->user['uid'];

		else
{
$uid = $mybb->user['uid'];

		}
}


		}
}


	if($mybb->user['uid'] != $uid)

	if($mybb->user['uid'] != $uid)

	{

	{

		$memprofile = get_user($uid);
}
else

		$memprofile = get_user($uid);
}
else

Zeile 1495Zeile 1495
	}

$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 1556Zeile 1556
		"yahoo",
"msn",
);

		"yahoo",
"msn",
);





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

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

Zeile 1581Zeile 1581
			"me_username" => $memprofile['username'],
"filter_badwords" => 1
);

			"me_username" => $memprofile['username'],
"filter_badwords" => 1
);

 

if($memperms['signofollow'])
{
$sig_parser['nofollow_on'] = 1;
}


$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")."\";");