diff --git a/nginx.conf b/nginx.conf index 96e69fb..0273198 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,11 +3,19 @@ server { listen [::]:4443; server_name uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion; - root /srv/darknet-onion-webring/www/; - location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; - } - index index.php; + root /srv/darknet-onion-webring/www/; + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; + } + + index index.php; + + # optional read-only static php file without the searchbar, to display all links by default : + # + #location /index.php { + # return 404; + #} + # index static.php; } diff --git a/www/static.php b/www/static.php new file mode 100644 index 0000000..3ea91e5 --- /dev/null +++ b/www/static.php @@ -0,0 +1,82 @@ + + + +
+ +Search results for " . $query . " :
"; + echo nl2br("\n"); + echo nl2br("\n"); + //echo $verifiedcsvpath; + //echo nl2br("\n"); + //echo $unverifiedcsvpath; + if ($lines_v >= 2){ + echo 'Your verified.csv file is empty, check the documentation to know how to add links into it.
"; + } + if ($lines_uv >= 2){ + echo 'Your unverified.csv file is empty, please check the documentation to know how to add links into it.
"; + } + // 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 'Search query must be between '.$min_length . " and ".$max_length . " characters.
"; + // TODO list the available categories + } +?> + + +