Vergleich inc/class_stopforumspamchecker.php - 1.8.14 - 1.8.20

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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)