|
gaestebuch |
|
require("php/zugriff.php4");
if (($REQUEST_METHOD=='POST')) {
for(reset($HTTP_POST_VARS);
$key=key($HTTP_POST_VARS);
next($HTTP_POST_VARS)) {
$this = addslashes($HTTP_POST_VARS[$key]);
$this = strtr($this, "|", " ");
$$key = $this;
}
$referer = getenv("HTTP_REFERER");
if (!stristr($referer,"tijuanamusic") || stristr($text,"http") || stristr($text,"<")|| stristr($text,">") || ($geheimnis != "xxv9uuii") ) {
//echo "ging nicht";
}
else if ($text ) {
// else{
//
// $name = addslashes($name);
// $text = addslashes($text);
mysql_query("INSERT INTO Gaestebuch (Name,Text,Mail,Datum) VALUES ('$name','$text','$mail',now())");
}
}
$eintraege_zeigen = 5;
if(!$abaus) $abaus = 0;
$anzahl_abfrage = mysql_query("SELECT count(*) as anzahl FROM Gaestebuch");
$anzahl = mysql_fetch_array($anzahl_abfrage);
$ab = 0;
if($anzahl["anzahl"] > $eintraege_zeigen) {
if ($abaus > 0) echo ' <';
while(($ab * $eintraege_zeigen) < $anzahl["anzahl"]) {
echo " ";
echo ($ab + 1);
echo '';
$ab++;
}
if (($abaus+1) < $ab) echo ' >';
}
?>
eintrag verfassen
|
'.$eintrag[Datum].' '); echo ($eintrag[Text].' '); echo ($eintrag[Name].' |