Fejl i en MEGET enkel chat og jeg kan ikke forstå hvorfor det ik.
<meta http-equiv="refresh" content="3"><body bgcolor="#81B9FE">
<?
if ($mode == "opret") {
$besked = eregi_replace("kuzz","********",$besked);
$besked = eregi_replace("prostitute","********",$besked);
$besked = eregi_replace("ho","**",$besked);
$besked = eregi_replace("luder","*****",$besked);
$besked = eregi_replace("@@","**",$besked);
$besked = eregi_replace("satans","******",$besked);
$besked = eregi_replace("fucke","*****",$besked);
$besked = eregi_replace("fis","***",$besked);
$besked = eregi_replace("fizze","*****",$besked);
$besked = eregi_replace("kusse","*****",$besked);
$besked = eregi_replace("satan","*****",$besked);
$besked = eregi_replace("admin stinker","ADMIN STYRER",$besked);
$besked = eregi_replace("admin sux","ADMIN STYRER",$besked);
$besked = eregi_replace("admin sucks","ADMIN STYRER",$besked);
$besked = eregi_replace("helved","******",$besked);
$besked = eregi_replace("helvede","*******",$besked);
$besked = eregi_replace("dick","****",$besked);
$besked = eregi_replace("fucking","*******",$besked);
$besked = eregi_replace("kuzze","*****",$besked);
$besked = eregi_replace("fisse","*****",$besked);
$besked = eregi_replace("pussy","*****",$besked);
$besked = eregi_replace("pik","***",$besked);
$besked = eregi_replace("sutter","******",$besked);
$besked = eregi_replace("lort","****",$besked);
$besked = eregi_replace("ass","***",$besked);
$besked = eregi_replace("shit","****",$besked);
$besked = eregi_replace("fuck","****",$besked);
$besked = ereg_replace("<","<",$besked);
$besked = ereg_replace(">",">",$besked);
$besked = stripslashes($besked);
$besked = ereg_replace("(\n\r|\r\n)","<br>",$besked);
if ($besked == "") { echo "<p>Husk besked..</p>"; }
// Du kan ikke tagge hvis Beskeden er tom
else {
$fil = "tag.txt";
// Her bliver dit tag gemt
$dato = date("d/m-y", time()+100);
// Dato fx. dag/måned/årstal
$tid = date(" H:i:s", time()+100);
// Klokken Time:minut:sekund
$str = "$besked<br>";
// Selve tagget
$fp = fopen($fil, r);
if ($fp) { $filArray = file($fil); $result = implode("", $filArray); $result = "$str$result"; fclose($fp); }
$fp = fopen($fil, w); if($fp) { fputs($fp, $result); fclose($fp); }
}
$mode = ""; }
?>
<? readfile("tag.txt"); ?>