diff --git a/html/dark.css b/html/dark.css index 02fee74..77491a9 100644 --- a/html/dark.css +++ b/html/dark.css @@ -121,6 +121,10 @@ td { border: 1px; border-color: #555555; border-style: solid; + margin-left: 5px; + padding-left: 5px; + padding-right: 5px; + vertical-align: middle; width: 500px; } diff --git a/html/footer.shtml b/html/footer.shtml index b5d55cf..71cf993 100644 --- a/html/footer.shtml +++ b/html/footer.shtml @@ -11,7 +11,7 @@ Powered by Slackware Linux, naturally.
-
+ diff --git a/html/light.css b/html/light.css index 3f17409..f535e5a 100644 --- a/html/light.css +++ b/html/light.css @@ -121,6 +121,10 @@ td { border: 1px; border-color: #000000; border-style: solid; + margin-left: 5px; + padding-left: 5px; + padding-right: 5px; + vertical-align: middle; width: 500px; } diff --git a/html/search.shtml b/html/search.shtml index ef09ef4..9c58d5a 100644 --- a/html/search.shtml +++ b/html/search.shtml @@ -3,21 +3,15 @@ /* Output an error box */ function writeerror (string $message, bool $link) { -?> -
-
- Search Error

- -'); + print ('
'); + print (' Search Error

'); + print (' ' . $message . ''); if ($link == true) { -?> -

Click " title="Retry search">here to retry your search. -
Click here to retry your search.'); } -?> -
-
-'); + print ('
'); } /* Construct the url */ @@ -27,15 +21,15 @@ $url = "http://"; } $url .= $_SERVER["HTTP_HOST"] . "/cgi-bin/searchapi.cgi?"; - if (isset ($_GET[l])) { + if (isset ($_GET["l"])) { $url .= "l=" . urlencode ($_GET["l"]) . "&"; } - if (isset ($_GET[p])) { + if (isset ($_GET["p"])) { $url .= "p=" . urlencode ($_GET["p"]) . "&"; } else { $url .= "p=%2F&"; } - if (isset ($_GET[q])) { + if (isset ($_GET["q"])) { $url .= "q=" . urlencode ($_GET["q"]); } else { $url .= "q="; @@ -57,10 +51,17 @@ Searches may contain multiple terms, include globs (man 7 glob)
and descend down from the current directory.

Adjust search: -
+ +
+
- Search path: + + Search path: " autocomplete="on" required>
Search query: " autocomplete="on" required> @@ -83,10 +84,10 @@ $type = strtok ($result_line, " "); $entry = strtok ("\0"); if ($type == "f" || $type == "l" || $type == "o") { - print ("• $entry
"); + print ('• ' . $entry . '
'); $count++; } elseif ($type == "d") { - print ("• $entry (Repeat search in this directory)
"); + print ('• ' . $entry . ' (Repeat search in this directory)
'); $count++; } } @@ -95,9 +96,9 @@ if ($count == 0) { print ("No results - try to widen your search."); } elseif ($count == 1) { - print ("1 result found."); + print ("1 result shown."); } else { - print ($count . " results found."); + print ($count . " results shown."); } ?>