= $attempts-1) $a_errors[] = "Zu viele Versuche"; // "Es sind nur ".$attempts." Versuche erlaubt.";
//falscher Code oder Timeout => neues CAPTCHA generieren
if (count($a_errors) > 0) {
// foreach ($a_errors as $value)
// echo "-".$value."
";
@unlink($post_image_name); // lösche Bild
$_SESSION["captcha_key"] = mk_string(15); // neuer Key
$_SESSION["captcha_time"] = time(); // neue Zeit
$_SESSION["captcha_trys"]++;
$captcha_string = mk_string($rnd_chars);
$image_name = mk_captcha($captcha_string);
$enc_text = md5_encrypt($captcha_string, $_SESSION["captcha_key"]);
?>
|