make it cool now

This commit is contained in:
root 2025-01-19 17:53:52 +01:00
parent f23a6e3ac8
commit 4d4567caf0
40 changed files with 504 additions and 611 deletions

View file

@ -1,11 +1,63 @@
<?php
function DisplayParticipants($csvfile) {
$resultcount=0;
$row = 1;
echo "<center><table>\n\n"; //begin html table formatting
if (($handle = fopen($csvfile, "r")) !== FALSE) {
$oldcatname="";
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
//echo "<p>" . $data[1] . "</p>";
//echo "<p> $num fields in line $row: <br /></p>\n";
$row++;
//echo $row;
if ( $row == "2") {
echo "<p>";
}else{
if (str_contains(strtolower($data[3]), strtolower($query)) or str_contains(strtolower($data[2]), strtolower($query)) or str_contains(strtolower($data[1]), strtolower($query))) {
$resultcount++;
for ($c=0; $c < $num; $c++) { // iterate over each row
if ($c == "1"){
if (!preg_match("~^(?:f|ht)tps?://~i", $data[1])) {
$webringp = "http://" . $data[1];
}else{
$webringp = $data[1];
}
echo '<a href="' . $webringp . '"><img src="participants/' . str_replace('http://', '', $data[1]) . '/banner.png"></a>'; // display the category as its the first row with this new category
$url = '';
}
}
}
}
}
echo "\n</p>";
fclose($handle);
}
echo "<p>" . $resultcount . " Result(s) found.</p>";
}
?>
</br>
<h3>Darknet Onion Webring Participants:</h3>
<h3>Webring Participants:</h3>
<p>
<a href="http://uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion"><img src="img/nowhere-banner.png" class="banner"></a>
<!-- add your website with your banner here -->
<!--<a href="http://uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion"><img src="img/banner.png" class="banner"></a> -->
<?php
$webringcsvpath = $participantpath . "webring-participants.csv";
//echo $webringcsvpath;
DisplayParticipants($webringcsvpath);
?>
</p>