this works now
This commit is contained in:
parent
8514c2d45b
commit
4877a6488e
1 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>furpSocial</title>
|
<title>furpsocial</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
|
@ -42,10 +42,10 @@
|
||||||
if (!is_null($_POST["body"]) && strlen($_POST["body"]) != 0) {
|
if (!is_null($_POST["body"]) && strlen($_POST["body"]) != 0) {
|
||||||
$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 (!is_null($_POST["signature"]) && strlen($_POST["signature"]) != 0) {
|
||||||
fwrite($myfile, "anon: " . htmlspecialchars($_POST["body"]) . "<br>");
|
|
||||||
} else {
|
|
||||||
fwrite($myfile, htmlspecialchars($_POST["signature"]) . ": " . htmlspecialchars($_POST["body"]) . "<br>");
|
fwrite($myfile, htmlspecialchars($_POST["signature"]) . ": " . htmlspecialchars($_POST["body"]) . "<br>");
|
||||||
|
} else {
|
||||||
|
fwrite($myfile, "anon: " . htmlspecialchars($_POST["body"]) . "<br>");
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose($myfile);
|
fclose($myfile);
|
||||||
|
|
Reference in a new issue