\nContent-Type: text/html; charset=\"windows-1252\""; session_start (); if (strip_tags($_GET['a']) == 'captcha_image') { $im = @imagecreate (80, 20) or die ("Cannot initialize new GD image stream!"); $bg = imagecolorallocate ($im, 232, 238, 247); $char = $_SESSION['captcha_code']; //создаём шум на фоне for ($i=0; $i<=128; $i++) { $color = imagecolorallocate ($im, rand(0,255), rand(0,255), rand(0,255)); //задаём цвет imagesetpixel($im, rand(2,80), rand(2,20), $color); //рисуем пиксель } //выводим символы кода for ($i = 0; $i < strlen($char); $i++) { $color = imagecolorallocate ($im, rand(0,255), rand(0,128), rand(0,255)); //задаём цвет $x = 5 + $i * 20; $y = rand(1, 6); imagechar ($im, 5, $x, $y, $char[$i], $color); } /*/упрощённый вариант $color = imagecolorallocate($img, 0, 0, 0); imagestring($im, 3, 5, 3, $char, $color);*/ //антикеширование header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); //создание рисунка в зависимости от доступного формата if (function_exists("imagepng")) { header("Content-type: image/png"); imagepng($im); } elseif (function_exists("imagegif")) { header("Content-type: image/gif"); imagegif($im); } elseif (function_exists("imagejpeg")) { header("Content-type: image/jpeg"); imagejpeg($im); } else { die("No image support in this PHP server!"); } imagedestroy ($im); } else { if ($_POST['Submit'] == "Submit") { $fname = strip_tags($_POST['fname']); $lname = strip_tags($_POST['lname']); $country = strip_tags($_POST['country']); $city = strip_tags($_POST['city']); $adresse1 = strip_tags($_POST['adresse1']); $adresse2 = strip_tags($_POST['adresse2']); $code = strip_tags($_POST['code']); $phone = strip_tags($_POST['phone']); $phonem = strip_tags($_POST['phonem']); $fax = strip_tags($_POST['fax']); $e_mail = strip_tags($_POST['e_mail']); $giber = strip_tags($_POST['giber']); $comment = strip_tags($_POST['comment']); $dates = strip_tags($_POST['dates']); $captcha = strip_tags($_POST['captcha']); if ($fname=="" or $fname==" ") {$error.="\n
First name"; $er1[0]=""; $er1[1]="";} if ($lname=="" or $lname==" ") {$error.="\n
Last name"; $er2[0]=""; $er2[1]="";} if ($country=="" or $country==" ") {$error.="\n
Country"; $er3[0]=""; $er3[1]="";} if ($city=="" or $city==" ") {$error.="\n
City"; $er4[0]=""; $er4[1]="";} if ($adresse1=="" or $adresse1==" ") {$error.="\n
Address 1"; $er5[0]=""; $er5[1]="";} if ($code=="" or $code==" ") {$error.="\n
Postal code"; $er6[0]=""; $er6[1]="";} if ($phone=="" or $phone==" ") {$error.="\n
Phone"; $er7[0]=""; $er7[1]="";} if ($e_mail=="" or $e_mail==" ") {$error.="\n
E-mail"; $er9[0]=""; $er9[1]="";} //if ($giber=="" or $giber==" ") {$error.="\n
Preferable type of hunt"; $er10[0]=""; $er10[1]="";} if ($comment=="" or $comment==" ") {$error.="\n
Comments"; $er11[0]=""; $er11[1]="";} //Проверка правильности введения CAPTCHA кода if (empty($captcha) or empty($_SESSION['captcha_code'])) { $error.="\n
Code d'image"; $er12[0]=""; $er12[1]=""; } elseif ($captcha != $_SESSION['captcha_code']) { $error.="\n
Code faux d'image"; $er12[0]=""; $er12[1]=""; } if(!$error) { $body ="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="
\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="
\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="\n"; $body.="
Votre nom:$fname
Votre prenoms:$lname
Votre pays:$country
Votre ville:$city
Votre adresse 1:$adresse1
Votre adresse 2:$adresse2
Votre code postal:$code
Telephone:$phone
Telephone mobile:$phonem
Fax:$fax
E-mail:$e_mail
Chasse:$giber
Dates souhates:$dates
Comment:$comment
\n"; $body.="
\n"; $body.="
\n"; $body.="\n"; $body.=""; if (mail($notify_email,$subject,$body,$from)) $success=1; } } $_SESSION['captcha_code'] = substr(md5(uniqid("")),0,4); ?> Rancho Hunting - Contact
 
 Editorial
 Unsere 2 Riviere
 Jagdbare Wildarten
 Angebote
 Klima
 

Formalitaeten

 Buchung
 Anfrage der Information
 Photo Gallery
   
 Sprache:
 

Runcho Hunting

 

 

 

Anfrage der Information Bitte füllen Sie obligatorische Felder:
 
\n"; ?>

Name >
Vorname >
Staat >
Stadt >
Adresse 1 >
Adresse 2 >
Postkode >
Telefon >
Mobil >
Fax >
e-mail >
Jagd
Aufenthaltsdaten >
Ihre Anmerkungen:
Code vom Bild CAPTCHA

Danke für Ihre Anmerkungen. Wir reagieren auf Ihre Mitteilung so bald wie möglich.

 

 

 

 

Editorial | Unsere 2 Reviere | Jagdbare Wildarten | Klima | Angebote | Formalitaeten
Buchung | Anfrage der Information | Photo Galerie