<?
$ok = true;
if (isset($name)) {
if ($name != "" && $email != "" && $text != "") {
$ok = true;
}
else {
$ok = false;
}
}
$fname = "gb.txt";
function readF($fname) {
$fh = fopen($fname,"r");
$contents = fread($fh, filesize($fname));
$contents = str_replace("\r","",$contents);
fclose($fh);
$parts = explode("\n", $contents);
return $parts;
}
if (isset($text) && ($ok)) {
$text = str_replace("\n","<br>",$text);
$text = str_replace("#"," ",$text);
$text = str_replace("******","F***en",$text);
$text = str_replace("******","f***en",$text);
$text = str_replace("*********","A****och",$text);
$text = str_replace("*********","A****och",$text);
$text = str_replace("*****","A**ch",$text);
$text = str_replace("*****","A**ch",$text);
$text = str_replace("Wichser","W****er",$text);
$text = str_replace("wichser","W****er",$text);
$text = str_replace("Wixer","W****er",$text);
$text = str_replace("wixer","W****er",$text);
$text = str_replace("Hurensohn","H*****hn",$text);
$text = str_replace("hurensohn","H*****hn",$text);
$email = str_replace("#"," ",$email);
$name = str_replace("#"," ",$name);
$datum = date("d-m-y");
$zeit = date("H.i");
$eintrag = $name."#".$email."#".$text."#".$datum."#".$zeit."#".$url."\n";
$fh = fopen($fname,"a");
fwrite($fh,$eintrag);
fclose($fh);
}
if (isset($text) && ($ok)) { header("Location: ../../all_x1.php3?page=inc_x7v1.inc&fname=php/gb/$fname"); }
if (!$ok) { header ("Location: ../../all_x1.php3?page=inc_x7.inc&msg=einige felder sind noch nicht ausgefuellt&email=$email&name=$name&text=$text&url=$url"); }
?>