$libpfad = "../../../../weblibs/"; require($libpfad."config.php"); $to = "musical-ag@cfg-hockenheim.de"; // eMail-Benachrichtigungsadr. bei Neueintrag $from = "feedback@cfg-hockenheim.de"; $tbl = "soapical_gaestebuch"; /* ============= CAPTCHA ======================= */ require_once($libpfad."hn_captcha/hn_captcha.class.x1.php"); // ConfigArray $CAPTCHA_INIT = array( 'tempfolder' => $_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 ========================== */ ?>
|
if (isset($_POST['gaestebuch_ok']))
{
$ca_validate = $captcha->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! |