Vergleich inc/datahandlers/user.php - 1.6.11 - 1.6.16

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 90Zeile 90
		}

// Check for certain characters in username (<, >, &, commas and slashes)

		}

// Check for certain characters in username (<, >, &, commas and slashes)

		if(strpos($username, "<") !== false || strpos($username, ">") !== false || strpos($username, "&") !== false || my_strpos($username, "\\") !== false || strpos($username, ";") !== false || strpos($username, ",") !== false || utf8_handle_4byte_string($username, false) == false)

		if(strpos($username, "<") !== false || strpos($username, ">") !== false || strpos($username, "&") !== false || my_strpos($username, "\\") !== false || strpos($username, ";") !== false || strpos($username, ",") !== false || !validate_utf8_string($username, false, false))

		{
$this->set_error("bad_characters_username");
return false;

		{
$this->set_error("bad_characters_username");
return false;

Zeile 116Zeile 116
		global $mybb;

$usertitle = &$this->data['usertitle'];

		global $mybb;

$usertitle = &$this->data['usertitle'];

		$usertitle = utf8_handle_4byte_string($usertitle);

 

// Check if the usertitle is of the correct length.
if($mybb->settings['customtitlemaxlength'] != 0 && my_strlen($usertitle) > $mybb->settings['customtitlemaxlength'])


// Check if the usertitle is of the correct length.
if($mybb->settings['customtitlemaxlength'] != 0 && my_strlen($usertitle) > $mybb->settings['customtitlemaxlength'])

Zeile 283Zeile 282
	{
$website = &$this->data['website'];


	{
$website = &$this->data['website'];


		if(empty($website) || my_strtolower($website) == 'http://' || my_strtolower($website) == 'https://' || utf8_handle_4byte_string($website, false) == false)

		if(empty($website) || my_strtolower($website) == 'http://' || my_strtolower($website) == 'https://')

		{
$website = '';
return true;

		{
$website = '';
return true;

Zeile 396Zeile 395
			$this->set_error("invalid_birthday_coppa");
return false;
}

			$this->set_error("invalid_birthday_coppa");
return false;
}

		elseif($mybb->settings['coppa'] == "deny" && $birthday['year'] > (date("Y")-13))

		elseif(($mybb->settings['coppa'] == "deny" && $birthday['year'] > (date("Y")-13)) && !is_moderator())

		{
$this->set_error("invalid_birthday_coppa2");
return false;

		{
$this->set_error("invalid_birthday_coppa2");
return false;

Zeile 486Zeile 485
		$options = array(
'order_by' => 'disporder'
);

		$options = array(
'order_by' => 'disporder'
);

		$query = $db->simple_select('profilefields', 'name, type, fid, required, maxlength', $editable, $options);

		$query = $db->simple_select('profilefields', 'name, postnum, type, fid, required, maxlength', $editable, $options);


// Then loop through the profile fields.
while($profilefield = $db->fetch_array($query))
{


// Then loop through the profile fields.
while($profilefield = $db->fetch_array($query))
{

 
			// Does this field have a minimum post count?
if(!$this->data['profile_fields_editable'] && !empty($profilefield['postnum']) && $profilefield['postnum'] > $user['postnum'])
{
continue;
}


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

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

Zeile 544Zeile 549
				{
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));
}

				{
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));
}


$profile_fields[$field] = utf8_handle_4byte_string($profile_fields[$field]);

 

$options = $db->escape_string($profile_fields[$field]);
}
else
{


$options = $db->escape_string($profile_fields[$field]);
}
else
{

				$profile_fields[$field] = utf8_handle_4byte_string($profile_fields[$field]);

 
				if($profilefield['maxlength'] > 0 && my_strlen($profile_fields[$field]) > $profilefield['maxlength'])
{
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));

				if($profilefield['maxlength'] > 0 && my_strlen($profile_fields[$field]) > $profilefield['maxlength'])
{
$this->set_error('max_limit_reached', array($profilefield['name'], $profilefield['maxlength']));

Zeile 606Zeile 608
		// Verify yes/no options.
$this->verify_yesno_option($options, 'allownotices', 1);
$this->verify_yesno_option($options, 'hideemail', 0);

		// Verify yes/no options.
$this->verify_yesno_option($options, 'allownotices', 1);
$this->verify_yesno_option($options, 'hideemail', 0);

		$this->verify_yesno_option($options, 'emailpmnotify', 0);

 
		$this->verify_yesno_option($options, 'receivepms', 1);
$this->verify_yesno_option($options, 'receivefrombuddy', 0);
$this->verify_yesno_option($options, 'pmnotice', 1);

		$this->verify_yesno_option($options, 'receivepms', 1);
$this->verify_yesno_option($options, 'receivefrombuddy', 0);
$this->verify_yesno_option($options, 'pmnotice', 1);

Zeile 1021Zeile 1022
			"receivepms" => $user['options']['receivepms'],
"receivefrombuddy" => $user['options']['receivefrombuddy'],
"pmnotice" => $user['options']['pmnotice'],

			"receivepms" => $user['options']['receivepms'],
"receivefrombuddy" => $user['options']['receivefrombuddy'],
"pmnotice" => $user['options']['pmnotice'],

			"pmnotify" => $user['options']['emailpmnotify'],

			"pmnotify" => $user['options']['pmnotify'],

			"showsigs" => $user['options']['showsigs'],
"showavatars" => $user['options']['showavatars'],
"showquickreply" => $user['options']['showquickreply'],

			"showsigs" => $user['options']['showsigs'],
"showavatars" => $user['options']['showavatars'],
"showquickreply" => $user['options']['showquickreply'],