$mainurl, "MAX" => $textmax)); //Dieser Code darf nicht entfernt werden! echo "
GA Gästebuch v1.6 © by gifarchiv.net

"; } elseif (isset($_GET['action']) && $_GET['action'] == "help") { echo templateschreiben("guestbook/templates/hilfe.tpl", array()); //Dieser Code darf nicht entfernt werden! echo "
GA Gästebuch v1.6 © by gifarchiv.net

"; } else { if(isset($_POST["eintrag"])) { if (!($name=$_POST["name"])) $name=""; if (!($text=$_POST["text"])) $text=""; if (!($email=$_POST["email"])) $email=""; if (!($homepage=$_POST["homepage"])) $homepage=""; if (!($icq=$_POST["icq"])) $icq=""; if ($captcha && !isset($_GET['action']) ) { include_once 'guestbook/captcha.php'; $controller = new Captcha(); } $ausgabe = ""; if($name_pflicht && empty($name)) $ausgabe .= "
  • "._name."
  • "; if($text_pflicht && empty($text)) $ausgabe .= "
  • "._inhalt."
  • "; if($email_pflicht && empty($email)) { $ausgabe .= "
  • "._email."
  • "; } else { $email = strip_tags(trim($email)); if(!pruefe_mail($email) && !empty($email)) $ausgabe .= "
  • "._falschemail."
  • "; } if($homepage_pflicht && empty($homepage)) { $ausgabe .= "
  • "._homepage."
  • "; } else { $homepage = strip_tags(trim($homepage)); if (substr($homepage,0,3) == "www") $homepage = "http://". $homepage; if(!pruefe_hp($homepage) && !empty($homepage)) $ausgabe .= "
  • "._falschehp."
  • "; } if($captcha && !($controller->isValid(htmlentities($_POST['number'])))) $ausgabe .= "
  • "._fehlercaptcha."
  • "; $name = strip_tags($name); $name = trim($name); if(!pruefe_forbiddenwords($text, $forbiddenwords)) $ausgabe .= "
  • "._unerlaubtezeichen."
  • "; if(!$html) $text = strip_tags($text); $text = trim($text); $icq = strip_tags(trim($icq)); if(preg_match("/\D/", $icq) && !empty($icq)) $ausgabe .= "
  • "._falscheicq."
  • "; $spamfunctionwert=pruefe_antispam($antispamtime, $antispamtime2); if($spamfunctionwert == 1) $ausgabe = "
  • "._spam."
  • "; if($spamfunctionwert == 2) $ausgabe = "
  • "._spam2."
  • "; $text = stripslashes($text); $commentleer = ""; if ($freischaltung) $frei="1"; if(empty($ausgabe)) { if($enmail) @mail($mail,"Neuer Gästebucheintrag", "Sie haben einen neuen Gästebucheintrag:

    Datum: ".date("d.m.Y", time())."
    Uhrzeit: ".date("H.i", time())."
    Name: ".$name."
    Email: ".$email."
    Homepage: ".$homepage."
    ICQ: ".$icq."
    Text: ".$text."", "From: \"Gästebuch\" <$mail>\nX-Mailer: PHP/" . phpversion()."\nMime-Version: 1.0\nContent-Type: text/html; charset=\"ISO-8859-1\""); if($endankemail && !empty($email)) @mail($email,"Vielen Dank für Deinen Gästebucheintrag", "Hallo ".$name."

    Vielen Dank für Deinen Eintrag in mein Gästebuch!
    Ich hoffe Dir hat meine Seite gefallen und Du schaust mal wieder vorbei.

    Dein Eintrag:

    ".$text."", "From: \"Gästebuch\" <$mail>\nX-Mailer: PHP/" . phpversion()."\nMime-Version: 1.0\nContent-Type: text/html; charset=\"ISO-8859-1\""); if($bbcode) $text = bbcode($text); if($enbadword) $text = pruefe_badwords($text, $badwords); datenschreiben(array(time(), getenv("REMOTE_ADDR"), stripslashes($name), $email, $icq, $homepage, $text, $commentleer, $frei)); if($thanks) { $ausgabe .= "
    "._danke."

    "; $ausgabe .= "
    "._zurueck."
    "; echo templateschreiben("guestbook/templates/danke.tpl", array("MESSAGE" => $ausgabe)); } else { echo ""; exit; } } else { $ausgabe2 = ""._fehler."
    \n"; $ausgabe2 .= "
    "._zurueck."
    "; echo templateschreiben("guestbook/templates/danke.tpl", array("MESSAGE" => $ausgabe2)); } } else { $data = array_reverse(datenlesen()); $table = ""; $i=0; $eintr_anzahl = count($data); if (isset($_GET['start'])) { $start = $_GET['start']; } else { $start = 0; } foreach($data as $wert) { if($i >= $start) { $wert = explode("::", $wert); $c2 = 0; foreach($wert as $zwwert1) { $zwwert2[$c2] = base64_decode($zwwert1); $c2++; } $wert = $zwwert2; unset($zwwert1); unset($zwwert2); $wert[3] = trim($wert[3]); if(!empty($wert[3])) $wert[3] = "\"Email\""; $wert[4] = trim($wert[4]); if(!empty($wert[4])) $wert[4] = "\"ICQ\""; $wert[5] = trim($wert[5]); if(!empty($wert[5])) $wert[5] = "\"Homepage\""; if(!empty($wert[7])) $wert[7] = _kommentar.$wert[7]; if(empty($wert[7])) $wert[7] = ""; if($enumbruch) $wert[6] = umbrucheinfuegen($wert[6], $umbruch); if($ensmilies) $wert[6] = smilies($wert[6], $smilies); if(empty($wert[8])) $wert[8] = ""; $text6_mit_br = str_replace("\n","
    ",$wert[6]); $text7_mit_br = str_replace("\n","
    ",$wert[7]); if ($wert[8] <> "1"){ $table .= templateschreiben("guestbook/templates/tabelle.tpl", array( "NAME" => $wert[2], "EMAIL" => $wert[3], "ICQ" => $wert[4], "HP" => $wert[5], "CONTENT" => $text6_mit_br, "COMMENT" => $text7_mit_br, "DATE" => date("d.m.Y", $wert[0]), "TIME" => date("H:i", $wert[0]), "NUMBER" => ($eintr_anzahl-$i))); } if($i == $eintr_proseite+$start-1) break; } $i++; } $mnum = $eintr_anzahl; $sites = ""; $i=-$eintr_proseite; $seitenzahl = 1; while($mnum>0) { $mnum = $mnum - $eintr_proseite; $i = $i + $eintr_proseite; $sites .= "$seitenzahl "; $seitenzahl++; } if ($startform == TRUE){ $oben = templateschreiben("guestbook/templates/formular.tpl", array("URL" => $mainurl, "MAX" => $textmax)); } else{ $oben = "".$linktext.""; } $menu = templateschreiben("guestbook/templates/menu.tpl", array("ANZAHL" => $eintr_anzahl, "SEITENLINKS" => $sites)); echo templateschreiben("guestbook/templates/index.tpl", array("EINTRAEGE" => $table, "MENU" => $menu, "LINKODERFORM" => $oben)); } //Dieser Code darf nicht entfernt werden! echo "
    GA Gästebuch v1.6 © by gifarchiv.net

    "; } echo templateschreiben("guestbook/templates/footer.tpl", array()); ?>