Vergleich member.php - 1.8.20 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1220Zeile 1220
			if($db->num_rows($query) > 0)
{
$question = $db->fetch_array($query);

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

 
				
//Set parser options for security question
$parser_options = array(
"allow_html" => 0,
"allow_mycode" => 1,
"allow_smilies" => 1,
"allow_imgcode" => 1,
"allow_videocode" => 1,
"filter_badwords" => 1,
"me_username" => 0,
"shorten_urls" => 0,
"highlight" => 0,
);





				$question['question'] = htmlspecialchars_uni($question['question']);


				//Parse question
$question['question'] = $parser->parse_message($question['question'], $parser_options);

				$question['sid'] = htmlspecialchars_uni($question['sid']);

$refresh = '';

				$question['sid'] = htmlspecialchars_uni($question['sid']);

$refresh = '';

Zeile 1232Zeile 1246
				{
eval("\$refresh = \"".$templates->get("member_register_question_refresh")."\";");
}

				{
eval("\$refresh = \"".$templates->get("member_register_question_refresh")."\";");
}





				eval("\$questionbox = \"".$templates->get("member_register_question")."\";");

$validator_javascript .= "
$('#answer').rules('add', {

				eval("\$questionbox = \"".$templates->get("member_register_question")."\";");

$validator_javascript .= "
$('#answer').rules('add', {

		required: true,
remote:{

		required: true,
remote:{

			url: 'xmlhttp.php?action=validate_question',
type: 'post',
dataType: 'json',

			url: 'xmlhttp.php?action=validate_question',
type: 'post',
dataType: 'json',

Zeile 1252Zeile 1266
		},
messages: {
remote: '{$lang->js_validator_no_security_question}'

		},
messages: {
remote: '{$lang->js_validator_no_security_question}'

		}
});\n";
}
}

		}
});\n";
}
}


$hiddencaptcha = '';
// Hidden CAPTCHA for Spambots


$hiddencaptcha = '';
// Hidden CAPTCHA for Spambots

Zeile 1286Zeile 1300
			if($mybb->settings['requirecomplexpasswords'] == 1)
{
$lang->password = $lang->complex_password = $lang->sprintf($lang->complex_password, $mybb->settings['minpasswordlength']);

			if($mybb->settings['requirecomplexpasswords'] == 1)
{
$lang->password = $lang->complex_password = $lang->sprintf($lang->complex_password, $mybb->settings['minpasswordlength']);


$validator_javascript .= "
$('#password').rules('add', {
required: true,


$validator_javascript .= "
$('#password').rules('add', {
required: true,

		minlength: {$mybb->settings['minpasswordlength']},
remote:{
url: 'xmlhttp.php?action=complex_password',

		minlength: {$mybb->settings['minpasswordlength']},
remote:{
url: 'xmlhttp.php?action=complex_password',

Zeile 1305Zeile 1319
			minlength: '{$lang->js_validator_password_length}',
required: '{$lang->js_validator_password_length}',
remote: '{$lang->js_validator_no_image_text}'

			minlength: '{$lang->js_validator_password_length}',
required: '{$lang->js_validator_password_length}',
remote: '{$lang->js_validator_no_image_text}'

		}
});\n";
}

		}
});\n";
}

			else
{
$validator_javascript .= "

			else
{
$validator_javascript .= "

Zeile 1358Zeile 1372
		}

// Set the time so we can find automated signups

		}

// Set the time so we can find automated signups

		$time = TIME_NOW;

		$time = TIME_NOW;


$plugins->run_hooks("member_register_end");



$plugins->run_hooks("member_register_end");


Zeile 1388Zeile 1402
			switch($mybb->settings['username_method'])
{
case 0:

			switch($mybb->settings['username_method'])
{
case 0:

					error($lang->error_invalidpworusername);
break;

					error($lang->error_invalidpworusername);
break;

				case 1:
error($lang->error_invalidpworusername1);
break;

				case 1:
error($lang->error_invalidpworusername1);
break;

Zeile 1402Zeile 1416
			}
}
$uid = $user['uid'];

			}
}
$uid = $user['uid'];

	}
else

	}
else

	{
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));
}

	{
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));
}

Zeile 1418Zeile 1432
		if($activation['code'] !== $mybb->get_input('code'))
{
error($lang->error_badactivationcode);

		if($activation['code'] !== $mybb->get_input('code'))
{
error($lang->error_badactivationcode);

		}


		}


		if($activation['type'] == "b" && $activation['validated'] == 1)

		if($activation['type'] == "b" && $activation['validated'] == 1)

		{

		{

			error($lang->error_alreadyvalidated);

			error($lang->error_alreadyvalidated);

		}

		}


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



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


Zeile 1434Zeile 1448
			$cache->update_awaitingactivation();
}
if($activation['type'] == "e")

			$cache->update_awaitingactivation();
}
if($activation['type'] == "e")

		{

		{

			$newemail = array(
"email" => $db->escape_string($activation['misc']),
);

			$newemail = array(
"email" => $db->escape_string($activation['misc']),
);

Zeile 1463Zeile 1477
	else
{
$plugins->run_hooks("member_activate_form");

	else
{
$plugins->run_hooks("member_activate_form");


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


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


if(!isset($user['username']))


if(!isset($user['username']))

		{

		{

			$user['username'] = '';
}
$user['username'] = htmlspecialchars_uni($user['username']);

			$user['username'] = '';
}
$user['username'] = htmlspecialchars_uni($user['username']);





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

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

	}

	}

}

}





if($mybb->input['action'] == "do_resendactivation" && $mybb->request_method == "post")
{
$plugins->run_hooks("member_do_resendactivation_start");

if($mybb->input['action'] == "do_resendactivation" && $mybb->request_method == "post")
{
$plugins->run_hooks("member_do_resendactivation_start");


if($mybb->settings['regtype'] == "admin")
{
error($lang->error_activated_by_admin);
}

$errors = array();

if($mybb->settings['captchaimage'])
{
require_once MYBB_ROOT.'inc/class_captcha.php';
$captcha = new captcha;

if($captcha->validate_captcha() == false)
{
// CAPTCHA validation failed


if($mybb->settings['regtype'] == "admin")
{
error($lang->error_activated_by_admin);
}

$errors = array();

if($mybb->settings['captchaimage'])
{
require_once MYBB_ROOT.'inc/class_captcha.php';
$captcha = new captcha;

if($captcha->validate_captcha() == false)
{
// CAPTCHA validation failed

			foreach($captcha->get_errors() as $error)
{
$errors[] = $error;

			foreach($captcha->get_errors() as $error)
{
$errors[] = $error;

Zeile 1513Zeile 1527
	if($numusers < 1)
{
error($lang->error_invalidemail);

	if($numusers < 1)
{
error($lang->error_invalidemail);

	}

	}

	else
{
if(count($errors) == 0)

	else
{
if(count($errors) == 0)

Zeile 1546Zeile 1560
					switch($mybb->settings['username_method'])
{
case 0:

					switch($mybb->settings['username_method'])
{
case 0:

							$emailmessage = $lang->sprintf($lang->email_activateaccount, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl'], $user['uid'], $activationcode);
break;

							$emailmessage = $lang->sprintf($lang->email_activateaccount, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl'], $user['uid'], $activationcode);
break;

						case 1:
$emailmessage = $lang->sprintf($lang->email_activateaccount1, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl'], $user['uid'], $activationcode);
break;

						case 1:
$emailmessage = $lang->sprintf($lang->email_activateaccount1, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl'], $user['uid'], $activationcode);
break;

Zeile 1628Zeile 1642
if($mybb->input['action'] == "do_lostpw" && $mybb->request_method == "post")
{
$plugins->run_hooks("member_do_lostpw_start");

if($mybb->input['action'] == "do_lostpw" && $mybb->request_method == "post")
{
$plugins->run_hooks("member_do_lostpw_start");


$errors = array();

if($mybb->settings['captchaimage'])
{
require_once MYBB_ROOT.'inc/class_captcha.php';


$errors = array();

if($mybb->settings['captchaimage'])
{
require_once MYBB_ROOT.'inc/class_captcha.php';

		$captcha = new captcha;

if($captcha->validate_captcha() == false)

		$captcha = new captcha;

if($captcha->validate_captcha() == false)

Zeile 1699Zeile 1713
		else
{
$mybb->input['action'] = "lostpw";

		else
{
$mybb->input['action'] = "lostpw";

		}
}
}


		}
}
}


if($mybb->input['action'] == "lostpw")
{
$plugins->run_hooks("member_lostpw");

if($mybb->input['action'] == "lostpw")
{
$plugins->run_hooks("member_lostpw");

Zeile 1717Zeile 1731
		if($post_captcha->html)
{
$captcha = $post_captcha->html;

		if($post_captcha->html)
{
$captcha = $post_captcha->html;

		}
}


		}
}


	if(isset($errors) && count($errors) > 0)
{
$errors = inline_error($errors);

	if(isset($errors) && count($errors) > 0)
{
$errors = inline_error($errors);

Zeile 1752Zeile 1766
			switch($mybb->settings['username_method'])
{
case 0:

			switch($mybb->settings['username_method'])
{
case 0:

					error($lang->error_invalidpworusername);
break;

					error($lang->error_invalidpworusername);
break;

				case 1:
error($lang->error_invalidpworusername1);

				case 1:
error($lang->error_invalidpworusername1);

					break;

					break;

				case 2:
error($lang->error_invalidpworusername2);
break;

				case 2:
error($lang->error_invalidpworusername2);
break;

Zeile 1769Zeile 1783
	else
{
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));

	else
{
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));

	}


	}


	if(isset($mybb->input['code']) && $user)
{
$query = $db->simple_select("awaitingactivation", "code", "uid='".$user['uid']."' AND type='p'");

	if(isset($mybb->input['code']) && $user)
{
$query = $db->simple_select("awaitingactivation", "code", "uid='".$user['uid']."' AND type='p'");

Zeile 2321Zeile 2335
	$findposts = $findthreads = '';
if($mybb->usergroup['cansearch'] == 1)
{

	$findposts = $findthreads = '';
if($mybb->usergroup['cansearch'] == 1)
{

		eval("\$findposts = \"".$templates->get("member_profile_findposts")."\";");
eval("\$findthreads = \"".$templates->get("member_profile_findthreads")."\";");







		if(!empty($memprofile['postnum']))
{
eval("\$findposts = \"".$templates->get("member_profile_findposts")."\";");
}
if(!empty($memprofile['threadnum']))
{
eval("\$findthreads = \"".$templates->get("member_profile_findthreads")."\";");
}

	}

$awaybit = '';

	}

$awaybit = '';