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,3 @@
<p><a href="index.php">Darknet Onion Webring</a> - <a href="nonkycservices.php">Non-KYC Services</a> - <a href="sensitive.php">Sensitive Darknet Websites</a> - <a href="moneronodes.php">Monero Nodes</a> - <a href="nowhere.php">Nowhere Infrastructure</a> </p>
</br>
<h1><a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-onion-webring"><img src="img/webring-project-banner.png"></a></h1>
<p><u>Update Frequency:</u> every 3 hours</p> </br>
<?php
function DisplayCSVNEW($csvfile, $query) {
$resultcount=0;
@ -25,7 +17,7 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
if ( $row == "2") {
echo "<tr><td>Category</td> <td>Name</td> <td>Score</td> <td></td></tr>";
}else{
if (str_contains(strtolower($data[3]), strtolower($query)) or str_contains($data[2], strtolower($query)) or str_contains(strtolower($data[1]), strtolower($query))) {
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
echo "<tr>"; // begin html table row for that Category
@ -68,6 +60,70 @@ echo "<p>" . $resultcount . " Result(s) found.</p>";
function DisplayCategories($instancename, $path) {
$resultcount=0;
$row = 1;
//echo $instancename;
//$csvfilenames = "verified.csv unverified.csv";
$csvfilenames = "verified.csv";
$csvfilenames = explode(' ', $csvfilenames);
foreach ($csvfilenames as $csvfilename){
//echo $csvfilename;
$csvfile = $path . $csvfilename;
//echo $csvfile;
//echo "test";
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);
$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 the row is the first one (name url status score) only display (Name Status Score):
// display the contents of a csv row
if ( $c == "1" ){
if ($oldcatname != $data[1]){
echo '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | '; // display the category as its the first row with this new category
$oldcatname=$data[1];
}
}
}
}
}
}
echo "</p>";
fclose($handle);
}
//echo "<p>" . $resultcount . " Result(s) found.</p>";
}
}
function DisplayCSV($csvfile) {
$row = 1;
echo "<center><table>\n\n"; //begin html table formatting
@ -133,3 +189,27 @@ echo "<center><table>\n\n";
echo "\n</table></center>";
}
?>
<?php
$min_length = 1;
$max_length = 32;
$instance= $_SERVER['SERVER_NAME'];
$participantpath="participants/" . $instance . '/';
$verifiedcsvpath="participants/" . $instance . '/verified.csv';
$unverifiedcsvpath="participants/" . $instance . '/unverified.csv';
DisplayCategories($instance, $participantpath);
?>
<!--<p><a href="index.php">Darknet Onion Webring</a> - <a href="nonkycservices.php">Non-KYC Services</a> - <a href="sensitive.php">Sensitive Darknet Websites</a> - <a href="moneronodes.php">Monero Nodes</a> - <a href="nowhere.php">Nowhere Infrastructure</a> </p>-->
</br>
<h1><a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-onion-webring"><img src="img/lantern project banner.png"></a></h1>
<!--<h1><a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-onion-webring"><img src="img/logo-large.png"></a></h1>-->
<p><u>Update Frequency:</u> every 3 hours</p> </br>
<!--<img src="img/logo-large.png">-->