mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
make it cool now
This commit is contained in:
parent
f23a6e3ac8
commit
4d4567caf0
40 changed files with 504 additions and 611 deletions
|
@ -3,45 +3,67 @@
|
|||
|
||||
<body>
|
||||
<head>
|
||||
<title>Darknet Onion Webring</title>
|
||||
<title>Darknet Lantern</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">
|
||||
<link rel="icon" href="/img/logo-favicon.png">
|
||||
</head>
|
||||
|
||||
|
||||
<center>
|
||||
<?php
|
||||
|
||||
<?php
|
||||
require("header.php");
|
||||
?>
|
||||
<p>The Darknet depends on peers (like you and me) to run their own lists of onion links for visibility, as search engines can't crawl onion websites like they do on the clearnet. This project is there to list people's lists of onion links so that you don't have to search those links yourself. </p></br>
|
||||
<p>The more people join the Darknet Onion Webring, the more visibility darknet websites will be able to have over time, just like how it would be on the clearnet while keeping the decentralisation and censorship-resistance intact. Let's make it happen.</p>
|
||||
|
||||
<form action="index.php" method="GET">
|
||||
<input type="text" name="query" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
$query = $_GET['query'];
|
||||
// gets value sent over search form
|
||||
|
||||
$min_length = 1;
|
||||
$max_length = 32;
|
||||
$instance= $_SERVER['SERVER_NAME'];
|
||||
$participantpath="participants/" . $instance . '/';
|
||||
$verifiedcsvpath="participants/" . $instance . '/verified.csv';
|
||||
$unverifiedcsvpath="participants/" . $instance . '/unverified.csv';
|
||||
if(strlen($query) >= $min_length and strlen($query) <= $max_length){ // if query length is more or equal minimum length then
|
||||
|
||||
$query = htmlspecialchars($query);
|
||||
// removes the risky characters
|
||||
// there needs to be regex checking, only allow [a-zA-Z0-9.:/]
|
||||
$query=preg_replace("/[^a-zA-Z0-9:\/.\ ]/", "", $query);
|
||||
|
||||
echo "<p>Search results for " . $query . " :</p>";
|
||||
echo nl2br("\n");
|
||||
echo nl2br("\n");
|
||||
//echo $verifiedcsvpath;
|
||||
//echo nl2br("\n");
|
||||
//echo $unverifiedcsvpath;
|
||||
echo "<h3><u>Verified Links:</u></h3>";
|
||||
echo nl2br("\n");
|
||||
DisplayCSVNEW($verifiedcsvpath,$query);
|
||||
echo "</br></br></br><h3><u>Unverified Links:</u></h3>";
|
||||
echo nl2br("\n");
|
||||
DisplayCSVNEW($unverifiedcsvpath,$query);
|
||||
// display the results of verified.csv
|
||||
// only display the results of verified.csv that matches with the search term
|
||||
// display the results of unverified.csv
|
||||
// only display the results of unverified.csv that matches with the search term
|
||||
|
||||
}
|
||||
else{ // if query length is less than minimum or more than maximum
|
||||
echo '</br></br><img src="img/logo-large.png"><p>Search query must be between '.$min_length . " and ".$max_length . " characters.</p>";
|
||||
// TODO list the available categories
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
require("webring.php");
|
||||
?>
|
||||
<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 DisplayCSV("links/Infos_and_indexes.csv");?>
|
||||
</div>
|
||||
|
||||
<div class="column">
|
||||
<h3>Search Engines</h3>
|
||||
<?php DisplayCSV("links/Search_Engines.csv");?>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
|
||||
</center>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue