Vergleich inc/class_captcha.php - 1.6.10 - 1.6.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 212Zeile 212
			$query = $db->simple_select("captcha", "*", "imagehash = '{$imagehash}' AND LOWER(imagestring) = '{$imagestring}'");
$imgcheck = $db->fetch_array($query);


			$query = $db->simple_select("captcha", "*", "imagehash = '{$imagehash}' AND LOWER(imagestring) = '{$imagestring}'");
$imgcheck = $db->fetch_array($query);


			if(!$imgcheck['dateline'])

			if(!$imgcheck)

			{
$this->set_error($lang->invalid_captcha_verify);
$db->delete_query("captcha", "imagehash = '{$imagehash}'");

			{
$this->set_error($lang->invalid_captcha_verify);
$db->delete_query("captcha", "imagehash = '{$imagehash}'");

Zeile 286Zeile 286
		{
return true;
}

		{
return true;
}

 
	}

function invalidate_captcha()
{
global $db, $mybb;

if($this->type == 1)
{
// We have a normal CAPTCHA to handle
$imagehash = $db->escape_string($mybb->input['imagehash']);
if($imagehash)
{
$db->delete_query("captcha", "imagehash = '{$imagehash}'");
}
}
// Not necessary for reCAPTCHA

// Plugin hook

	}

/**

	}

/**