"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; } if($_GET["check"]==0) { $count++; } //echo "
"; $check1=$count; while($check<$count) { $res = mysql_fetch_array($query); $res[2]=str_replace("\n","
",$res[2]); $res[2]=str_replace("[imga","",$res[2]); $res[3]=str_replace("\n","
",$res[3]); $res[3]=str_replace("[imga","",$res[3]); $check++; $check1++; echo "
ecke"; echo "  "; echo " ecke". "". "
"; echo " $res[2]"; echo " "; echo " $res[3]"; echo "
"; echo "  "; echo "
"; } else if($_GET["site"]=="kontakt" or $_GET["site"]=="links") { echo ""; $res = mysql_fetch_array($query); $res[1]=str_replace("\n","
",$res[1]); $res[1]=str_replace("[imga","",$res[1]); echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; //echo "
ecke"; if($_GET["site"]=="kontakt") { echo " Kontakt"; } else { echo " Links"; } echo " ecke". "". "
"; echo " $res[1]"; echo "
"; } else if($_GET["site"]=="gaestebuch") { if($_POST["vorname"]!="" and $_POST["name"]!="" and $_POST["text"]!="") { $text = str_replace("\n","
",$_POST["text"]); $text = str_replace(":angry:","bild",$text); $text = str_replace(":cheesy:","bild",$text); $text = str_replace(":cry:","bild",$text); $text = str_replace(":embarassed:","bild",$text); $text = str_replace(":grin:","bild",$text); $text = str_replace(":kiss:","bild",$text); $text = str_replace(":laugh:","bild",$text); $text = str_replace(":lipsrsealed:","bild",$text); $text = str_replace(":rolleyes:","bild",$text); $text = str_replace(":sad:","bild",$text); $text = str_replace(":shocked:","bild",$text); $text = str_replace(":smiley:","bild",$text); $text = str_replace(":tongue:","bild",$text); $text = str_replace(":undecided:","bild",$text); $text = str_replace(":wink:","bild",$text); $z01 = substr($_POST["zahlen"],0,1); $z02 = substr($_POST["zahlen"],1,2); if($z01+$z02==$_POST["check"]) mysql_query("INSERT INTO gaestebuch VALUES (NULL,'".$_POST["vorname"]."','".$_POST["name"]."','".$_POST["mail"]."',NULL,'".$text."')"); } $query = mysql_query("SELECT * FROM gaestebuch ORDER BY id DESC LIMIT ".($_GET["page"]*10).",10"); echo ""; $zahl0 = rand(1,9); $zahl1 = rand(1,9); echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; while($res = mysql_fetch_array($query)) { $res[2]=str_replace("\n","
",$res[2]); $res[2]=str_replace("[imga","",$res[2]); echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; } } else if($_GET["site"]=="Home") { $query = mysql_query("SELECT * FROM news ORDER BY id DESC LIMIT ".($_GET["page"]*10).",10"); echo "
ecke"; echo " Gästebuch"; echo " ecke". "". "
"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo "
Vorname:
Name:
E-Mail:
Nachricht:\"grin\" \"cheesy\" \"cry\" \"kiss\" \"laugh\" \"rolleyes\" \"sad\" \"shocked\" \"smiley\" \"tongue\" \"undecided\" \"wink\"
$zahl0 + $zahl1 =
"; echo "
 
 
ecke"; echo " Dieser Gästebucheintrag wurde geschrieben von $res[1] $res[2] am $res[4] (E-Mail)"; echo " ecke". "". "
"; echo " $res[5]"; echo "
 
"; while($res = mysql_fetch_array($query)) { $res[2]=str_replace("\n","
",$res[2]); $res[2]=str_replace("[imga","",$res[2]); echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo ""; } } ?>
ecke"; echo " Newsbeitrag vom $res[1]"; echo " ecke". "". "
"; echo " $res[2]"; echo "