https://4usa.com/z0/index.php<?php
// Configuration
$name = 'BBS';
$background = 'cadetblue';
$text = 'black';
$defname = "Anonymous";
// End of configuration
// HTML character escaping
$p = htmlentities($_GET["p"], ENT_QUOTES | ENT_IGNORE, "UTF-8");
// If request is to post, writes to file
if ($_GET["p"]){
$bbs = '<hr> ';
if ($_GET["n"]) {
$bbs .= "<b><font color=\"#117743\">$n</font></b>";
} else {
$bbs .= "<b><font color=\"#117743\">$defname</font></b>";
}
if ($_GET["a"]) {
$bbs .= " - <b>$a</b>";
}
$mydate=getdate(date("U"));
$bbs .= " $mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]";
$bbs .= '<br/>' . $p . "<br/>\n";
$bbs .= file_get_contents('v.htm');
file_put_contents('v.htm', $bbs);
header("Location: ./ ");
}
// Site navigation and style
echo "<body style=\"color: $text;\" bgcolor=\"$background\">";
echo "<title>$name</title>";
echo '<meta http-equiv="pragma" content="no-cache" />';
echo '<a href="index.php">Refresh</a> <a
href="/rules/">Rules</a> <a
href="/">Home</a>   ';
// Name and post form
echo "<br/><center><h1>$name</h1></center>\n";
echo "<center><form method=\"GET\"><textarea name=\"p\"></textarea><br/><input type=\"submit\" value=\"Submit\"></form></center>";
echo '<br/>';
// If file does not exists, creates empty
if(!file_exists("v.htm")) {
file_put_contents("v.htm", '');
}
// Prints contents of file
$file = fopen("v.htm", "r");
while(!feof($file)) {
echo fgets($file). "<br/>\n";
}
fclose($file);
?>