Update index.php

This commit is contained in:
awesomeuser 2023-08-04 16:11:52 +00:00
parent 97e39c0f9b
commit a785c57689

View file

@ -191,16 +191,16 @@
<h1 class="feed-header">Global Feed</h1> <h1 class="feed-header">Global Feed</h1>
<span class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</span> <span class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</span>
<div class='post'> <!--<div class='post'>
<h2>name</h2> <h2>name</h2>
<i>UTC date</i> <i>UTC date</i>
<canvas style="width: 100%;" width="128" height="64"></canvas> <canvas style="width: 100%;" width="128" height="64"></canvas>
</div> </div>-->
<?php <?php
// ensure the file exists before attempting to read from it // ensure the file exists before attempting to read from it
if (!file_exists("posts.txt")) { if (!file_exists("posts.txt")) {
$myfile = fopen("posts.txt", "a"); $myfile = fopen("posts.txt", "w");
fclose($myfile); fclose($myfile);
} }