diff --git a/html/dark.css b/html/dark.css index 0ed978a..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; } @@ -163,9 +167,15 @@ td { width: 100%; } +#bwbar img { + height: 12px; + width: 804px; +} + #copyright { - font-size: 10px; - text-align: center; + align-self: center; + margin-left: 0; + margin-right: auto; } #donatebuttons { @@ -176,6 +186,14 @@ td { margin-top: 20px; } +#footer { + display: grid; + column-gap: 50px; + font-size: 12px; + grid-template-columns: auto auto; + margin-top: 10px; +} + #headingbox { margin-left: auto; margin-right: auto; @@ -207,6 +225,10 @@ td { width: 100%; } +#logo img { + width: 100%; +} + #motd { column-gap: 40px; display: grid; @@ -223,6 +245,19 @@ td { width: 90%; } +#poweredby { + align-items: center; + display: flex; + margin-left: auto; + margin-right: 0; + text-align: right; +} + +#poweredby img { + margin-left: 5px; + margin-right: 5px; +} + #search { align-content: center; align-self: end; diff --git a/html/light.css b/html/light.css index 63caab4..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; } @@ -163,9 +167,15 @@ td { width: 100%; } +#bwbar img { + height: 12px; + width: 804px; +} + #copyright { - font-size: 10px; - text-align: center; + align-self: center; + margin-left: 0; + margin-right: auto; } #donatebuttons { @@ -176,6 +186,14 @@ td { margin-top: 20px; } +#footer { + display: grid; + column-gap: 50px; + font-size: 12px; + grid-template-columns: auto auto; + margin-top: 10px; +} + #headingbox { margin-left: auto; margin-right: auto; @@ -207,6 +225,10 @@ td { width: 100%; } +#logo img { + width: 100%; +} + #motd { column-gap: 40px; display: grid; @@ -223,6 +245,19 @@ td { width: 90%; } +#poweredby { + align-items: center; + display: flex; + margin-left: auto; + margin-right: 0; + text-align: right; +} + +#poweredby img { + margin-left: 5px; + margin-right: 5px; +} + #search { align-content: center; align-self: end; diff --git a/html/search.shtml b/html/search.shtml index ef09ef4..8fcc7a5 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++; } }