Compare commits

..

No commits in common. "a4d34775c5c9c0fd6b93f50b2212d897920284d0" and "3202658b7898cfc6ef13de42642344b3f3eaba43" have entirely different histories.

50 changed files with 147 additions and 95 deletions

View file

@ -11,11 +11,24 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
$oldcatname=""; $oldcatname="";
while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
$data[0]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[0]);
// PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES! // PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
for ($i = 0; $i < count($data); $i++) { $data[0] = htmlspecialchars($data[0]);
$data[$i] = htmlspecialchars($data[$i]); $data[1] = htmlspecialchars($data[1]);
$data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[$i]); $data[2] = htmlspecialchars($data[2]);
} $data[3] = htmlspecialchars($data[3]);
$data[4] = htmlspecialchars($data[4]);
$data[5] = htmlspecialchars($data[5]);
$data[6] = htmlspecialchars($data[6]);
$data[7] = htmlspecialchars($data[7]);
$data[1]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[1]);
$data[2]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[2]);
$data[3]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[3]);
$data[4]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[4]);
$data[5]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[5]);
$data[6]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[6]);
$data[7]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[7]);
$num = count($data); $num = count($data);
//echo "<p>" . $data[1] . "</p>"; //echo "<p>" . $data[1] . "</p>";

View file

@ -11,11 +11,23 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
//PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES! //PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
for ($i = 0; $i < count($data); $i++) { $data[0] = htmlspecialchars($data[0]);
$data[$i] = htmlspecialchars($data[$i]); $data[1] = htmlspecialchars($data[1]);
$data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[$i]); $data[2] = htmlspecialchars($data[2]);
} $data[3] = htmlspecialchars($data[3]);
$data[4] = htmlspecialchars($data[4]);
$data[5] = htmlspecialchars($data[5]);
$data[6] = htmlspecialchars($data[6]);
$data[7] = htmlspecialchars($data[7]);
$data[0]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[0]);
$data[1]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[1]);
$data[2]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[2]);
$data[3]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[3]);
$data[4]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[4]);
$data[5]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[5]);
$data[6]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[6]);
$data[7]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[7]);
$row++; $row++;
$num = count($data); $num = count($data);
//echo "<p>" . $data[1] . "</p>"; //echo "<p>" . $data[1] . "</p>";
@ -105,47 +117,11 @@ echo "<center><p>" . $rowcount . " Result(s) found.</p></center>";
// strtolower({key}) -> logo = /img/{value}
$logomap = array(
"archive" => "archive.webp",
"collaboration" => "collaboration.webp",
"communities" => "community.webp",
"community" => "community.webp",
"exchanges" => "haveno.webp",
"fediverse" => "fediverse.webp",
"forum" => "dread.webp",
"forums" => "dread.webp",
"indexes" => "index.webp",
"infos and indexes" => "info.webp",
"libraries" => "library.webp",
"mail" => "clawsmail.webp",
"markets" => "market.webp",
"monero node" => "monero.webp",
"news" => "news.webp",
"password generator" => "passwordgen.webp",
"pastebins" => "pastebins.webp",
"privacy front-ends" => "opensource.webp",
"radios" => "radio.webp",
"sms" => "sms.webp",
"search engine" => "searxng.svg",
"simplex chatrooms" => "simplex.webp",
"social" => "social.webp",
"tools" => "tools.webp",
"torrents" => "torrents.webp",
"translation" => "translation.webp",
"vpns" => "openvpn.webp",
"vps" => "linux.webp",
);
$classmap = array(
"monero node" => "xmr",
"simplex chatrooms" => "sxc",
);
function DisplayCategories($instancename, $path) { function DisplayCategories($instancename, $path) {
global $logomap, $classmap;
$resultcount=0; $resultcount=0;
$row = 1; $row = 1;
//echo $instancename; //echo $instancename;
@ -161,34 +137,102 @@ function DisplayCategories($instancename, $path) {
echo "<center><table>\n\n"; //begin html table formatting echo "<center><table>\n\n"; //begin html table formatting
if (($handle = fopen($csvfile, "r")) !== FALSE) { if (($handle = fopen($csvfile, "r")) !== FALSE) {
$oldcatname=""; $oldcatname="";
while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
$num = count($data); $num = count($data);
$row++; $row++;
if ( $row == "2") { if ( $row == "2") {
echo '<p> '; echo "<p> | ";
continue; }else{
}
//PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES! //PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
for ($i = 0; $i < count($data); $i++) { $data[0] = htmlspecialchars($data[0]);
$data[$i] = htmlspecialchars($data[$i]); $data[1] = htmlspecialchars($data[1]);
$data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[$i]); $data[2] = htmlspecialchars($data[2]);
} $data[3] = htmlspecialchars($data[3]);
$data[4] = htmlspecialchars($data[4]);
$data[5] = htmlspecialchars($data[5]);
$data[6] = htmlspecialchars($data[6]);
$data[7] = htmlspecialchars($data[7]);
$data[0]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[0]);
$data[1]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[1]);
$data[2]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[2]);
$data[3]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[3]);
$data[4]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[4]);
$data[5]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[5]);
$data[6]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[6]);
$data[7]=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[7]);
$resultcount++; $resultcount++;
for ($c=0; $c < $num; $c++) { // iterate over each row
if ( $c == "1" ){
if (strtolower($oldcatname) != strtolower($data[1])){ if (strtolower($oldcatname) != strtolower($data[1])){
if( str_contains(strtolower($data[1]),'monero' )){
echo '<img class="caticon" src="img/monero.png">' . '<a class="xmr" href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | '; // display the category as its the first row with this new category
$oldcatname=$data[1];
}elseif( str_contains(strtolower($data[1]),'simplex' )){
echo '<img class="caticon" src="img/simplex.png">' . '<a class="sxc" 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 '<a class="cata ' . ($classmap[strtolower($data[1])] ?? '') . '" href="index.php?query=' . $data[1] . '">' . '<img class="caticon" src="img/' . ($logomap[strtolower($data[1])] ?? 'empty.png') . '"></img>'. $data[1] . '</a> '; }elseif (str_contains(strtolower($data[1]), 'sms')){
$oldcatname = strtolower($data[1]); echo '<img class="caticon" src="img/sms.ico">' . '<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];
}elseif (str_contains(strtolower($data[1]), 'games')){
echo '<img class="caticon" src="img/games.ico">' . '<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];
}elseif (str_contains(strtolower($data[1]), 'vps')){
echo '<img class="caticon" src="img/linux.ico" >' . '<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];
}elseif (str_contains(strtolower($data[1]), 'torproject')){
echo '<img class="caticon" src="img/tor_browser.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'privacy front-ends')){
echo '<img class="caticon" src="img/opensource.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'vpns')){
echo '<img class="caticon" src="img/openvpn.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'fediverse')){
echo '<img class="caticon" src="img/xmpp.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'torrents')){
echo '<img class="caticon" src="img/torrents.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'forums')){
echo '<img class="caticon" src="img/dread.png">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'mail')){
echo '<img class="caticon" src="img/clawsmail.png">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'radio')){
echo '<img class="caticon" src="img/radio.ico">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'search engine')){
echo '<img class="caticon" src="img/searxng.svg">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}elseif (str_contains(strtolower($data[1]), 'exchanges')){
echo '<img class="caticon" src="img/haveno.png">' . '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | ';
$oldcatname=$data[1];
}else{
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 '<a class="cata sensitivelink" href="index.php?query=.&sensitive=1"><img class="caticon" src="img/showall.webp"></img>Display All Links</a></p>'; }
}
}
}
echo '<a class="sensitivelink" href="index.php?query=.&sensitive=1">Display All Links</a> |</p>';
fclose($handle); fclose($handle);
} }
} }
} }
@ -209,3 +253,4 @@ function DisplayCategories($instancename, $path) {
<h1><a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern"><img src="img/lantern project large.png" class="projectbanner"></a></h1> <h1><a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern"><img src="img/lantern project large.png" class="projectbanner"></a></h1>
<p><u>Update Frequency:</u> every 3 hours</p> </br> <p><u>Update Frequency:</u> every 3 hours</p> </br>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

BIN
www/img/clawsmail.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
www/img/dread.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
www/img/games.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
www/img/haveno.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 962 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 90 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

BIN
www/img/linux.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 956 B

BIN
www/img/monero.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

BIN
www/img/opensource.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

BIN
www/img/openvpn.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
www/img/radio.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 826 B

BIN
www/img/simplex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
www/img/sms.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,018 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

BIN
www/img/tor_browser.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
www/img/torrents.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

BIN
www/img/xmpp.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -9,24 +9,17 @@
font-family: 'Source Code Pro', monospace; font-family: 'Source Code Pro', monospace;
} }
.caticon{ .caticon{
height: 22px; height: 13px;
} }
.cata {
display: inline-flex;
align-items: center;
text-align: center;
padding: 0px;
}
.width-class{ .width-class{
width: 100%; width: 100%;
object-fit: contain; object-fit: contain;
align: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.input-class{ .input-class{
margin: 0 20% 0 20%; margin: 0 20% 0 20%;
} }
@ -69,6 +62,7 @@
.imgRz{ .imgRz{
width: 100%; width: 100%;
height: 50%; height: 50%;
align: center;
justify-content: center; justify-content: center;
-webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */ -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
filter: grayscale(0%) brightness(100%) contrast(100%); filter: grayscale(0%) brightness(100%) contrast(100%);