Update index.php

This commit is contained in:
awesomeuser 2023-08-01 22:46:39 +00:00
parent 3ab0f6d2f4
commit f0121d78da

View file

@ -33,6 +33,7 @@
box-shadow: 0px 0px 10px gray; box-shadow: 0px 0px 10px gray;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
margin-bottom: 10px;
} }
.post h1 { .post h1 {
@ -58,8 +59,6 @@
<div class="post"> <div class="post">
<h1><span style="color: var(--accent);">furp</span>social</h1> <h1><span style="color: var(--accent);">furp</span>social</h1>
<hr>
<form method="post"> <form method="post">
<textarea id="body-input" name="body"></textarea> <textarea id="body-input" name="body"></textarea>
@ -77,7 +76,7 @@
$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 (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) { if (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [UTC " . date("m/d/Y") . /*" " . date("H:i:s") .*/ "] " . htmlspecialchars($_POST["body"]) . "<br>"); fwrite($myfile, htmlspecialchars($_POST["signature"]) . " [UTC " . date("m/d/Y") . " " . /*date("h:i:sa") .*/ "] " . htmlspecialchars($_POST["body"]) . "<br>");
} else { } else {
} }