Vergleich inc/datahandlers/user.php - 1.6.5 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: user.php 5625 2011-10-02 19:16:35Z ralgith $

 * $Id: user.php 5730 2011-12-11 07:23:23Z ralgith $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 527Zeile 527
			}
else
{

			}
else
{

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


				$options = $db->escape_string($profile_fields[$field]);
}
$user['user_fields'][$field] = $options;
}

				$options = $db->escape_string($profile_fields[$field]);
}
$user['user_fields'][$field] = $options;
}





		return true;
}

/**
* Verifies if an optionally entered referrer exists or not.

		return true;
}

/**
* Verifies if an optionally entered referrer exists or not.

	*
* @return boolean True when valid, false when invalid.

	*
* @return boolean True when valid, false when invalid.

	*/
function verify_referrer()
{

	*/
function verify_referrer()
{

Zeile 561Zeile 566

return true;
}


return true;
}





	/**
* Verifies user options.
*

	/**
* Verifies user options.
*

Zeile 572Zeile 577
		global $mybb;

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

		global $mybb;

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





		// 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);

Zeile 594Zeile 599
		else
{
$this->verify_yesno_option($options, 'classicpostbit', 0);

		else
{
$this->verify_yesno_option($options, 'classicpostbit', 0);

		}


		}


		if(array_key_exists('subscriptionmethod', $options))
{
// Value out of range

		if(array_key_exists('subscriptionmethod', $options))
{
// Value out of range

Zeile 617Zeile 622
		}

if($options['dstcorrection'] == 1)

		}

if($options['dstcorrection'] == 1)

		{

		{

			$options['dst'] = 1;
}
else if($options['dstcorrection'] == 0)

			$options['dst'] = 1;
}
else if($options['dstcorrection'] == 0)

Zeile 652Zeile 657

// Verify the "threads per page" option.
if($this->method == "insert" || (array_key_exists('tpp', $options) && $mybb->settings['usertppoptions']))


// Verify the "threads per page" option.
if($this->method == "insert" || (array_key_exists('tpp', $options) && $mybb->settings['usertppoptions']))

		{

		{

			$explodedtpp = explode(",", $mybb->settings['usertppoptions']);
if(is_array($explodedtpp))
{

			$explodedtpp = explode(",", $mybb->settings['usertppoptions']);
if(is_array($explodedtpp))
{

Zeile 662Zeile 667
				if($options['tpp'] > $biggest)
{
$options['tpp'] = $biggest;

				if($options['tpp'] > $biggest)
{
$options['tpp'] = $biggest;

				}
}

				}
}

			$options['tpp'] = intval($options['tpp']);
}
// Verify the "posts per page" option.

			$options['tpp'] = intval($options['tpp']);
}
// Verify the "posts per page" option.

Zeile 708Zeile 713
		if($regdate <= 0)
{
$regdate = TIME_NOW;

		if($regdate <= 0)
{
$regdate = TIME_NOW;

		}

		}

		return true;
}


		return true;
}


Zeile 889Zeile 894
			$this->verify_postnum();
}
if($this->method == "insert" || array_key_exists('profile_fields', $user))

			$this->verify_postnum();
}
if($this->method == "insert" || array_key_exists('profile_fields', $user))

		{

		{

			$this->verify_profile_fields();
}
if($this->method == "insert" || array_key_exists('referrer', $user))

			$this->verify_profile_fields();
}
if($this->method == "insert" || array_key_exists('referrer', $user))

Zeile 925Zeile 930
			$this->verify_checkfields();
}


			$this->verify_checkfields();
}


		$plugins->run_hooks_by_ref("datahandler_user_validate", $this);

		$plugins->run_hooks("datahandler_user_validate", $this);

		
// We are done validating, return.
$this->set_validated(true);

		
// We are done validating, return.
$this->set_validated(true);

Zeile 1036Zeile 1041
			$this->user_insert_data['dst'] = 0;
}


			$this->user_insert_data['dst'] = 0;
}


		$plugins->run_hooks_by_ref("datahandler_user_insert", $this);

		$plugins->run_hooks("datahandler_user_insert", $this);

		
$this->uid = $db->insert_query("users", $this->user_insert_data);


		
$this->uid = $db->insert_query("users", $this->user_insert_data);


Zeile 1240Zeile 1245
			unset($this->user_update_data['pmnotice']);
}


			unset($this->user_update_data['pmnotice']);
}


		$plugins->run_hooks_by_ref("datahandler_user_update", $this);

		$plugins->run_hooks("datahandler_user_update", $this);

		
if(count($this->user_update_data) < 1 && empty($user['user_fields']))
{

		
if(count($this->user_update_data) < 1 && empty($user['user_fields']))
{

Zeile 1254Zeile 1259
		}

$cache->update_moderators();

		}

$cache->update_moderators();

		if(isset($user['bday']))

		if(isset($user['bday']) || isset($user['username']))

		{
$cache->update_birthdays();
}

		{
$cache->update_birthdays();
}