From 4649d5b54631af847bb3c71e9e702ead68cfbe57 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Mon, 6 Oct 2025 17:57:29 +0100 Subject: [PATCH] Update search results. --- cgi-bin/searchapi.cgi | 3 ++- html/search.shtml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cgi-bin/searchapi.cgi b/cgi-bin/searchapi.cgi index 52e13fc..0e1957d 100755 --- a/cgi-bin/searchapi.cgi +++ b/cgi-bin/searchapi.cgi @@ -1,7 +1,8 @@ #!/bin/bash # Configuration. -STORAGE_PREFIX="/storage/md0" +#STORAGE_PREFIX="/storage/md0" +STORAGE_PREFIX="/data/mirrors" LOCATE_DB="/tmp/mirrors.db" DEF_RESULTS=500 MAX_RESULTS=3000 diff --git a/html/search.shtml b/html/search.shtml index 9c58d5a..3a2ea77 100644 --- a/html/search.shtml +++ b/html/search.shtml @@ -84,7 +84,7 @@ $type = strtok ($result_line, " "); $entry = strtok ("\0"); if ($type == "f" || $type == "l" || $type == "o") { - print ('• ' . $entry . '
'); + print ('• ' . $entry . ' (Visit containing directory)
'); $count++; } elseif ($type == "d") { print ('• ' . $entry . ' (Repeat search in this directory)
');