Update index.php

This commit is contained in:
awesomeuser 2023-08-02 21:08:44 +00:00
parent 8b4bbd6373
commit 525f26f349

View file

@ -67,13 +67,8 @@
</style>
</head>
<body>
<script>
function logSignature() {
alert(document.getElementById("signature-input"));
}
</script>
<!-- header and options for making posts -->
<div class="post">
<h1><span style="color: var(--accent);">furp</span>social</h1>
@ -83,11 +78,22 @@
<input type="submit" value="Farp it">
</form>
<span style="font-size: 12px; color: grey;">Privacy Policy: The only data collected by furpsocial is the contents of your posts (signature and body text). This information is stored in our secure databases which are wiped of all post data every week. This data is only used to accomodate furp as a social media platform.</span>
<span style="font-size: 12px; color: grey;">Privacy Policy: The only data collected by furpsocial server-side is the contents of your posts (signature and body text). This information is stored in our secure databases which are wiped of all post data every week. This data is only used to accomodate furpsocial as a social media platform. Client-side, furpsocial stores your most recently used signature as a cookie.</span>
</div>
<div class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</div>
<!-- save most recent signature as a cookie QOL -->
<script>
document.getElementById("signature-input").defaultValue = "cookie";
function logSignature() {
// save signature to cookie
alert(document.getElementById("signature-input").innerHTML);
}
</script>
<!-- feed display -->
<?php
// make sure the file, well, exists
$myfile = fopen("posts.txt", "a");