"; //print_r($_SESSION); //echo "
".$_SESSION['captchaaufgabe']."
"; //NEUER COOKIE date_default_timezone_set("Europe/Berlin"); if (isset($_COOKIE["EntryCookie"])) { unset($_COOKIE['EntryCookie']); $timestamp_entry = time(); setcookie("EntryCookie", $timestamp_entry); } $timestamp_send = time(); $diff=$_COOKIE["EntryCookie"]-$timestamp_send; //echo gmdate("Y-m-d H:i:s", $_COOKIE["EntryCookie"])."
"; //echo gmdate("Y-m-d H:i:s", $timestamp_send); if ($diff<=-15 && $captcha='correct') { if (! isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['REMOTE_ADDR']; } else { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } include 'inc/func/functions.php'; $to = 'info@refit-physio.de '; // Put in your email address here //$to = 'addi@mailify.de'; // Put in your email address here $subject = "Neue Terminanfrage"; // The default subject. Will appear by default in all messages. Change this if you want. // User info (DO NOT EDIT!) $fname = stripslashes($_REQUEST['fname']); // sender's name $lname = stripslashes($_REQUEST['lname']); // sender's name $appointmentemail = stripslashes($_REQUEST['appointmentemail']); $phone = stripslashes($_REQUEST['phone']); $preferredday = stripslashes($_REQUEST['preferredday']); $timeday = stripslashes($_REQUEST['timeday']); $message = stripslashes($_REQUEST['message']); $ip = stripslashes($_REQUEST['ip']); $serviceour = stripslashes($_REQUEST['serviceour']); $absender = 'termin@refit-physio.de'; // The message you will receive in your mailbox // Each parts are commented to help you understand what it does exaclty. // YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION! $header = "From: ".$absender."\r\n"."Content-type: text/plain; charset=utf-8"."\r\n"; $msg .= "Vorname: ".$fname."\r\n\n"; // add sender's name to the message $msg .= "Nachname: ".$lname."\r\n\n"; // add sender's name to the message $msg .= "E-mail: ".$appointmentemail."\r\n\n"; // add sender's email to the message $msg .= "Tel: ".$phone."\r\n\n"; // add sender's phone to the message $msg .= "Datum: ".$preferredday."\r\n\n"; // add sender's job to the message $msg .= "Uhrzeit: ".$timeday."\r\n\n"; // add sender's salary expectation to the message $msg .= "Leistung: ".$serviceour."\r\n\n"; // add subject to the message (optional! It will be displayed in the header anyway) $msg .= "Nachricht: ".$message."\r\n\n"; // add sender's email to the message $msg .= "Subject: ".$subject."\r\n\n"; // add subject to the message (optional! It will be displayed in the header anyway) $msg .= "captcha: ".$_SESSION['captchaaufgabe']."=".$_SESSION['captchaergebnis']."\r\n\n"; // captcha $msg .= "IP: ".$ip."\r\n\n"; // add subject to the message (optional! It will be displayed in the header anyway) $msg .= "\r\n\n"; $mail = @mail($to, $subject, $msg, $header); // This command sends the e-mail to the e-mail address contained in the $to variable //if($mail) { // header("location:/termin-machen?m=danke"); //This is the message that will be shown when the message is successfully send //} else { // echo 'Die Nachricht konnte nicht gesendet werden.'; //This is the message that will be shown when an error occured: the message was not send //} } else { $timing=''; //echo "zu schnell"; } $zahl1=rand(0,33); $zahl2=rand(0,33); $captchaaufgabe = $zahl1."+".$zahl2; $captchaergebnis = $zahl1+$zahl2; $_SESSION['captchaergebnis']=$captchaergebnis; $_SESSION['captchaaufgabe']=$captchaaufgabe; } else { $captcha='wrong'; $zahl1=rand(0,33); $zahl2=rand(0,33); $captchaaufgabe = $zahl1."+".$zahl2; $captchaergebnis = $zahl1+$zahl2; $_SESSION['captchaergebnis']=$captchaergebnis; $_SESSION['captchaaufgabe']=$captchaaufgabe; //echo $captcha."
"; //print_r($_SESSION); //echo "
".$_SESSION['captchaaufgabe']."
"; } } include 'inc/header.html'; ?>
Vielen Dank für Ihre Anfrage. Wir melden uns umgehend bei Ihnen.

Ihr ReFit Team '; } else { ?>

Kontakt

Kontakt
appears == "yes" || $xml2->appears == "Y" || $xml3->appears == "true") { ?>

Vielen Dank für Ihre Nachricht

Wir melden uns schnellst möglich bei Ihnen

Ihr ReFit Team

'; } else { if (isset($_POST['submit']) && !$mail && $captcha='wrong') { echo '

Sie haben das Captcha nicht korrekt gelöst. Bitte versuchen Sie es erneut.

'; } if (isset($timing)) { echo '

Sie waren zu schnell.

'; } ?>
*Pflichtfeld