lots of changes, cleaned up the PHP code

This commit is contained in:
root 2024-12-29 17:38:56 +01:00
parent 02a68bd648
commit def88e90f5
8 changed files with 173 additions and 407 deletions

View file

@ -14,36 +14,21 @@
<?php
require("header.php");
?>
<h1>Onion Uptime Checker (WIP)</h1>
<h3>Nowhere Infrastructure (last update: December 2024)</h3>
<p><u>Update Frequency:</u> every 3 hours</p>
<main>
<section class="container">
<div class="column">
<h3>Nowhere Services</h3>
<?php DisplayCSV("links/Nowhere.csv");?>
</div>
</section>
</main>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Nowhere.csv", "r");
// Fetching data from csv file row by row
while (($data = fgetcsv($file)) !== false) {
// HTML tag for placing in row format
echo "<tr>";
foreach ($data as $i) {
echo "<td>" . htmlspecialchars($i)
. "</td>";
}
echo "</tr> \n";
}
// Closing the file
fclose($file);
echo "\n</table></center>";
?>
<?php
require("webring.php");
?>