Vergleich inc/datahandlers/user.php - 1.8.22 - 1.8.23

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 691Zeile 691
			$options['dst'] = 0;
}


			$options['dst'] = 0;
}


		if($this->method == "insert" || (isset($options['threadmode']) && $options['threadmode'] != "linear" && $options['threadmode'] != "threaded"))

		if($this->method == "insert" || (isset($options['threadmode']) && $options['threadmode'] != "linear" && $options['threadmode'] != "threaded" && $options['threadmode'] != ''))

		{

		{

			if($mybb->settings['threadusenetstyle'])
{
$options['threadmode'] = 'threaded';
}
else
{
$options['threadmode'] = 'linear';
}

			$options['threadmode'] = '';








		}

// Verify the "threads per page" option.

		}

// Verify the "threads per page" option.

Zeile 729Zeile 722
			if(!isset($options['ppp']))
{
$options['ppp'] = 0;

			if(!isset($options['ppp']))
{
$options['ppp'] = 0;

			}

			}

			$explodedppp = explode(",", $mybb->settings['userpppoptions']);
if(is_array($explodedppp))

			$explodedppp = explode(",", $mybb->settings['userpppoptions']);
if(is_array($explodedppp))

			{

			{

				@asort($explodedppp);
$biggest = $explodedppp[count($explodedppp)-1];
// Is the selected option greater than the allowed options?

				@asort($explodedppp);
$biggest = $explodedppp[count($explodedppp)-1];
// Is the selected option greater than the allowed options?

Zeile 742Zeile 735
				}
}
$options['ppp'] = (int)$options['ppp'];

				}
}
$options['ppp'] = (int)$options['ppp'];

		}

		}

		// Is our selected "days prune" option valid or not?
if($this->method == "insert" || array_key_exists('daysprune', $options))
{
if(!isset($options['daysprune']))

		// Is our selected "days prune" option valid or not?
if($this->method == "insert" || array_key_exists('daysprune', $options))
{
if(!isset($options['daysprune']))

			{
$options['daysprune'] = 0;
}

			{
$options['daysprune'] = 0;
}

			$options['daysprune'] = (int)$options['daysprune'];
if($options['daysprune'] < 0)
{

			$options['daysprune'] = (int)$options['daysprune'];
if($options['daysprune'] < 0)
{

Zeile 757Zeile 750
			}
}
$this->data['options'] = $options;

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

	}


	}


	/**
* Verifies if a registration date is valid or not.
*

	/**
* Verifies if a registration date is valid or not.
*

Zeile 810Zeile 803
		if($lastactive <= 0)
{
$lastactive = TIME_NOW;

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

		}
return true;

}

/**

		}
return true;

}

/**

	 * Verifies if an away mode status is valid or not.
*
* @return boolean True when valid, false when invalid.

	 * Verifies if an away mode status is valid or not.
*
* @return boolean True when valid, false when invalid.

Zeile 872Zeile 865
		if($language != '' && !$lang->language_exists($language))
{
$this->set_error("invalid_language");

		if($language != '' && !$lang->language_exists($language))
{
$this->set_error("invalid_language");

			return false;
}
return true;
}

			return false;
}
return true;
}


/**
* Verifies if a style is valid for this user or not.


/**
* Verifies if a style is valid for this user or not.

Zeile 887Zeile 880
		global $lang;

$user = &$this->data;

		global $lang;

$user = &$this->data;





		if($user['style'])
{
$theme = get_theme($user['style']);

		if($user['style'])
{
$theme = get_theme($user['style']);

Zeile 897Zeile 890
				$this->set_error('invalid_style');
return false;
}

				$this->set_error('invalid_style');
return false;
}

		}

return true;
}


		}

return true;
}


	/**
* Verifies if this is coming from a spam bot or not
*
* @return boolean True when valid, false when invalid.
*/
function verify_checkfields()

	/**
* Verifies if this is coming from a spam bot or not
*
* @return boolean True when valid, false when invalid.
*/
function verify_checkfields()

	{

	{

		$user = &$this->data;

// An invalid language has been specified?

		$user = &$this->data;

// An invalid language has been specified?

Zeile 928Zeile 921
	 */
function verify_timezone()
{

	 */
function verify_timezone()
{

 
		global $mybb;


		$user = &$this->data;

$timezones = get_supported_timezones();

		$user = &$this->data;

$timezones = get_supported_timezones();

Zeile 1171Zeile 1166
			"referrals" => 0,
"buddylist" => '',
"ignorelist" => '',

			"referrals" => 0,
"buddylist" => '',
"ignorelist" => '',

			"pmfolders" => '',

			"pmfolders" => "0**$%%$1**$%%$2**$%%$3**$%%$4**",

			"notepad" => '',
"warningpoints" => 0,
"moderateposts" => 0,

			"notepad" => '',
"warningpoints" => 0,
"moderateposts" => 0,

Zeile 1591Zeile 1586
		$plugins->run_hooks("datahandler_user_delete_end", $this);

// Update cache

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

// Update cache

		$cache->update_banned();

 
		$cache->update_moderators();
$cache->update_forumsdisplay();
$cache->update_reportedcontent();

		$cache->update_moderators();
$cache->update_forumsdisplay();
$cache->update_reportedcontent();

Zeile 1801Zeile 1795

$parser_options = array(
'allow_html' => $mybb->settings['sightml'],


$parser_options = array(
'allow_html' => $mybb->settings['sightml'],

			'filter_badwords' => 1,

 
			'allow_mycode' => $mybb->settings['sigmycode'],
'allow_smilies' => $mybb->settings['sigsmilies'],
'allow_imgcode' => $mybb->settings['sigimgcode'],

			'allow_mycode' => $mybb->settings['sigmycode'],
'allow_smilies' => $mybb->settings['sigsmilies'],
'allow_imgcode' => $mybb->settings['sigimgcode'],