From c6b9258a40bf11f0b02fd2ae3712e3fc02decd4a Mon Sep 17 00:00:00 2001 From: awesomeuser Date: Tue, 1 Aug 2023 22:40:12 +0000 Subject: [PATCH] anon --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 5c9ff1b..2f3633c 100644 --- a/index.php +++ b/index.php @@ -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"]) . "
"); + fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [" . date("m/d/Y H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); } else { + fwrite($myfile, htmlspecialchars("anon [" . date("m/d/Y H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); } fclose($myfile);