diff --git a/www/footer.php b/www/footer.php
index 3411e03..f72aa2d 100644
--- a/www/footer.php
+++ b/www/footer.php
@@ -11,11 +11,24 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
$oldcatname="";
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!
- for ($i = 0; $i < count($data); $i++) {
- $data[$i] = htmlspecialchars($data[$i]);
- $data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[$i]);
- }
+ $data[0] = htmlspecialchars($data[0]);
+ $data[1] = htmlspecialchars($data[1]);
+ $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);
//echo "
" . $data[1] . "
";
diff --git a/www/header.php b/www/header.php
index 0073bf1..52b819b 100644
--- a/www/header.php
+++ b/www/header.php
@@ -11,11 +11,23 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
//PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
- for ($i = 0; $i < count($data); $i++) {
- $data[$i] = htmlspecialchars($data[$i]);
- $data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[$i]);
- }
+ $data[0] = htmlspecialchars($data[0]);
+ $data[1] = htmlspecialchars($data[1]);
+ $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++;
$num = count($data);
//echo "" . $data[1] . "
";
@@ -105,91 +117,123 @@ echo "" . $rowcount . " Result(s) found.
";
-// 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) {
- global $logomap, $classmap;
+$resultcount=0;
+$row = 1;
+//echo $instancename;
+//$csvfilenames = "verified.csv unverified.csv";
+$csvfilenames = "verified.csv";
+$csvfilenames = explode(' ', $csvfilenames);
- $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 "\n\n"; //begin html table formatting
+if (($handle = fopen($csvfile, "r")) !== FALSE) {
- foreach ($csvfilenames as $csvfilename) {
- //echo $csvfilename;
- $csvfile = $path . $csvfilename;
- //echo $csvfile;
- //echo "test";
- echo "\n\n"; //begin html table formatting
- if (($handle = fopen($csvfile, "r")) !== FALSE) {
- $oldcatname = "";
- while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
- $num = count($data);
- $row++;
+ $oldcatname="";
+ while (($data = fgetcsv($handle, 1000, ",",'"','\\')) !== FALSE) {
+ $num = count($data);
+ $row++;
- if ( $row == "2") {
- echo ' ';
- continue;
- }
-
- //PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
- for ($i = 0; $i < count($data); $i++) {
- $data[$i] = htmlspecialchars($data[$i]);
- $data[$i] = preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $data[$i]);
- }
+ if ( $row == "2") {
+ echo "
| ";
+ }else{
+ //PREVENT ALL MALICIOUS PHP PAYLOADS FROM BEING EXECUTED FROM CSV FILES!
+ $data[0] = htmlspecialchars($data[0]);
+ $data[1] = htmlspecialchars($data[1]);
+ $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]);
- $resultcount++;
- if (strtolower($oldcatname) != strtolower($data[1])){
-
- echo '' . '
'. $data[1] . ' ';
- $oldcatname = strtolower($data[1]);
- }
- }
- echo '
Display All Links
';
- fclose($handle);
+ $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++;
+ for ($c=0; $c < $num; $c++) { // iterate over each row
+ if ( $c == "1" ){
+
+ if (strtolower($oldcatname) != strtolower($data[1])){
+ if( str_contains(strtolower($data[1]),'monero' )){
+ echo '
' . '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+ }elseif( str_contains(strtolower($data[1]),'simplex' )){
+ echo '
' . '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+
+ }elseif (str_contains(strtolower($data[1]), 'sms')){
+ echo '
' . '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+
+ }elseif (str_contains(strtolower($data[1]), 'games')){
+ echo '
' . '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'vps')){
+ echo '
' . '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+
+ }elseif (str_contains(strtolower($data[1]), 'torproject')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'privacy front-ends')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'vpns')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'fediverse')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'torrents')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'forums')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'mail')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'radio')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'search engine')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }elseif (str_contains(strtolower($data[1]), 'exchanges')){
+ echo '
' . '' . $data[1] . ' | ';
+ $oldcatname=$data[1];
+ }else{
+ echo '' . $data[1] . ' | '; // display the category as its the first row with this new category
+ $oldcatname=$data[1];
+ }
+ }
+ }
+ }
}
}
+ echo 'Display All Links |';
+ fclose($handle);
+}
+
+}
}
$min_length = 1;
@@ -209,3 +253,4 @@ function DisplayCategories($instancename, $path) {

Update Frequency: every 3 hours
+
diff --git a/www/img/archive.webp b/www/img/archive.webp
deleted file mode 100644
index 7c14c96..0000000
Binary files a/www/img/archive.webp and /dev/null differ
diff --git a/www/img/clawsmail.png b/www/img/clawsmail.png
new file mode 100644
index 0000000..dcb0127
Binary files /dev/null and b/www/img/clawsmail.png differ
diff --git a/www/img/clawsmail.webp b/www/img/clawsmail.webp
deleted file mode 100644
index 3ddf96d..0000000
Binary files a/www/img/clawsmail.webp and /dev/null differ
diff --git a/www/img/collaboration.webp b/www/img/collaboration.webp
deleted file mode 100644
index 7db8b28..0000000
Binary files a/www/img/collaboration.webp and /dev/null differ
diff --git a/www/img/community.webp b/www/img/community.webp
deleted file mode 100644
index 635cfb3..0000000
Binary files a/www/img/community.webp and /dev/null differ
diff --git a/www/img/dread.png b/www/img/dread.png
new file mode 100644
index 0000000..fe253ea
Binary files /dev/null and b/www/img/dread.png differ
diff --git a/www/img/dread.webp b/www/img/dread.webp
deleted file mode 100644
index 16491f6..0000000
Binary files a/www/img/dread.webp and /dev/null differ
diff --git a/www/img/empty.png b/www/img/empty.png
deleted file mode 100644
index 0858c19..0000000
Binary files a/www/img/empty.png and /dev/null differ
diff --git a/www/img/fediverse.webp b/www/img/fediverse.webp
deleted file mode 100644
index 337de52..0000000
Binary files a/www/img/fediverse.webp and /dev/null differ
diff --git a/www/img/games.ico b/www/img/games.ico
new file mode 100644
index 0000000..f0a883e
Binary files /dev/null and b/www/img/games.ico differ
diff --git a/www/img/games.webp b/www/img/games.webp
deleted file mode 100644
index df9e781..0000000
Binary files a/www/img/games.webp and /dev/null differ
diff --git a/www/img/haveno.png b/www/img/haveno.png
new file mode 100644
index 0000000..c031b77
Binary files /dev/null and b/www/img/haveno.png differ
diff --git a/www/img/haveno.webp b/www/img/haveno.webp
deleted file mode 100644
index 3323c4f..0000000
Binary files a/www/img/haveno.webp and /dev/null differ
diff --git a/www/img/index.webp b/www/img/index.webp
deleted file mode 100644
index 34f7731..0000000
Binary files a/www/img/index.webp and /dev/null differ
diff --git a/www/img/info.webp b/www/img/info.webp
deleted file mode 100644
index b465e2d..0000000
Binary files a/www/img/info.webp and /dev/null differ
diff --git a/www/img/lantern project banner.png b/www/img/lantern project banner.png
index ec3afa7..c653503 100644
Binary files a/www/img/lantern project banner.png and b/www/img/lantern project banner.png differ
diff --git a/www/img/lantern project large.png b/www/img/lantern project large.png
index b562aad..1dafb45 100644
Binary files a/www/img/lantern project large.png and b/www/img/lantern project large.png differ
diff --git a/www/img/library.webp b/www/img/library.webp
deleted file mode 100644
index 6dcf1d7..0000000
Binary files a/www/img/library.webp and /dev/null differ
diff --git a/www/img/linux.ico b/www/img/linux.ico
new file mode 100644
index 0000000..582561a
Binary files /dev/null and b/www/img/linux.ico differ
diff --git a/www/img/linux.webp b/www/img/linux.webp
deleted file mode 100644
index f2375f8..0000000
Binary files a/www/img/linux.webp and /dev/null differ
diff --git a/www/img/market.webp b/www/img/market.webp
deleted file mode 100644
index 0ebfae3..0000000
Binary files a/www/img/market.webp and /dev/null differ
diff --git a/www/img/monero.png b/www/img/monero.png
new file mode 100644
index 0000000..ea0d863
Binary files /dev/null and b/www/img/monero.png differ
diff --git a/www/img/monero.webp b/www/img/monero.webp
deleted file mode 100644
index 390f4e2..0000000
Binary files a/www/img/monero.webp and /dev/null differ
diff --git a/www/img/news.webp b/www/img/news.webp
deleted file mode 100644
index 35187ed..0000000
Binary files a/www/img/news.webp and /dev/null differ
diff --git a/www/img/opensource.ico b/www/img/opensource.ico
new file mode 100644
index 0000000..1808bfd
Binary files /dev/null and b/www/img/opensource.ico differ
diff --git a/www/img/opensource.webp b/www/img/opensource.webp
deleted file mode 100644
index 652278b..0000000
Binary files a/www/img/opensource.webp and /dev/null differ
diff --git a/www/img/openvpn.ico b/www/img/openvpn.ico
new file mode 100644
index 0000000..5df666f
Binary files /dev/null and b/www/img/openvpn.ico differ
diff --git a/www/img/openvpn.webp b/www/img/openvpn.webp
deleted file mode 100644
index 6167e89..0000000
Binary files a/www/img/openvpn.webp and /dev/null differ
diff --git a/www/img/passwordgen.webp b/www/img/passwordgen.webp
deleted file mode 100644
index 5e78b2a..0000000
Binary files a/www/img/passwordgen.webp and /dev/null differ
diff --git a/www/img/pastebins.webp b/www/img/pastebins.webp
deleted file mode 100644
index 49d7eec..0000000
Binary files a/www/img/pastebins.webp and /dev/null differ
diff --git a/www/img/radio.ico b/www/img/radio.ico
new file mode 100644
index 0000000..792a95c
Binary files /dev/null and b/www/img/radio.ico differ
diff --git a/www/img/radio.webp b/www/img/radio.webp
deleted file mode 100644
index 56feb7d..0000000
Binary files a/www/img/radio.webp and /dev/null differ
diff --git a/www/img/showall.webp b/www/img/showall.webp
deleted file mode 100644
index ae15260..0000000
Binary files a/www/img/showall.webp and /dev/null differ
diff --git a/www/img/simplex.png b/www/img/simplex.png
new file mode 100644
index 0000000..a1cf370
Binary files /dev/null and b/www/img/simplex.png differ
diff --git a/www/img/simplex.webp b/www/img/simplex.webp
deleted file mode 100644
index 541e68c..0000000
Binary files a/www/img/simplex.webp and /dev/null differ
diff --git a/www/img/sms.ico b/www/img/sms.ico
new file mode 100644
index 0000000..15ff283
Binary files /dev/null and b/www/img/sms.ico differ
diff --git a/www/img/sms.webp b/www/img/sms.webp
deleted file mode 100644
index e9a6ffb..0000000
Binary files a/www/img/sms.webp and /dev/null differ
diff --git a/www/img/social.webp b/www/img/social.webp
deleted file mode 100644
index ed62a1a..0000000
Binary files a/www/img/social.webp and /dev/null differ
diff --git a/www/img/tools.webp b/www/img/tools.webp
deleted file mode 100644
index beee35f..0000000
Binary files a/www/img/tools.webp and /dev/null differ
diff --git a/www/img/tor_browser.ico b/www/img/tor_browser.ico
new file mode 100644
index 0000000..98293b7
Binary files /dev/null and b/www/img/tor_browser.ico differ
diff --git a/www/img/tor_browser.webp b/www/img/tor_browser.webp
deleted file mode 100644
index 27efc2b..0000000
Binary files a/www/img/tor_browser.webp and /dev/null differ
diff --git a/www/img/torrents.ico b/www/img/torrents.ico
new file mode 100644
index 0000000..b7a5463
Binary files /dev/null and b/www/img/torrents.ico differ
diff --git a/www/img/torrents.webp b/www/img/torrents.webp
deleted file mode 100644
index 153eee2..0000000
Binary files a/www/img/torrents.webp and /dev/null differ
diff --git a/www/img/translation.webp b/www/img/translation.webp
deleted file mode 100644
index c11ed57..0000000
Binary files a/www/img/translation.webp and /dev/null differ
diff --git a/www/img/webring-participant.png b/www/img/webring-participant.png
index 8a2e8f0..636e7e1 100644
Binary files a/www/img/webring-participant.png and b/www/img/webring-participant.png differ
diff --git a/www/img/xmpp.ico b/www/img/xmpp.ico
new file mode 100644
index 0000000..a56a17d
Binary files /dev/null and b/www/img/xmpp.ico differ
diff --git a/www/img/xmpp.webp b/www/img/xmpp.webp
deleted file mode 100644
index b503809..0000000
Binary files a/www/img/xmpp.webp and /dev/null differ
diff --git a/www/style.css b/www/style.css
index 3007db6..aff42a3 100644
--- a/www/style.css
+++ b/www/style.css
@@ -9,24 +9,17 @@
font-family: 'Source Code Pro', monospace;
}
+
.caticon{
- height: 22px;
+ height: 13px;
}
-
-.cata {
- display: inline-flex;
- align-items: center;
- text-align: center;
- padding: 0px;
-}
-
.width-class{
width: 100%;
object-fit: contain;
- display: flex;
- flex-direction: column;
+ align: center;
+ display: flex;
+ flex-direction: column;
}
-
.input-class{
margin: 0 20% 0 20%;
}
@@ -67,9 +60,10 @@
.imgRz{
- width: 100%;
- height: 50%;
- justify-content: center;
+ width: 100%;
+ height: 50%;
+ align: center;
+ justify-content: center;
-webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
filter: grayscale(0%) brightness(100%) contrast(100%);
}