Update index.php
This commit is contained in:
parent
a26be8b276
commit
6cf695be2e
1 changed files with 4 additions and 6 deletions
10
index.php
10
index.php
|
@ -191,11 +191,6 @@
|
|||
<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
|
||||
|
@ -208,7 +203,10 @@
|
|||
$myfile = fopen("posts.txt", "r") or die("Unable to open file!");
|
||||
if ($myfile) {
|
||||
while (($line = fgets($myfile)) !== false) {
|
||||
echo $line;
|
||||
echo "<div class='post'><h2>" . $line . "</h2>";
|
||||
echo "<i>" . fgets($myfile) . "</i>";
|
||||
echo "<div>" . fgets($myfile) . "</div></div>";
|
||||
// <canvas style="width: 100%;" width="128" height="64"></canvas>
|
||||
}
|
||||
|
||||
fclose($myfile);
|
||||
|
|
Reference in a new issue