benutze eine selbst erstellte Anmeldung die leider im Moment zugemüllt wird.
Ich würde dort gerne die Antispam-Funktion nutzen, bekomme sie nur nicht eingebunden.
Kann mir wer da helfen?
Vielen Danke vorab!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | <?php # Anmeldeformular # Support: www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Anmeldung' ; $hmenu = 'Anmeldung' ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'anmeldung.htm' ); # Allgemein $dlist = array (0 => 'Sonntag' , 1 => 'Montag' , 2 => 'Dienstag' , 3 => 'Mittwoch' , 4 => 'Donnerstag' , 5 => 'Freitag' , 6 => 'Samstag' ); $mlist = array (1 => 'Jan' , 2 => 'Feb' , 3 => 'Mär' , 4 => 'Apr' , 5 => 'Mai' , 6 => 'Jun' , 7 => 'Jul' , 8 => 'Aug' , 9 => 'Sep' , 10 => 'Okt' , 11 => 'Nov' , 12 => 'Dez' ); $ak_tag = date ( 'w' ); // Numerischer Tag einer Woche $ak_dat = date ( 'j' ); // Tag des Monats ohne führende Nullen $ak_mon = date ( 'n' ); // Monatszahl, ohne führende Nullen $ak_jahr = date ( 'Y' ); // Vierstellige Jahreszahl $ak_time = date ( 'H:i' ); // Stunde im 24-Stunden-Format, mit führenden Nullen : Minuten, mit führenden Nullen $empfaenger = 'geheim@geheim.de' ; // Adminmail als Empfänger oder ( $empfaenger = 'email@email.de'; ) $subject_empf = 'Eine neue Anmeldung - mipräp 2015' ; // Der Betreff der Email-Anfrage $subject_send = 'Danke das Sie die Anmeldung ausgefüllt haben' ; // Betreff der Bestätigungsmail # Funktion zur Email Prüfung function email_check( $email ) { if (!preg_match( '/^([a-z0-9]+([-_\.]?[a-z0-9])+)@[a-z0-9äöü]+([-_\.]?[a-z0-9äöü])+\.[a-z]{2,4}$/i' , $email )) return false; if (!function_exists( 'checkdnsrr' )) { function checkdnsrr ( $host , $type ) { @ exec ( 'nslookup -type=' . $type . ' ' . $host , $output ); foreach ( $output as $line ) if (preg_match( '/^' . $host . '/i' , $line )) return true; return false; } } $host = substr ( strrchr ( $email , '@' ), 1); if ( checkdnsrr ( $host , 'MX' ) or checkdnsrr ( $host , 'A' )) { return true; } else { return false; } } # Daten wurden eingegeben if (! empty ( $_POST [ 'sub' ])) { $name = escape( $_POST [ 'name' ], 'string' ); $vorname = escape( $_POST [ 'vorname' ], 'string' ); $abteilung = escape( $_POST [ 'abteilung' ], 'string' ); $firma = escape( $_POST [ 'firma' ], 'string' ); $email = escape( $_POST [ 'email' ], 'string' ); $nachricht = escape( $_POST [ 'nachricht' ], 'textarea' ); $fehler_name = ( empty ( $name ) ? '<br /><span class="fehler">Bitte geben Sie ihren Namen an!</span>' : '' ); $fehler_vorname = ( empty ( $vorname ) ? '<br /><span class="fehler">Bitte geben Sie ihren Vornamen an!</span>' : '' ); $fehler_email = ( empty ( $email ) ? '<br /><span class="fehler">Bitte geben Sie ihre E-Mail Adresse an!</span>' : '' ); $fehler_abteilung = ( empty ( $abteilung ) ? '<br /><span class="fehler">Bitte geben Sie den Namen ihrer Abteilung an!</span>' : '' ); $fehler_firma = ( empty ( $firma ) ? '<br /><span class="fehler">Bitte geben Sie den Namen ihrer Firma an!</span>' : '' ); if ( empty ( $fehler_email ) AND email_check( $email ) == false) { $fehler_email = '<br /><span class="fehler">Bitte geben Sie eine gültige E-Mail Adresse an!</span>' ; } $fehler_nachricht = ( empty ( $nachricht ) ? '<br /><span class="fehler">Bitte geben Sie eine Nachricht ein!</span>' : '' ); # Ausgabe mit Fehlern if ( ! empty ( $fehler_name ) OR ! empty ( $fehler_vorname ) OR ! empty ( $fehler_email ) OR ! empty ( $fehler_abteilung ) OR ! empty ( $fehler_firma ) OR ! empty ( $fehler_nachricht ) OR strpos ( $nachricht , 'Content-Type:' ) === TRUE OR strpos ( $nachricht , 'MIME-Version:' ) === TRUE) { $tpl ->set( 'fehler_name' , $fehler_name ); $tpl ->set( 'fehler_vorname' , $fehler_vorname ); $tpl ->set( 'fehler_email' , $fehler_email ); $tpl ->set( 'fehler_abteilung' , $fehler_abteilung ); $tpl ->set( 'fehler_firma' , $fehler_firma ); $tpl ->set( 'fehler_nachricht' , $fehler_nachricht ); $tpl ->set( 'name' , $name ); $tpl ->set( 'vorname' , $vorname ); $tpl ->set( 'firma' , $firma ); $tpl ->set( 'abteilung' , $abteilung ); $tpl ->set( 'email' , $email ); $tpl ->set( 'nachricht' , $nachricht ); $tpl ->out(0); # Emailversand da alles OK } else { # Nachricht an dem Empfänger $text_empf = 'Nachricht gesendet am ' . $dlist [ $ak_tag ] . ', den ' . $ak_dat . '. ' . $mlist [ $ak_mon ] . ' ' . $ak_jahr . ' um ' . $ak_time . ' Uhr:' . "\n" ; $text_empf .= '----------------------------------------------------------------' . "\n" ; $text_empf .= 'Vorname : ' . $vorname . "\n" ; $text_empf .= 'Name : ' . $name . "\n" ; $text_empf .= 'Abteilung : ' . $abteilung . "\n" ; $text_empf .= 'Email : ' . $email . "\n" ; $text_empf .= 'Firma : ' . $firma . "\n" ; $text_empf .= '----------------------------------------------------------------' . "\n" ; $text_empf .= 'Nachricht : ' . $nachricht . "\n" ; # Nachricht an den Abender als Bestätigung $text_send = 'Am ' . $dlist [ $ak_tag ] . ', den ' . $ak_dat . '. ' . $mlist [ $ak_mon ] . ' ' . $ak_jahr . ' um ' . $ak_time . ' Uhr haben wir folgende Nachricht von Ihnen erhalten:' . "\n" ; $text_send .= '----------------------------------------------------------------' . "\n" ; $text_send .= 'Vorname : ' . $vorname . "\n" ; $text_send .= 'Name : ' . $name . "\n" ; $text_send .= 'Email : ' . $email . "\n" ; $text_send .= 'Firma : ' . $firma . "\n" ; $text_send .= 'Abteilung : ' . $abteilung . "\n" ; $text_send .= '----------------------------------------------------------------' . "\n" ; $text_send .= 'Nachricht : ' . $nachricht . "\n" ; if (icmail ( $empfaenger , $subject_empf , $text_empf , $vorname . ' ' . $name . " <" . $email . ">" ) AND icmail ( $email , $subject_send , $text_send , $vorname . ' ' . $name . " <" . $email . ">" )) { wd( 'index.php' , 'Die Anmeldung wurde erfolgreich per Email versendet.' , 10); $tpl ->out(1); } else { wd( 'index.php' , 'Der Server konnte die Email nicht versenden, teilen sie dies ggf. einem Administrator mit.' , 5); $tpl ->out(1); } } # Leeres Formular anzeigen } else { $tpl ->set( 'fehler_name' , '' ); $tpl ->set( 'fehler_vorname' , '' ); $tpl ->set( 'fehler_email' , '' ); $tpl ->set( 'fehler_firma' , '' ); $tpl ->set( 'fehler_abteilung' , '' ); $tpl ->set( 'fehler_nachricht' , '' ); $tpl ->set( 'name' , '' ); $tpl ->set( 'vorname' , '' ); $tpl ->set( 'adresse' , '' ); $tpl ->set( 'email' , '' ); $tpl ->set( 'firma' , '' ); $tpl ->set( 'abteilung' , '' ); $tpl ->set( 'nachricht' , '' ); $tpl ->out(0); } $design ->footer(); ?> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>Ohne_Titel_1</title> </head> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>Ohne_Titel_1</title> </head> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>Ohne_Titel_1</title> </head> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>Ohne_Titel_1</title> </head> <head> <meta http-equiv= "Content-Type" content= "text/html; charset=utf-8" /> <title>Ohne_Titel_1</title> <style type= "text/css" > .style1 { border-style: solid; border-width: 1px; } .style3 { border-width: 0px; } .style4 { text-align: center; font-size: large; } .style5 { margin-left: 40px; } .style6 { text-decoration: underline; } .style7 { font-family: Symbol; } </style> </head> <h1 class = "style5" style= "width: 198px" > </h1> <h1 class = "style5" style= "width: 198px" > </h1> <h1 class = "style5" style= "width: 198px" > </h1> <h1 class = "style5" style= "width: 198px" ><span class = "style1" > <img src= "http://www.benswebspace.de/bilder/mik.jpg" width= "249" height= "281" class = "style3" /></a></span></h1> <div style= "position: absolute; width: 220px; height: 94px; z-index: 2; left: 45px; top: 838px" id= "Ebene2" class = "style4" > <a href= "http://www.benswebspace.de/bilder/Flyer-2015-AKTUELL.pdf" >Weitere Informationen zur Veranstaltung finden Sie hier: </a><br /> <strong><br /> </strong><span class = "style6" ><strong><span class = "style7" >· </span>Info-Flyer</strong></span></a><br /> <br /> <br /> <span class = "style7" >· </span>Park- und Übernachtungsmöglichkeiten</a></strong></div> <p><br /> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <div style= "position: absolute; width: 360px; height: 828px; z-index: 3; left: 308px; top: 290px" id= "Ebene3" > <img src= "http://www.benswebspace.de/bilder/mik2.jpg" width= "404" height= "819" class = "style3" /></a></div> <p><br /> </p> <p> </p> <p> </p> <p><br /> </p> <p> </p> <p> </p> <p> </p> <hr /> <h1>Anmeldung</h1> <form action= "index.php?anmeldung" method= "POST" name= "form" > <table width= "100%" > <tr> <td>Name:</td> <td><input type= "text" name= "name" value= "{name}" maxlength= "30" style= "width:400px" tabindex= "1" />{fehler_name}</td> </tr> <tr> <td>Vorname:</td> <td><input type= "text" name= "vorname" value= "{vorname}" maxlength= "30" style= "width:400px" tabindex= "2" />{fehler_vorname}</td> </tr> <tr> <td>Abteilung:</td> <td><input type= "text" name= "abteilung" value= "{abteilung}" maxlength= "30" style= "width:400px" tabindex= "3" />{fehler_abteilung}</td> </tr> <tr> <td>Firma:</td> <td><input type= "text" name= "firma" value= "{firma}" maxlength= "30" style= "width:400px" tabindex= "3" />{fehler_firma}</td> </tr> <tr> <td>Email:</td> <td><input type= "text" name= "email" value= "{email}" maxlength= "50" style= "width:400px" tabindex= "4" />{fehler_email}</td> </tr> <tr> <td style= "vertical-align:top" >Nachricht:</td> <td><textarea name= "nachricht" rows= "10" style= "width:400px" >{nachricht}</textarea>{fehler_nachricht}</td> </tr> <tr> <td></td> <td><input type= "submit" name= "sub" value= " Absenden " ></td> </tr> </table> </form> { EXPLODE }<body><body> </body> |
verwendete ilch Version: 1.1 P
betroffene Homepage: externer Link
Zuletzt modifiziert von Oegli am 04.02.2015 - 20:08:56