Vergleich inc/class_stopforumspamchecker.php - 1.8.13 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 18Zeile 18
	 *
* @var string
*/

	 *
* @var string
*/

	const STOP_FORUM_SPAM_API_URL_FORMAT = 'http://www.stopforumspam.com/api?username=%s&email=%s&ip=%s&f=json&confidence';

	const STOP_FORUM_SPAM_API_URL_FORMAT = 'https://api.stopforumspam.org/api?username=%s&email=%s&ip=%s&f=json&confidence';

	/**
* @var pluginSystem
*/

	/**
* @var pluginSystem
*/

Zeile 85Zeile 85
	public function is_user_a_spammer($username = '', $email = '', $ip_address = '')
{
$is_spammer = false;

	public function is_user_a_spammer($username = '', $email = '', $ip_address = '')
{
$is_spammer = false;

		$confidence = 0;

		$checknum = $confidence = 0;


if(!filter_var($email, FILTER_VALIDATE_EMAIL))
{


if(!filter_var($email, FILTER_VALIDATE_EMAIL))
{

Zeile 123Zeile 123
			{
if($this->check_usernames && $result_json->username->appears)
{

			{
if($this->check_usernames && $result_json->username->appears)
{

 
					$checknum++;

					$confidence += $result_json->username->confidence;
}

if($this->check_emails && $result_json->email->appears)
{

					$confidence += $result_json->username->confidence;
}

if($this->check_emails && $result_json->email->appears)
{

 
					$checknum++;

					$confidence += $result_json->email->confidence;
}

if($this->check_ips && $result_json->ip->appears)
{

					$confidence += $result_json->email->confidence;
}

if($this->check_ips && $result_json->ip->appears)
{

 
					$checknum++;

					$confidence += $result_json->ip->confidence;

					$confidence += $result_json->ip->confidence;

 
				}

if($checknum > 0 && $confidence)
{
$confidence = $confidence / $checknum;

				}

if($confidence > $this->min_weighting_before_spam)

				}

if($confidence > $this->min_weighting_before_spam)

Zeile 199Zeile 207
				continue;
}


				continue;
}


			if($setting = 'stopforumspam_check_ips' && $mybb->settings[$setting])

			if($setting == 'stopforumspam_check_ips' && $mybb->settings[$setting])

			{
$settingsenabled[] = $lang->sfs_error_ip;
continue;

			{
$settingsenabled[] = $lang->sfs_error_ip;
continue;