Gästebuch

 

sql($sql_table["design"],"*",""); $DB->sql_qry("DELETE FROM ".$sql_table["ip"]." WHERE time < ".(time() - $design[zeit])); $anzahlseiten=$DB->sql_num($sql_table["main"],"id",""); $end=$design["eps"]; $result=beitragzahl($end,$anzahlseiten); ?> <? echo $design["gbtitel"]; ?> "> $design[gbtitel]
"; if($_GET["gb"]=="eintragen") { if($design["smileys"]==1) $inssmile="Smileys einfügen: ".smileinsert ("setsmileinsert").""; if($design["vbbcode"]==1) $insertvbb="
".bbcodeins("setsmileinsert").""; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/insert.htm",0,true)."\";"); if($design["designsel"]==1) { include(dirname(__FILE__)."/admin/functions.php"); $FUNC=new functions; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/insert.htm",1)."\";"); $selrates=$DB->sql_qry("SELECT * FROM ".$sql_table["rates"]); while($sdaten=mysql_fetch_array($selrates)) { $value_ins=$FUNC->create_options(array("Bitte wählen",1,2,3,4,5,6,7,8,9,10),"","rates[]"); eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/insert.htm",2)."\";"); } } eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/insert.htm",3)."\";"); if($_POST["gbeintrag"]=="posten") { if($_POST["name"]!="" && $_POST["text"]!="") { if(($design["spammschutz"]=="checked" && !$DB->sql_num($sql_table["ip"],"ip"," WHERE ip='".$_SERVER ["REMOTE_ADDR"]."'")) or $design["spammschutz"]=="") { if(count_smileys($_POST["text"],$design["maxsmileys"])) { if(check_br($_POST["text"])) { if(substr($_POST[hp],0,7)=="http://") { $_POST[hp]=$_POST[hp]; } elseif (substr($_POST[hp],0,4)=="www.") { $_POST[hp]="http://".$_POST[hp]; } else { $_POST[hp]=""; } if(strpos($_POST[email],"@")=="") { $_POST[email]=""; } if($design[anzeigen]==0){ $check="checked"; } else { $check=""; } if($_POST[birthday_mon]!="" && $_POST[birthday_day]!="" && $_POST [birthday_jahr]!="") $birthins="$_POST[birthday_day].$_POST[birthday_mon].$_POST[birthday_jahr]"; if($design["designsel"]==1) { if(is_array($_POST["rates"])) { foreach($_POST["rates"] as $value) $rate_insert.=($value!=0) ? $value."," : "0,"; } } $DB->sql_qry("INSERT INTO ".$sql_table["main"]." (name,email,hp,birthday,home_loc,icq,text,anzeigen,datum,rates) VALUES ('".secure($_POST[name])."', '".secure ($_POST[email])."', '".secure($_POST[hp])."', '$birthins','".secure($_POST[home_loc])."','".secure($_POST [icq])."','".secure($_POST[text])."', '$check', '".time()."','$rate_insert')"); $last_id=mysql_insert_id(); $DB->sql_qry("INSERT INTO ".$sql_table["ip"]." (ip,time) VALUES ('".$_SERVER["REMOTE_ADDR"]."','".time()."')"); send_mail($last_id); echo ""; } else { $error_text="Sie haben eine zu lange Zeichenkette ohne Unterbrechung eingefügt"; eval("echo \"".$TMP->tmp_compile(dirname (__FILE__)."/templates/error.htm",0,true)."\";"); } } else { $error_text="Sie haben mehr Smileys als erlaubt eingefügt"; eval("echo \"".$TMP->tmp_compile(dirname (__FILE__)."/templates/error.htm",0,true)."\";"); } } else { $error_text="Sie haben sich vor weniger als ".($design[zeit] / 60)." Minuten schon eingetragen."; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/error.htm",0,true)."\";"); } } else { $error_text="Bitte die Felder \"name\" und \"text\" ausfüllen"; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/error.htm",0,true)."\";"); } } } else { if($_GET[boardverstoss]=="true") { eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/boardverstoss.htm",0,true)."\";"); if($_POST[bvmelden]=="Abschicken") { if($_POST[name]!="" && $_POST[grund]!="") { $bvqd=$DB->sql($sql_table["main"],"*"," WHERE id='".$_GET['id']."'"); $neuerverstosseintrag=$bvqd[verstoss].secure($_POST[name])."µ".secure($_POST[grund])."Õ"; $DB->sql_qry("UPDATE ".$sql_table["main"]." SET verstoss='$neuerverstosseintrag' WHERE id='".$_GET ['id']."'"); eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/redirect.htm",0,true)."\";"); $DB->sql_qry("UPDATE ".$sql_table["design"]." SET gesregel=gesregel+1"); echo ""; } else { $error_text="Sie müssen beide Felder ausfüllen!"; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/error.htm",0,true)."\";"); } } } else { $query=$DB->sql_qry("SELECT * FROM ".$sql_table["main"]." WHERE anzeigen='checked' order by id DESC LIMIT ".$result ['start'].",$end"); $querynum=mysql_num_rows($query); $savesatop=sabtop($result["start"],$result["final"],$anzahlseiten); eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/head.htm",0,true)."\";"); if(!$querynum) { echo "
Keine Einträge vorhanden.
"; } else { while($daten=mysql_fetch_array($query)) { $name_ins=stripslashes($daten["name"]); $datum_insert=date("d.m.Y \<\/\b\> \u\m \<\b\> H:i",$daten[datum]). " Uhr"; $final_function=replacestring ($daten[text],"main"); $beitrag_insert=($design[badwords]==1) ? badwordsreplace($final_function) : $final_function; if($daten["kommentar"]!="") $beitrag_insert.="

".(($design[badwords]==1) ? badwordsreplace(getkomment($daten [kommentar],$design[bordercolor],"main",1)) : getkomment($daten[kommentar],$design[bordercolor],"main",1)); $email_insert=($daten[email]=="") ? "" : ""; $hp_insert=($daten[hp]=="") ? "" : ""; $icq_insert=($daten[icq]==0) ? "" : ""; $geb_insert=($daten[birthday]=="") ? "n/a" : $daten[birthday]; $loc_insert=($daten[home_loc]=="") ? "n/a" : stripslashes($daten[home_loc]); $right_ins="[ Regelwidrigkeit melden ]"; eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/main.htm",0,true)."\";"); if($design["designsel"]==1) { $rates=explode(",",$daten["rates"]); $selrates=$DB->sql_qry("SELECT * FROM ".$sql_table["rates"]); if(count($rates) > 1 && count(preg_grep("/0/",$rates)) < 4) eval("echo \"".$TMP->tmp_compile(dirname (__FILE__)."/templates/main_design1.htm",1)."\";"); $x=0; while($sdaten=mysql_fetch_array($selrates)) { if($rates[$x]!=0) { $balken[$x]=""; eval("echo \"".$TMP->tmp_compile(dirname (__FILE__)."/templates/main.htm",2)."\";"); } $x++; } } eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/main.htm",3)."\";"); eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/main.htm",4)."\";"); eval("echo \"".$TMP->tmp_compile(dirname(__FILE__)."/templates/main.htm",5)."\";"); } } seitenaufteilung ($result["final"],$anzahlseiten,$_GET[site],10,3,"body","body",$design["bgcolor"],"$gblink&"); echo "
".$sayunten; } } echo "
".hmt_push("body","body"); ?>
DRK - Ortsverein Babenhausen
Vergnügungsbetriebe Angelika Fendt
Babu designz - Design, Airbrush, Digitaldruck & Beschriftungen
Stadt Babenhausen
Gremium der Babenhäuser Vereine e.V.
Gewerbeverein Babenhausen e.V.