if($identify != "IamHere") Header("Location: ../index.php"); // to avoid that this page is shown without formating $cat = "contact"; $sendEm = $_POST["sendEm"]; if($sendEm == "go") { $wish = $_POST["wish"]; $address = $_POST["address"]; $company = $_POST["company"]; $fname = $_POST["fname"]; $name = $_POST["name"]; $address1 = $_POST["address1"]; $zip = $_POST["zip"]; $city = $_POST["city"]; $phone = $_POST["phone"]; $email = $_POST["email"]; $StartTime = $_POST["StartTime"]; if($wish == "" || $fname == "" || $name == "" || $address1 == "" || $zip == "" || $city == "" || $phone == "" || $email == "") { $alertNo = "Bitte füllen Sie alle Felder aus."; } else { include ".incs/forms_security.php"; $CheckTime = time(); $summeTime = $CheckTime-$StartTime; if($summeTime > 3) { if( ereg("@", strtoupper($name)) > 0 || ereg("@", strtoupper($address)) > 0 || ereg("@", strtoupper($city)) > 0 || ereg("@", strtoupper($wish)) > 0 ) { exit; } else { $wish = anti_php_dreck($wish); $wish = anti_sql_dreck($wish); $fname = anti_php_dreck($fname); $fname = anti_sql_dreck($fname); $name = anti_php_dreck($name); $name = anti_sql_dreck($name); $address1 = anti_php_dreck($address1); $address1 = anti_sql_dreck($address1); $zip = anti_php_dreck($zip); $zip = anti_sql_dreck($zip); $city = anti_php_dreck($city); $city = anti_sql_dreck($city); $phone = anti_php_dreck($phone); $phone = anti_sql_dreck($phone); $email = anti_php_dreck($email); $email = anti_sql_dreck($email); $company = anti_php_dreck($company); $company = anti_sql_dreck($company); $mailbody1 = "Vielen Dank, dass Sie sich für die unsere Pianobar interessieren.\n\nWir werden uns unverzüglich mit Ihnen in Verbindung setzen.\nIhr hauptSACHE Team"; $mailbody2 = "Pianobar Anfrage\n\nAnfrage:\nWunsch: $wish\n\nIhre persönlichen Daten:\n\nAnrede: $address\nFirma: $company\nVorname: $fname\nName: $name\nStraße: $address1\nPLZ: $zip\nOrt: $city\nTelefon: $phone\nEmail: $email\n\n"; $EmailBody = anti_spam_dreck($EmailBody); if($email) mail("$email","Ihre Pianobar-Anfrage","$mailbody1","From: office@the-piano-bar.com"); //mail("olaf@neptun-solutions.de","Pianobar Anfrage","$mailbody2","From: $email"); mail("malte.haupt@web.de","Pianobar Anfrage","$mailbody2","From: $email"); $alertYa = "Vielen Dank für Ihre Anfrage. Wir werden diese so schnell wie möglich bearbeiten."; } } } } $StartTime = time(); ?>