diff --git a/todo.txt b/todo.txt deleted file mode 100644 index 5cf1f2d..0000000 --- a/todo.txt +++ /dev/null @@ -1,29 +0,0 @@ -DONE: -- install php8.2-fpm nginx -- make the nginx config - -create index.php -- in it, you must be able to display the contents of the csv file in an array https://stackoverflow.com/questions/1269562/how-to-create-an-array-from-a-csv-file-using-php-and-the-fgetcsv-function - -- create the status.csv file with this syntax: [URL;NAME;CATEGORY;DESCRIPTION;STATUS;] - -- csv file updater in python ? and triggered by a cronjob ? - https://docs.python.org/3/library/csv.html - https://stackoverflow.com/questions/1949318/checking-if-a-website-is-up-via-python - https://stackoverflow.com/questions/63970912/urllib-request-with-socks5-proxy - --from python, sort the CSV files based on the score value - --make the css to be dark background and light text (copy it from nowhere) --make a header php page, containing the links ot the other status pages --make a monero node checker page, --make a nowhere dot moe service checker - --upload the sourcecode to gitea - -> create README.md -TODO: - -> mention the sourcecode in the header -- check for status 200s otherwise it might believe that a 502 is a valid status code -- - - diff --git a/www/header.php b/www/header.php index a08a96a..b6044c6 100644 --- a/www/header.php +++ b/www/header.php @@ -5,3 +5,70 @@

Update Frequency: every 3 hours


+ +\n\n"; //begin html table formatting +if (($handle = fopen($csvfile, "r")) !== FALSE) { + + + while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { + $num = count($data); + //echo "

" . $data[1] . "

"; + //echo "

$num fields in line $row:

\n"; + $row++; + //echo $row; + + + if ( $row == "2") { + echo ""; + }else{ + for ($c=0; $c < $num; $c++) { + echo ""; // beging html table 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" ){ + echo " \n"; // display the score and close the third cell + } + //if ($c == 2){ + //} + } + } + echo ""; // end html table row + } + echo "\n
Name Score
" . ''; // display the link + echo $data[0] . ""; // display the link title and close the a href and first cell, open the second cell + echo $data[3] . ""; // display the status and close the second cell, open the third cell + echo $data[2] . "
"; + fclose($handle); +} + +} + + +function DisplayCSVold($csvfile) { +echo "
\n\n"; + + // Open a file + $file = fopen($csvfile, "r"); + + // Fetching data from csv file row by row + while (($data = fgetcsv($file)) !== false) { + + // HTML tag for placing in row format + echo ""; + foreach ($data as $i) { + echo ""; + } + echo " \n"; + } + + // Closing the file + fclose($file); + + echo "\n
" . htmlspecialchars($i) + . "
"; +} +?> diff --git a/www/index.php b/www/index.php index 43968a5..fd57dc5 100644 --- a/www/index.php +++ b/www/index.php @@ -22,83 +22,24 @@ require("header.php"); - \n\n"; - - // Open a file - $file = fopen("links/webring.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?>
- - +
+
+
+

Onion Webring Instances

+ +
+

Infos and Indexes

- \n\n"; - - // Open a file - $file = fopen("links/Infos_and_indexes.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?>
- - - + +
+

Search Engines

- \n\n"; - - // Open a file - $file = fopen("links/Search_Engines.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> + +
+
+
diff --git a/www/moneronodes.php b/www/moneronodes.php index 6bd0824..50500e4 100644 --- a/www/moneronodes.php +++ b/www/moneronodes.php @@ -14,36 +14,20 @@ -

Onion Uptime Checker (WIP)

Monero Nodes (Last update: September 2024)

Update Frequency: every 3 hours

+
+
+
+

Monero Nodes

+ +
+ +
+
-

Monero Nodes

- \n\n"; - - // Open a file - $file = fopen("links/MoneroNodes.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> These are non-sensitive services that you can use anonymously (meaning that there are no KYC procedures to use those services). The below links were originally taken from the awesome kycnot.me. I recommend accessing those services via Tor [1] (including accessing VPSes via SSH via Tor aswell [2]), and to pay for them using monero [3].

(This page is strictly for educational purposes, we don't own any of the services below.)

+
+
-

Exchanges

- \n\n"; - - // Open a file - $file = fopen("links/kycnotme_exchanges.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> +
+

Exchanges

+ +
+ +
+

SMS

+ +
+
+

VPNs

+ +
+
+

VPS

+ +
-

SMS

- \n\n"; - - // Open a file - $file = fopen("links/kycnotme_sms.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> +
+

Other

+ +
- - -

VPNs

- \n\n"; - - // Open a file - $file = fopen("links/kycnotme_vpns.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - - -

VPS

- \n\n"; - - // Open a file - $file = fopen("links/kycnotme_vps.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - - - -

Other

- \n\n"; - - // Open a file - $file = fopen("links/kycnotme_other.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> +
+
-

Onion Uptime Checker (WIP)

Nowhere Infrastructure (last update: December 2024)

Update Frequency: every 3 hours

+
+
+
+

Nowhere Services

+ +
+
+
+ - \n\n"; - - // Open a file - $file = fopen("links/Nowhere.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> diff --git a/www/sensitive.php b/www/sensitive.php index c10aa34..0f8e781 100644 --- a/www/sensitive.php +++ b/www/sensitive.php @@ -21,141 +21,39 @@ require("header.php");

(This page is strictly for educational puposes, we do not own any of the services below)

+
+
+

Markets

- \n\n"; - - // Open a file - $file = fopen("links/Markets.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - - + +
+

Exchanges

- \n\n"; - - // Open a file - $file = fopen("links/Exchanges.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - + +
+

Forums and Imageboards

- \n\n"; - - // Open a file - $file = fopen("links/Forums_and_Imageboards.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - + +
+

News

- \n\n"; - - // Open a file - $file = fopen("links/News.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> - - - + +
+

Dead Markets

- \n\n"; - - // Open a file - $file = fopen("links/Dead_Markets.csv", "r"); - - // Fetching data from csv file row by row - while (($data = fgetcsv($file)) !== false) { - - // HTML tag for placing in row format - echo ""; - foreach ($data as $i) { - echo ""; - } - echo " \n"; - } - - // Closing the file - fclose($file); - - echo "\n
" . htmlspecialchars($i) - . "
"; - ?> + +
+
+
+ diff --git a/www/style.css b/www/style.css index c7b8b68..d1b9fe5 100644 --- a/www/style.css +++ b/www/style.css @@ -31,6 +31,9 @@ body{ flex-direction: column; align-items: left; justify-content: left; + + margin: 0; + padding: 1rem; } .onion{ @@ -136,21 +139,41 @@ body{ justify-content: center;*/ } -.container{ +.container { + display: flex; + flex-wrap: wrap; + gap: 1rem; +} +/*.container{ display: flex; flex-direction: row; - /*align-items: center;*/ padding: 2px 5px 2px 2px; justify-content: left; -} +}*/ -.column{ +/*.column{ display: flex; flex-direction: column; padding: 5px 10px 5px 5px; font-size: 18px; +}*/ + +.column { + padding: 1rem; + border-radius: 8px; + /*background-color: hsl(240, 62%, 90%);*/ + flex: 1; } + +@media (max-width: 1024px) { + .column { + /*width: 100%;*/ + flex: auto; + } +} + + .column:nth-child(1){ border-top-left-radius: 5px; border-bottom-left-radius: 5px; @@ -211,14 +234,13 @@ img{ filter: invert(1); } -@media screen and (max-width: 1000px) { +/*@media screen and (max-width: 1000px) { .container{ display: flex; flex-direction: column; - /*align-items: center;*/ padding: 2px 5px 2px 2px; justify-content: left; } -} +}*/