hi,
ich habe auf einer web seite ein php script für kommentare gefunden ,
das aber nicht funzt kann mir jemand helfen???
lg flo
p.s. sry wenn ich des jetz so einfüge aba des mit den tag check ich i-wie nicht
<!–
body, td { font-family: Verdana; font-size: 9px; color: #000000 }
input { font-family: Verdana; font-size: 9px; color: #333333;
border: 1px solid #000000 }
.button { font-family: Verdana; font-size: 9px; color: #000000;
background-color: #FFCC33; font-weight: bold;
border: 1px solid #000000 }
a { font-family: Verdana; font-size: 9px; color: #000000 }
–>
if(!isset($site)) { ?>
[message.box | leave.a.message]
name:
email:
comment:
<?php $filename="message.txt";if (file\_exists($filename)) { $fp = fopen($filename,"r"); for ($i=0;$i while(!feof($fp)) { $zeile=fgets($fp,32000); list($name,$datum,$email,$comment)=explode("|",$zeile); $comment = preg\_replace("/([A-Za-z0-9\.\-\_]{2,})(\@)([A-Za-z0-9\.\-\_]{3,})(\.)([A-Za-z]{2,3})\b/","[\\0",$comment); $comment = preg...](%5C%22mailto:%5C%5C0%5C%22)[\\0](%255C%2522%255C%255C0%255C%2522)",$comment); if (!$email) { echo $name." wrote @ ".$datum." ".$comment." "; } else { echo "[".$name."](%255C%2522mailto:%2522.%2524email.%2522%255C%2522) wrote @ ".$datum." ".$comment." "; } } } fclose($fp); } else { echo " **no entries yet**"; } ?\> } ?\> if(isset($site)) { ?\> if($site == "thankyou") { ?\> [message.box | thank.you] <?php $filename="message.txt";
if(isset($abschicken)) { $fpn=@fopen($filename.".tmp","w"); if($fpn ?\> Fehler <?php }
$comment = str\_replace("|","",$comment); $comment = htmlspecialchars($comment); $comment = ereg\_replace("c:/con/con", "[unallowed string]", $comment); $email = str\_replace("|","",$email); $email = htmlspecialchars($email); $email = ereg\_replace("c:/con/con", "[unallowed string]", $email); $name = str\_replace("|","",$name); $name = htmlspecialchars($name); $name = ereg\_replace("c:/con/con", "[unallowed string]", $name); $datum=date("j.n.y, H:i"); $comment=htmlspecialchars($comment); $datum=date("j.n.y, H:i"); if(file\_exists($filename)) { $eintrag= "$name|$datum|$email|$comment\n"; } else { $eintrag= "$name|$datum|$email|$comment"; } fputs($fpn,$eintrag); if(!file\_exists($filename)) { $fp=fopen($filename,"w"); fclose($fp); } unset($fp); $fp=@fopen($filename,"r"); if($fp ?\> Fehler <?php }
while(!feof($fp)) { $zeile=fgets($fp,32000); fputs($fpn,$zeile); } fclose($fp); fclose($fpn); unlink($filename); rename($filename.".tmp",$filename); echo " **thanks for your entrie**"; echo " you will be redirected back ... "; } ?\> } ?\> } ?\>