///shoutbox.php///
<script>
if(self.location==top.location)
{
top.location='http://members.lycos.nl/ericarts92/index.php'; //// deze link zou ik wijzigen naar joun site.
}
</script> script gemaakt door Jacob Slomp aangepast door eric arts
<style>
body,input,td, textarea { font-family:verdana; font-size:8pt; font-weight:bold; }
a { color:blue; }
iframe { border:1 ridge black;
body {
background-image: url();
}
body {
background-image: url();
background-color: #000000;
}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #99FF00;
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
</style>
</head>
<body>
<?
if($nummer==1){
?>
<meta http-equiv="refresh" content="1;URL="shoutbox.php?nummer=1">
<?
$file=file("messages.txt");
for($i=count($file)-1; $i >= 0; $i--){
list($ip,$naam,$email,$mess,$datum)=split("\t",$file[$i]);
$mess=stripslashes($mess);
$mess=eregi_replace("lul","lol",$mess); ////hier kun je woorden laten veranderen handig als je bepaalde woorden wilt blokeren of smilies wilt toevoegen smilies enzo in html ///
$mess=eregi_replace("kut","lol",$mess);
$mess=eregi_replace("wtf","lol",$mess);
$mess=eregi_replace("shit","lol",$mess);
$mess=eregi_replace("fuck","lol",$mess);
$mess=eregi_replace("f*ck","lol",$mess);
$mess=eregi_replace("zak","lol",$mess);
$mess=eregi_replace("s=aan","<i>",$mess);
$mess=eregi_replace("s=uit","</i>",$mess);
echo "<table cellpadding=0 style='border:1 dashed black; width:100%' title='Gepost op: ".$datum."'>";
echo "<tr><td><a href='mailto:".$email."'>".$naam."</a></td></tr>";
echo "<tr><td>".$mess."</td></tr>";
echo "</table><BR></i>";
}
}
if($nummer==2){
if($submit && $naam && $mess){
$fp=fopen("messages.txt","a");
$mess=str_replace("%0D%0A"," ",$mess);
$mess=str_replace("\n"," ",$mess);
$mess=str_replace("\r","",$mess);
fputs($fp,$REMOTE_ADDR."\t".strip_tags($naam)."\t".strip_tags($email)."\t".strip_tags($mess)."\t".date("H:i:s d-m-Y")."\n");
fclose($fp);
echo "Bericht toegevoegt<br>";
echo "<script>parent.shout.location='shoutbox.php?nummer=1'</script>";
echo "<script>self.location='shoutbox.php?nummer=2'</script>";
}
else {
?>
<body topmargin=0>
<form>
<input type=hidden name=nummer value=2>
<input type='text' name=naam value='naam' onfocus='this.value=""; submit.disabled=false'>
<input type='text' name=email value='email' onfocus='this.value=""'>
<textarea name=mess onfocus='this.innerHTML=""'>Message</textarea>
<input type='submit' name=submit value='Post' disabled=yes>
<input type='reset' name=wiss value='Wissen'>
<?
}
}
?>
///index.php///
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>shoutbox 01</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
}
body {
background-color: #000000;
}
.style1 {color: #333333}
.style2 {color: #000000}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #99FF00;
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
-->
</style></head>
<body>
<p></p>
<p><center><br>
</center>
<iframe height=250 frameborder=0 style="border-bottom:none" src='shoutbox.php?nummer=1' name=shout>
</iframe><BR>
<iframe height=100 frameborder=0 scrolling=no style="border-top:none" src='shoutbox.php?nummer=2'>
</iframe></p>
</body>
</html><div id="a24dffd08" style="text-align: center; margin: 0px; padding: 0px;" align="center"></div>
<script>