$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);
|
{ $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}'");
|
| }
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
|