$_SERVER['DOCUMENT_ROOT'].'/static/home/soapical/_captchaTmp/', // string: absolute path (with trailing slash!) to a writeable tempfolder which is also accessible via HTTP! 'TTF_folder' => '/www/cfg-hockenheim/weblibs/hn_captcha/_ttf/', // string: absolute path (with trailing slash!) to folder which contains your TrueType-Fontfiles. // mixed (array or string): basename(s) of TrueType-Fontfiles 'TTF_RANGE' => array('COMIC.TTF', 'NRKIS.TTF', 'IS.TTF'), 'chars' => 5, // integer: number of chars to use for ID 'minsize' => 17, // integer: minimal size of chars 'maxsize' => 35, // integer: maximal size of chars 'maxrotation' => 30, // integer: define the maximal angle for char-rotation, good results are between 0 and 30 'noise' => TRUE, // boolean: TRUE = noisy chars | FALSE = grid 'websafecolors' => FALSE, // boolean 'refreshlink' => TRUE, // boolean 'lang' => 'de', // string: ['en'|'de'] 'maxtry' => 3, // integer: [1-9] 'badguys_url' => 'http://www.google.de', // string: URL 'secretstring' => 'dsoopdo738947nd___hjsz&DNHH', 'secretposition' => 26, // integer: [1-32] 'debug' => FALSE, 'counter_filename' => '', // string: absolute filename for textfile which stores current counter-value. Needs read- & write-access! 'prefix' => 'hn_captcha_', // string: prefix for the captcha-images, is needed to identify the files in shared tempfolders 'collect_garbage_after' => 20, // integer: the garbage-collector run once after this number of script-calls 'maxlifetime' => 60 // integer: only imagefiles which are older than this amount of seconds will be deleted ); $captcha =& new hn_captcha_X1($CAPTCHA_INIT); include("./head.html"); /** * Gibt einen E-Mail-Link per JavaScript maskiert aus. * * @param String $mailto E-Mail-Adresse * @param String $text Text des Links * @see design::email_adresse() * @see http://www.ideenreich.com/email/email_verschuesseln.shtml */ function e_mail_link ( $mailto, $text="", $aufruf="" ) { if ($aufruf == "") $aufruf = "mailto:"; list($name,$domain) = explode("@",$mailto,2); $ausgabe = ""; return $ausgabe; } /* ========================== NEUEINTRAG VERARBEITEN ========================== */ ?>
validate_submit(); if (($_POST['name'] == "") || ($_POST['kommentar'] == "") || $ca_validate != 1) { echo "
Unvollständige Angaben!
\n"; echo "

Bitte gib mindestens Deinen Namen, einen Kommentar und den richtigen Sicherheitscode ein!

\n"; echo "Zurück

\n"; echo ""; exit; } $sql = "INSERT INTO $tbl (name,email,homepage,kommentar,datum,ip) "; // SQL-Anweisung: Alle Datensätze der Tabelle table_name lesen $sql .= " VALUES ("; $sql .= "'".strip_tags($_POST['name'])."'"; $sql .= ",'".strip_tags($_POST['email'])."'"; $sql .= ",'".strip_tags($_POST['homepage'])."'"; $sql .= ",'".strip_tags($_POST['kommentar'])."'"; $sql .= ",NOW()"; $sql .= ",'".$_SERVER['REMOTE_ADDR']."'"; $sql .= ")"; // deaktiviert wegen SPAM $rs = $db->insert($sql); // Daten in Variable rs schreiben if ($rs != 0) { // alles ok echo "

Danke für Ihren Eintrag!

\n"; // Mail versenden $body = "Folgender Eintrag wurde ins Gästebuch geschrieben:\n"; $body .= "==================================================\n\n"; $body .= "Name: ".$_POST['name']."\n"; $body .= "E-Mail: ".$_POST['email']."\n"; //$body .= "IP: ".$_SERVER['REMOTE_ADDR']."\n"; $body .= "IP: ".@gethostbyaddr($_SERVER['REMOTE_ADDR'])." (".$_SERVER['REMOTE_ADDR'].")\n"; $body .= "Homepage: ".$_POST['homepage']."\n"; $body .= "Kommentar:\n".$_POST['kommentar']."\n\n\n"; $body .= "Tschuess.\n"; @mail($to, "Gaestebucheintrag Soapical Dunkelrote Rosen", $body, "From: $from\nX-Mailer: PHP/" . phpversion()); } else { echo "FEHLER!
\n Ihr Eintrag konnte nicht erfasst werden!
Bitte verständigen Sie den Webmaster $admin

"; echo "Fehler: ".mysql_error($conn); } } /* ========================== FORMULAR FÜR NEUEINTRAG ==========================*/ if (isset($_GET['neueintrag'])) { ?>
Ihr Eintrag ins Gästebuch
Ihre Kommentare sind gefragt!

Wir behalten uns vor, Einträge oder Teile von Einträgen kommentarlos zu löschen, wenn Sie anstößig, kommerziell oder nicht sinnverwandt sind.

Gästebuch ansehen
     
Name*
E-Mail
Homepage
Kommentar*  
Sicherheitscode*      Bitte den folgenden 5-Ziffern-Code ablesen und in das Feld eintragen.