//DIT IS PLAATSBERICHT.PHP HET BESTAND WAAR MENSEN HUN TEXT INTYPEN!!!
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="addbericht.php">
Je naam:
<input name="naam" type="text" id="naam" maxlength="20">
*NIET MEER DAN 20 LETTERS!<br>
Je bericht:
<input name="bericht" type="text" maxlength="30">
*NIET MEER DAN 30 LETTERS!<br>
<input type="submit" name="Submit" value="Plaats het bericht...">
</form>
<br>
Gemaakt door Pelle Werkman. <img src="http://sentinelsmods.t35.com/Jesse/images/bigsmile.gif">
</body>
</html>
//DIT IS ADDBERICHT.PHP, HET BESTAND DAT BERICHTEN LOGT.
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Nou, je berichtje is op de berichtenbalk geplaatst hoor! Tenzij je een error ziet!
<br>
<?php
$file = "berichtenbalk.php";
$comment = "Bericht: ". $_POST["bericht"] ."| ";
$name = "|Naam: ". $_POST["naam"] .", ";
$comment2 = "<font color=#333333>" . stripslashes($bericht) . "</font>";
if(is_writable($file)){
$open = fopen($file,"a");
fwrite($open,$name);
fwrite($open,$comment);
fclose($open);
}else{
chmod($file,0777) or die("OH NEE! ".$file." IS NIET GOED GECHMOD! VERTEL PELLE HET MAAR!");
echo 'Holy mama, er ging iets helemaal fout! Vertel me het ff!';
}
?></body>
</html>
//EN BERICHTENBALK.PHP:
<marquee>
//ZORG ERVOOR DAT BERICHTENBALK GECHMOD IS NAAR 777!!!