if ($cfg["autoform"]["location"][$environment["ebene"]]["captcha"]) { if ($_POST["captcha_proof"] != crc32($_POST["captcha"] . $cfg["autoform"]["captcha"]["randomize"]) || !file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { $ausgaben["form_error"] .= "#(error_captcha)"; $dataloop["form_error"]["captcha"]["text"] = "#(error_captcha)"; $hidedata["captcha"]["class"] = "form_error"; } if (file_exists($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png")) { unlink($captcha_path_srv . "captcha-" . $_POST["captcha_proof"] . ".png"); } } // hier erfolgt der mail-versand bzw db-eintrag if ($ausgaben["form_error"] == "") { if ($mail_order == -1) { if ($confirm == -1) { $cfg["autoform"]["captcha"]["letter_pot"] ? $put = $cfg["autoform"]["captcha"] : ($put["letter_pot"] = "abcde"); $hazard = crc32(captcha_randomize("43", $put)); $bestaetigungslink = "http://" . $_SERVER["HTTP_HOST"] . $environment["ebene"] . ".html?eintragen=" . $hazard; $message = parser($cfg["autoform"]["location"][$environment["ebene"]]["email"]["confirm_template"], ""); mail($_POST[$cfg["autoform"]["location"][$environment["ebene"]]["email"]["form_email_feld"]], "Confirm", $message); } else { foreach ($_POST as $key => $value) { ${$key} = $value; } $message1 = parser($cfg["autoform"]["location"][$environment["ebene"]]["email"]["template1"], ""); $message2 = parser($cfg["autoform"]["location"][$environment["ebene"]]["email"]["template2"], ""); mail_order($_POST, $cfg["autoform"]["location"][$environment["ebene"]]["email"]); } } if ($db_entry == -1) { $kick = array("PHPSESSID", "form_referer", "send", "last_viewed", "captcha", "captcha_proof"); foreach ($_POST as $name => $value) {
#if ( count($HTTP_POST_VARS) == 0 ) { #} else { $form_values = $HTTP_POST_VARS; #} // form options holen $form_options = form_options(eCRC($environment["ebene"]) . "." . $environment["kategorie"]); // form elememte bauen $element = form_elements($cfg["kontakt"]["db"]["entries"], $form_values); $hidedata["form"] = array(); // +++ // page basics // funktions bereich fuer erweiterungen // *** if (is_array($cfg["kontakt"]["captcha"])) { // zufaellige zeichen erzeugen $captcha_text = captcha_randomize($cfg["kontakt"]["captcha"]["length"], $cfg["kontakt"]["captcha"]); // bild erzeugen captcha_create($captcha_text, $cfg["kontakt"]["captcha"]); // captcha-info erzeugen $captcha_crc = crc32($captcha_text . $cfg["kontakt"]["captcha"]["randomize"]); $captcha_name = "captcha-" . $captcha_crc . ".png"; $captcha_path_web = $cfg["file"]["base"]["webdir"] . $cfg["file"]["base"]["new"]; $captcha_path_srv = $cfg["file"]["base"]["maindir"] . $cfg["file"]["base"]["new"]; // ausgeben $hidedata["captcha"]["url"] = $captcha_path_web . $captcha_name; $hidedata["captcha"]["proof"] = $captcha_crc; // alte, unnuetze bilder entfernen foreach (glob($captcha_path_srv . "captcha-*.png") as $captcha_file) { if (mktime() - filemtime($captcha_file) > 600) { unlink($captcha_file); }
if (count($HTTP_POST_VARS) == 0) { } else { $form_values = $HTTP_POST_VARS; } // form options holen $form_options = form_options(eCRC($environment["ebene"]) . "." . $environment["kategorie"]); // form elememte bauen $element = form_elements($cfg["register"]["db"][$environment["kategorie"]]["entries"], $form_values); $hidedata["form"] = array(); // +++ // page basics // funktions bereich // *** if (is_array($cfg["register"]["captcha"])) { // zufaellige zeichen erzeugen $captcha_text = captcha_randomize($cfg["register"]["captcha"]["length"], $cfg["register"]["captcha"]); // bild erzeugen captcha_create($captcha_text, $cfg["register"]["captcha"]); // captcha-info erzeugen $captcha_crc = crc32($captcha_text . $cfg["register"]["captcha"]["randomize"]); $captcha_name = "captcha-" . $captcha_crc . ".png"; $captcha_path_web = $cfg["file"]["base"]["webdir"] . $cfg["file"]["base"]["new"]; $captcha_path_srv = $cfg["file"]["base"]["maindir"] . $cfg["file"]["base"]["new"]; // ausgeben $hidedata["captcha"]["url"] = $captcha_path_web . $captcha_name; $hidedata["captcha"]["proof"] = $captcha_crc; // alte, unnuetze bilder entfernen foreach (glob($captcha_path_srv . "captcha-*.png") as $captcha_file) { if (mktime() - filemtime($captcha_file) > 600) { unlink($captcha_file); }