anon
This commit is contained in:
parent
cb2ad6b56e
commit
c6b9258a40
1 changed files with 2 additions and 1 deletions
|
@ -77,8 +77,9 @@
|
|||
$myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)");
|
||||
|
||||
if (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
|
||||
fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [" . date("m/d/Y") . "] " . htmlspecialchars($_POST["body"]) . "<br>");
|
||||
fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [" . date("m/d/Y H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "<br>");
|
||||
} else {
|
||||
fwrite($myfile, htmlspecialchars("anon [" . date("m/d/Y H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "<br>");
|
||||
}
|
||||
|
||||
fclose($myfile);
|
||||
|
|
Reference in a new issue