From ce16b5e7566060d6ab6c7dd00e9a138c5c1f8aba Mon Sep 17 00:00:00 2001 From: awesomeuser Date: Tue, 1 Aug 2023 22:41:32 +0000 Subject: [PATCH] ok cool --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 2f3633c..91dbda8 100644 --- a/index.php +++ b/index.php @@ -77,9 +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 H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); + fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [" . date("m/d/Y") . " " . date("H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); } else { - fwrite($myfile, htmlspecialchars("anon [" . date("m/d/Y H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); + fwrite($myfile, htmlspecialchars("anon [" . date("m/d/Y") . " " . date("H:i:s") . "] " . htmlspecialchars($_POST["body"]) . "
"); } fclose($myfile);