0)
die("FU!");
if (count($_GET) > 1) // wg. ?page=2 ...
die("FU!");
if ($_GET["add"] != "")
die("FUCK U!");
}
die("WinkeWinke, liebes Gästebuch!
Zum Gästebuch 2000
Zu WinkeWinke");
$referer = $_SERVER["HTTP_REFERER"];
/*
if ($referer == "http://www.winkewinke.de/guestbook/addguest.html" || $referer == "http://www.winkewinke.de/guestbook/index.html" || $referer == "")
die("MF"); // Motherfucker!
if ($referer == "http://www.winkewinke.de/guestbook/" && $_GET["page"] == "")
die("MF"); // Motherfucker!
if (strstr($referer, "winkewinke.de") === false)
die("GH"); // go home!
*/
// make db-connect:
include("../../foto-und-kind/include/database.inc.php");
$link = ConnectDB("foto");
if ($link == false){
die("DB not available");
} //else
$guestbook = new Guestbook();
// create a new instance of the guestbook
$guestbook->GuestbookPage = 'http://www.winkewinke.de/guestbook/'; // the location of the guestbook page on ur site.
$guestbook->EmailsFrom = 'Gaestebuch@winkewinke.de'; // where do the emails come from inrelation to the guestbook
$guestbook->ConfirmMessage = 0; // set this to 1 if you want to email whoever submits the form letting them know to that it has been submitted.
$guestbook->SubmitConfirmationEmail = 'This is the message which is sent to people if you set ConfirmMessage'; // the message which is sent to the person who submitted the form
$guestbook->myEmail = 'gepi@gmx.net'; // set the email you want the guestbook entrys going to;
// CAPTCHA START***********
$captcha_error = false;
if ($Captcha_enabled){
$hashstring = $_POST["hashstring"];
$captcha = $_POST["captcha"];
$length= 5;
require($_SERVER["LIBRARY_PATH"]."/kcaptcha/captcha.functions.inc.php");
$secret = "";
$timeout = false;
if ($hashstring != ""){
$secret = Captcha_DecodeString($hashstring, $length);
if ($secret == false){
$captcha_error = true;
$timeout = true;
}
}
if (isset($_POST['addToGuestbook'])){
if ($captcha != $secret || $secret == "")
$captcha_error = true;
}
if (!isset($_POST['addToGuestbook']) || $captcha_error || $hashstring == ""){
$secret = Captcha_MakeString($length);
}
$sid = $hashstring = Captcha_EncodeString($secret, $length);
$guestbook->CaptchaCode = "".
" BitteBitte, die linken ".$length." Zeichen hier eingeben, um Spam zu vermeiden: ".
" ";
}
// CAPTCHA END ************
$guestbook->checkAddorDelete();
if(isset($_POST['addToGuestbook'])) {
if($guestbook->CheckForm($_POST) == true && $captcha_error == false) {
$guestbook->FormError = 'Gästebucheintrag erfolgreich.';
$guestbook->SendConfirmEmail();
} else {
if(!isset($guestbook->FormError)) {
if ($captcha_error){
if ($captcha == "")
$guestbook->FormError = '** BITTE: In das Feld unten die '.$length.' Zeichen (wie auf bem Bild angezeigt) eintippen ".
"(Das verhintert Spam im Gästebuch).';
elseif($timeout == true)
$guestbook->FormError = 'Die Zeichenfolge ist abgelaufen (timout). Bitte erneut eingeben.';
else
$guestbook->FormError = 'Die Zeichenfolge (unten) stimmt nicht mit der angezeigten überein.';
} else
$guestbook->FormError = 'Bitte die Felder "Name", "Betreff" und "Nachricht" ausfüllen.';
}
}
}
?>