D-23942 Dassow
* Holmer Berg 11 * Telefon +49 (0)38826 / 86 245 * Telefax +49 (0)38826 / 86 366
K o n t a k t
:
Startseite
Über uns
Werkstatt
Service
Verkauf
Webshop
Kontakt
Sie haben Fragen?. Sie möchten ein unverbindliches Angebot?.
Zögern Sie nicht, nehmen Sie Kontakt mit uns auf.
Firma :
Informationsmaterial anfordern:
Außenborder
Innenborder
Technisches Zubehör
Name :
Branche :
Straße :
PLZ :
_
Ort :
_
Telefon :
Telfax :
eMail :
Ihre Nachricht ...
Vereinbaren Sie mit mir einen Termin für ein Beratungsgespräch!
Bitte rufen Sie mich zurück!
Wie haben Sie uns gefunden
Über Google
Über Yahoo
Printwerbung
Sonstige
// Damit wir uns unseren Code auch merken können starten wir eine Session session_start (); // Die Zufallszahlen: $z1 = mt_rand(0,9); $z2 = mt_rand(0,9); $z3 = mt_rand(0,9); $z4 = mt_rand(0,9); $z5 = mt_rand(0,9); $z6 = mt_rand(0,9); // leeres weißes Bild erzeugen $captcha = imagecreatetruecolor(250,80); $bgFarbe = ImageColorAllocate($captcha, 255, 255, 255); ImageFilledRectangle($captcha, 0, 0, 250, 80, $bgFarbe); //Schriftordner $fonts = "fonts"; // Schriftfarbe $color = imagecolorallocate($captcha,0,0,0); // Schriftgröße $size=40; //Zufallszahlen zur Kontrolle in Session speichern $_SESSION['captchacode']=$z1.$z2.$z3.$z4.$z5.$z6; // Zahlen auf das Bild zeichnen, Position etwas variieren, zufällig eine Schriftart auswählen (1.ttf-6.ttf) imagettftext($captcha, $size, 0, 5, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z1); imagettftext($captcha, $size, 0, 40, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z2); imagettftext($captcha, $size, 0, 75, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z3); imagettftext($captcha, $size, 0, 110, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z4); imagettftext($captcha, $size, 0, 155, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z5); imagettftext($captcha, $size, 0, 210, 60+mt_rand(0,10), $color, $fonts.'/'.rand(1,6).'.ttf',$z6); // Header für JPEG-Bild ausgeben header("Content-type: image/gif"); // Bild ausgeben imagegif($captcha); // Speicher vom Bild wieder freigeben, besser ist das ;-) imagedestroy($captcha); ?>
© Copyright 2009 Marinepower-OMS.com
Alle Rechte vorbehalten -
Impressum