Update index.php

This commit is contained in:
awesomeuser 2023-08-01 22:04:17 +00:00
parent c6e4e9ef08
commit 8514c2d45b

View file

@ -43,9 +43,9 @@
$myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)"); $myfile = fopen("posts.txt", "a") or die("Unable to open file! (a)");
if (false) { if (false) {
fwrite($myfile, htmlspecialchars($_POST["signature"]) . ": " . htmlspecialchars($_POST["body"]) . "<br>");
} else {
fwrite($myfile, "anon: " . htmlspecialchars($_POST["body"]) . "<br>"); fwrite($myfile, "anon: " . htmlspecialchars($_POST["body"]) . "<br>");
} else {
fwrite($myfile, htmlspecialchars($_POST["signature"]) . ": " . htmlspecialchars($_POST["body"]) . "<br>");
} }
fclose($myfile); fclose($myfile);