mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
lots of changes, cleaned up the PHP code
This commit is contained in:
parent
02a68bd648
commit
def88e90f5
8 changed files with 173 additions and 407 deletions
|
@ -22,83 +22,24 @@ require("header.php");
|
|||
<?php
|
||||
require("webring.php");
|
||||
?>
|
||||
<?php
|
||||
echo "<center><table>\n\n";
|
||||
|
||||
// Open a file
|
||||
$file = fopen("links/webring.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>";
|
||||
?> </br>
|
||||
|
||||
|
||||
<main>
|
||||
<section class="container">
|
||||
<div class="column">
|
||||
<h3>Onion Webring Instances</h3>
|
||||
<?php DisplayCSV("links/webring.csv");?>
|
||||
</div>
|
||||
<div class="column">
|
||||
<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>";
|
||||
?> </br>
|
||||
|
||||
|
||||
|
||||
<?php DisplayCSV("links/Infos_and_indexes.csv");?>
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<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>";
|
||||
?>
|
||||
<?php DisplayCSV("links/Search_Engines.csv");?>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
|
||||
</center>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue