include('kcaptcha/kcaptcha.php'); session_start(); require_once("config.php"); require_once("kcaptcha/util/script.php"); if ($_POST['act']== "y") { if(isset($_SESSION['captcha_keystring']) && $_SESSION['captcha_keystring'] == $_POST['keystring']) { if (isset($_POST['posName']) && $_POST['posName'] == "") { $statusError = "$errors_name"; } elseif (isset($_POST['posTel']) && $_POST['posTel'] == "") { $statusError = "$errors_tel"; } elseif (isset($_POST['posDen']) && $_POST['posDen'] == "") { $statusError = "$errors_den"; } elseif (isset($_POST['posVremy']) && $_POST['posVremy'] == "") { $statusError = "$errors_vremy"; } elseif (!empty($_POST)) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: $content charset=$charset\r\n"; $headers .= "Date: ".date("Y-m-d (H:i:s)",time())."\r\n"; $headers .= "X-Mailer: My Send E-mail\r\n"; mail("$mailto","$subject","$message","$headers"); /* clean variables */ unset($name, $mailto, $subject, $posDen, $posTel, $posVremy, $message); $statusSuccess = "$send"; } }else{ $statusError = "$captcha_error"; unset($_SESSION['captcha_keystring']); } } ?>