first commit

This commit is contained in:
root 2024-12-08 00:15:49 +01:00
commit f2d5c9acc9
20 changed files with 793 additions and 0 deletions

220
www/index.php Normal file
View file

@ -0,0 +1,220 @@
<!DOCTYPE html>
<html>
<body>
<head>
<title>Onion Uptime Checker</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" href="/favicon.ico">
</head>
<center>
<?php
require("/srv/onion-uptime/www/links.php");
?>
<h1>Onion Uptime Checker (WIP)</h1>
<h2>Darknet Websites (Last update: May 2024)</h3>
<p><u>Update Frequency:</u> every 3 hours</p>
<p>(strictly for educational puposes, we do not own any of the services below)</p>
<h3>Markets</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Markets.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>";
?>
<h3>Exchanges</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Exchanges.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>";
?>
<h3>Forums and Imageboards</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Forums_and_Imageboards.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>";
?>
<h3>Infos and Indexes</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Infos_and_indexes.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>";
?>
<h3>News</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/News.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>";
?>
<h3>Search Engines</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Search_Engines.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>";
?>
<h3>Dead Markets</h3>
<?php
echo "<center><table>\n\n";
// Open a file
$file = fopen("links/Dead_Markets.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>";
?>
</center>
</body>
</html>