whoops!
This commit is contained in:
parent
31b7aa72ed
commit
1ea78bcaac
1 changed files with 6 additions and 6 deletions
12
index.php
12
index.php
|
@ -177,6 +177,12 @@
|
|||
<h1 class="feed-header">Global Feed</h1>
|
||||
<span class="post" id="refresh" onclick="window.location.href = 'index.php'">refresh feed</span>
|
||||
|
||||
<div class='post'>
|
||||
<h2>name</h2>
|
||||
<i>UTC date</i>
|
||||
<canvas style="width: 100%;" width="128" height="64"></canvas>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// ensure the file exists before attempting to read from it
|
||||
if (!file_exists("posts.txt")) {
|
||||
|
@ -184,12 +190,6 @@
|
|||
fclose($myfile);
|
||||
}
|
||||
|
||||
<div class='post'>
|
||||
<h2>name</h2>
|
||||
<i>UTC date</i>
|
||||
<canvas style="width: 100%;" width="128" height="64"></canvas>
|
||||
</div>
|
||||
|
||||
// show content
|
||||
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
||||
if ($myfile) {
|
||||
|
|
Reference in a new issue