commit d72e9b623a3b298530ab36aaaf66b771545059e9 Author: Darren 'Tadgy' Austin Date: Thu Sep 1 12:49:15 2022 +0100 First commit of current staging content. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a1e617 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +files/htpasswd +logs/ diff --git a/cgi-bin/search.cgi b/cgi-bin/search.cgi new file mode 100755 index 0000000..448cbf1 --- /dev/null +++ b/cgi-bin/search.cgi @@ -0,0 +1,174 @@ +#!/bin/bash + +# Configuration options +BASE_DIR="/data/sites" +STORAGE_PREFIX="/storage/md0" +IGNORE_REGEXES=('^/\.sandbox.*' '^/\.lftp.*' '^/dead\.letter' '.*\.rsync-tmp.*') +HEADER_DARK="$BASE_DIR/${SERVER_NAME:-slackware.uk}/html/includes/search-header-dark.html" +FOOTER_DARK="$BASE_DIR/${SERVER_NAME:-slackware.uk}/html/includes/search-footer-dark.html" +HEADER_LIGHT="$BASE_DIR/${SERVER_NAME:-slackware.uk}/html/includes/search-header-light.html" +FOOTER_LIGHT="$BASE_DIR/${SERVER_NAME:-slackware.uk}/html/includes/search-footer-light.html" +LOCATEDB="/tmp/mirrors.db" +LIMIT=1000 +MAX_CONCURRENT=5 + +# Extglob is required. +shopt -s extglob + +# Output an error in processing. +die() { + # $1 = The error message to output. + # $2 = Whether to include the retry link ("false" to disable inclusion, everything else is true). + cat <
+
+ + + + +
+ Error: $1$([[ "${2,,}" != "false" ]] && printf "
\n Please click here to retry your search." "${REQUEST_SCHEME:-https}://${SERVER_NAME:-slackware.uk}/search?$QUERY_STRING") +
+
+ + +EOF + exit 1 +} + +# Initial headers. +printf "%s: %s\\n" "Content-type" "text/html" +printf "%s: %s\\n" "Cache-Control" "no-cache, no-store, must-revalidate" +printf "%s: %s\\n" "Pragma" "no-cache" +printf "%s: %s\\n\\n" "Expires" "1" + +# Extract cookies. +while read -r -d " " RAW; do + KEY="${RAW%%=*}" + VALUE="${RAW#*=}" + declare -A COOKIES+=( ["${KEY,,}"]="${VALUE,,}" ) +done <<<"$HTTP_COOKIE " # The space at the end is required. + +# Include the themed header. +if [[ "${COOKIES['theme']}" == "dark" ]]; then + cat "$HEADER_DARK" +else + cat "$HEADER_LIGHT" +fi + +# Limit the number of concurrent searches to avoid DoS. +if (( $(lsof -t "$LOCATEDB" | wc -l) > (MAX_CONCURRENT - 1) )); then + die "too many concurrent searches!" +else + exec 9<"$LOCATEDB" && flock -s -E 10 -w 2 9 || die "too many concurrent searches!" + + while read -r -d '&' QUERY; do + # If the read returned an empty string, skip. + [[ -z "$QUERY" ]] && continue + + # Extract the key and value to temporary variables. + KEY="${QUERY%%=*}" + VALUE="${QUERY#*=}" + + # Check the key is valid as a variable name. + [[ ! "$KEY" =~ ^[[:digit:]_]*[[:alnum:]_]*$ ]] && die "invalid query - don't try to be clever :)" "false" + + # Remove spaces from beginning and end of value. + : "${VALUE/#+(+)}" + : "${_/%+(+)}" + + # Squash multiple spaces in value. + : "${_//+(+)/+}" + + # Convert values from %-encoded form. + : "${_//%/\\x}" + + # Define the variable from the key name. + declare "X_$KEY"="$(printf "%b" "${_//+/ }")" + done <<<"${QUERY_STRING,,}&" # The & at the end is required. + + # Take a copy of q before it's modified, for the heading. + Q_COPY="${X_q:-(empty)}" + + # Adjust 'X_q' for the locate command by wrapping search elements in *s. + : "*${X_q// /* *}*" + X_q="${_//\/*/*}" + + # HTML boilerplate. + cat < + + + + +
+ Search Results

+ Search query: $Q_COPY
+ Searches may contain multiple terms, include (basic) globs,
+ and descend down from the current directory. +
+ + + + + + + + + + +
+ +
+
+ +EOF + + I=1 + COUNT=0 + while read -r ITEM; do + # Only show 1000 items to prevent long load times. + (( I == LIMIT + 1 )) && break + + # Remove paths we don't want the user to see. + while read -r -d " " REGEX; do + [[ "${ITEM/$STORAGE_PREFIX}" =~ $REGEX ]] && continue 2 + done <<<"${IGNORE_REGEXES[@]}" + + # List the item. + printf " • %s
\\n" "${ITEM/$STORAGE_PREFIX}" "${ITEM/$STORAGE_PREFIX}" "${ITEM/$STORAGE_PREFIX}" + + (( I++ )) + (( COUNT++ )) + done < <(locate -A -d "$LOCATEDB" -i -l "$(( LIMIT * 2 ))" "$STORAGE_PREFIX/${X_p##/}" $X_q | sort) + + # Tell the user about the results. + if (( COUNT == 0 )); then + printf " %s" "No results - try to widen your search." + elif (( COUNT == LIMIT )); then + printf " %s" "Maximum $LIMIT items shown - try to refine your search." + else + printf " %s" "$COUNT items found." + fi + +# HTML boilerplate. + cat < +
+
+EOF + + # Include footer. + if [[ "${COOKIES['theme']}" == "dark" ]]; then + cat "$FOOTER_DARK" + else + cat "$FOOTER_LIGHT" + fi +fi diff --git a/files/CSS-examples.txt b/files/CSS-examples.txt new file mode 100644 index 0000000..f57cd9c --- /dev/null +++ b/files/CSS-examples.txt @@ -0,0 +1,80 @@ +.bookmark a.digg { + background:url(/images/icons/digg.gif) no-repeat 0 50%; +} + +body { + background: #fff; + color: #000; + font-family: "Lucida Grande", "Bitstream Vera Sans", Verdana, Helvetica, Arial, sans-serif; + margin: 0; + padding: 0; + font-size: 95%; + text-align: center; +} + +hr { + color: white; + background-color: #ddd; + height: 1px; + border: 0px; +} + +pre { + background-color: #eee; + color: inherit; + padding: 0.3em 1em 1em 1em; + border: 1px dotted #999; + overflow: auto; + margin: 1em 0 1em 1.5em; +} + +a .donatethumb:hover { + background: #ccc; + color: inherit; +} +a .introthumb:hover { + background: #ccc; + color: inherit; +} +#main-body a { + color: #147; + background-color: inherit; + text-decoration: underline; +} + +#main-body a:hover { + text-decoration: none; + color: #06c; + background-color: inherit; +} +#footer a:hover { + text-decoration: none; +} +a { + outline: none; +} + +a:active { + outline: none; +} + + + +img.screenthumb { + vertical-align: middle; + background-color: #eee; + color: inherit; + border-bottom: 1px solid #a9a9a9; + border-right: 1px solid #a9a9a9; + padding: 8px; + margin: 25px 25px 0 0; +} + +a img.screenthumb:hover { + background: #ccc; + color: inherit; +} +img { + border: 0 none; +} + diff --git a/files/README b/files/README new file mode 100644 index 0000000..7412fe5 --- /dev/null +++ b/files/README @@ -0,0 +1 @@ +This directory is for storage of any files which should NOT be directly accessible via the web. diff --git a/files/banner.txt b/files/banner.txt new file mode 100644 index 0000000..09904ea --- /dev/null +++ b/files/banner.txt @@ -0,0 +1,55 @@ + + _ _ + __ |``: __ ___. | , __ __ __ _ ___ + (__` |`` __) / ` |.( | | __) |'` /___) + | .__) _|_ (__|_ '.__. _| \_ \_/\_/ (__|_ _|_ '.__. + | + |__________________________________________________ | | |_/ + \_/ | \ + is kindly sponsored by: + *** _ _ _ _ ********** + ***** | | | | | | / | **' _ '.** + ;'. ******* | | | | | !.' / ***`-' ) :** + .' `-,*** | | | | | | ******,' .'** + ,~ ~\, ,, | !__! | | |'. \ ***.' :**** + .~ ~-._ .' ~. '-.__.-' |_| \_| **:______:* + .' File Away Limited `-' `-. A THG Company ********** + http://www.file-away.co.uk/ http://www.uk2.net/ + + Please take a moment to visit these sponsors using the links above! +- --------------------------------------------------------------------------- - + + ACCESS: This service can be accessed via: + HTTP: http://slackware.uk/ + HTTPS: https://slackware.uk/ + FTP: ftp://slackware.uk/ + Rsync: rsync://slackware.uk/ + + NOTICE: All connections and transfers are logged. By accessing this + service you implicitly agree to our collecting your IP address for + analytics purposes. We do not collect or hold any user identifying data. + Do not use multiple concurrent connections or "make your downloads + faster" applications. + Access to this service is a privilege, not a right - abusive users will + be firewalled without warning. + + NOTICE TO MIRRORS: If you are running a mirroring service and pulling data + from multiple repositories on a regular basis, please email for access + to the top-level repo - so you can pull everything in one go. + We do not operate any blacklisting or whitelisting on access to + repositories at this time. + + MIRRORING REQUESTS: This service is primarily intended to provide a + mirror service for Slackware Linux based projects. If you run a + Slackware based project or have a suggestion for a project which may + benefit from being mirrored here, please email with full details. + + DONATIONS: If you use this service on a regular basis, and would like to + make a one-off or recurring donation towards the ongoing running costs, + please Paypal an amount you feel is appropriate to: . All donations will be gratefully received - thank you! + + Darren 'Tadgy' Austin + Email: + IRC: On Libera.Chat, join #slackware.uk channel or PM 'Tadgy' +- --------------------------------------------------------------------------- - diff --git a/html/bwbar-dark.png b/html/bwbar-dark.png new file mode 120000 index 0000000..8a0d2c0 --- /dev/null +++ b/html/bwbar-dark.png @@ -0,0 +1 @@ +/run/bwbar-dark.png \ No newline at end of file diff --git a/html/bwbar-light.png b/html/bwbar-light.png new file mode 120000 index 0000000..ea7cb98 --- /dev/null +++ b/html/bwbar-light.png @@ -0,0 +1 @@ +/run/bwbar-light.png \ No newline at end of file diff --git a/html/bwbar.txt b/html/bwbar.txt new file mode 120000 index 0000000..a481ab8 --- /dev/null +++ b/html/bwbar.txt @@ -0,0 +1 @@ +/run/bwbar.txt \ No newline at end of file diff --git a/html/circuit-dark.png b/html/circuit-dark.png new file mode 100644 index 0000000..ad4f5b4 Binary files /dev/null and b/html/circuit-dark.png differ diff --git a/html/circuit-light.png b/html/circuit-light.png new file mode 100644 index 0000000..0c154e9 Binary files /dev/null and b/html/circuit-light.png differ diff --git a/html/dark.css b/html/dark.css new file mode 100644 index 0000000..3c2db57 --- /dev/null +++ b/html/dark.css @@ -0,0 +1,123 @@ +a:link { + color: #4255ff; + text-decoration: none; +} + +a:visited { + color: #943cc3; + text-decoration: none; +} + + +a:hover { + text-decoration: underline; +} + +body { + background-image: url("/html/circuit-dark.png"); + background-color: #000000; + color: #aeaeae; + margin-left: 15px; + margin-right: 15px; +} + +form { + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; +} + +hr { + height: 2px; + border-width: 0; + color: #888888; + background-color: #888888; +} + +pre { + background: #060606; + border: 2px solid #aaaaaa; + padding-left: 20; + padding-right: 20; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} + +.heading { + font-size: 200%; +} + +.subheading { + font-size: 125%; +} + +.breadcrumbs { + font-size: 150%; + background: #060606; + border: 2px solid #aaaaaa; + padding-left: 10; + padding-top: 2; + padding-right: 10; + padding-bottom: 2; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} + +.header { + background: #060606; + border: 2px solid #aaaaaa; + margin: 20; + padding-left: 10; + padding-top: 10; + padding-right: 10; + padding-bottom: 10; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} + +.navbar { + width: 100%; + text-align: center; +} + +.search { + background: #060606; + border: 2px solid #aaaaaa; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} + +.searchinput { + border: none; + background: #060606; + outline: none; + color: #888888; + font-size: 11px; + box-sizing: border-box; + padding-left: 10; + padding-top: 2; + padding-right: 10; + padding-bottom: 2; + background-color: #060606; + background-image: url('/html/search-white.png'); + background-size: 15px 15px; + background-position: 2px 2px; + background-repeat: no-repeat; + padding-left: 20px; +} + +.searchresults { + background: #060606; + border: 2px solid #aaaaaa; + padding-left: 20; + padding-right: 20; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} + +.sponsorslist { + background: #060606; + border: 2px solid #777; + margin: 20; + padding-left: 10; + padding-top: 10; + padding-right: 10; + padding-bottom: 10; + box-shadow: 10px 10px 10px -5px rgba(128,128,128,0.5); +} diff --git a/html/donors.php b/html/donors.php new file mode 100644 index 0000000..8c3c1cb --- /dev/null +++ b/html/donors.php @@ -0,0 +1,660 @@ + + + + + +
+ +
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + +
+
+ + + + +
+ Project Supporters
+ The following people have kindly donated to slackware.uk.
+ Thank you very much for your support! :)
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 21st July 2022 + + David Woodfall +
+ 18th July 2022 + + Luke Dedek +
+ 14th July 2022 + + Jack Leong +
+ 10th July 2022 + + Charles Coffee +
+ 8th July 2022 + + Randall Robinson +
+ 20th June 2022 + + Richard Hoyle +
+ 7th June 2022 + + Richard Hanser +
+ 7th June 2022 + + Abehinichi +
+ 6th June 2022 + + Keith Burnett +
+ 6th June 2022 + + David Ian Allen +
+ 6th June 2022 + + Duncan Wood +
+ 6th June 2022 + + Robert Bresaz +
+ 4th June 2022 + + Barry Grundy +
+ 4th June 2022 + + Antoine Dierstein +
+ 4th June 2022 + + Karl Gunnar Hammarlund +
+ 4th June 2022 + + Matthew Dinslage +
+ 4th June 2022 + + David Hall +
+ 27th April 2022 + + Matthew Dinslage +
+ 4th April 2022 + + Edward Rosenberg +
+ 2nd April 2022 + + Matthew Dinslage +
+ 21th March 2022 + + Theodore Allen +
+ 18th March 2022 + + George Nielsen +
+ 18th March 2022 + + Ioannis Anagnostakis +
+ 18th March 2022 + + Karl Gunnar Hammarlund +
+ 18th March 2022 + + Brian Lawrence +
+ 18th March 2022 + + Dane Jensen +
+ 18th March 2022 + + Matthew Dinslage +
+ 9th March 2022 + + David Trudgian +
+ 7th March 2022 + + Robert Bresaz +
+ 13th January 2022 + + Rod Ziemski +
+ 21st December 2021 + + Eric Trimmer +
+ 30th September 2021 + + Brian Lawrence +
+ 17th August 2021 + + Christoph Willing +
+ 14th July 2021 + + Brian Lawrence +
+ 11th July 2021 + + Don Boots +
+ 6th June 2021 + + Cleverson Casarin Uliana +
+ 30th May 2021 + + Klaus Gretland +
+ 25th May 2021 + + Matthew Dinslage +
+ 25th May 2021 + + Karl Bruns +
+ 18th May 2021 + + Karl Gunnar Hammarlund +
+ 15th May 2021 + + Christoph Koernig +
+ 20th April 2021 + + Anthony McKenzie +
+ 18th April 2021 + + Marcin Wolcendorf +
+ 10th April 2021 + + Christoph Kühne +
+ 8th April 2021 + + Patrick Volkerding +
+ 29th March 2021 + + Anthony McKenzie +
+ 7th March 2021 + + James Scott +
+ 2nd March 2021 + + Alain Detal +
+ 15th February 2021 + + Diniz Fernando Bortolotto Ferreira +
+ 22nd December 2020 + + Peter Christy +
+ 22nd December 2020 + + Karl Gunnar Hammarlund +
+ 15th December 2020 + + Karol Jurica +
+ 14th December 2020 + + Stanley Garvey +
+ 2nd October 2020 + + Corby Roberts +
+ 24th August 2020 + + Weber Kai +
+ 7th August 2020 + + Brian Lawrence +
+ 6th August 2020 + + Marcin Słodkiewicz +
+ 30th May 2020 + + Ahmed Abbas +
+ 23rd May 2020 + + Adam Purkrt +
+ 5th May 2020 + + Clemens Sauerzopf +
+ 30th April 2020 + + Gerard Lally +
+ 6th April 2020 + + Peter Christy +
+ 3rd April 2020 + + Tom Kosir +
+ 30th March 2020 + + jwc1936 +
+ 13th March 2020 + + Gregory Guy Rozan +
+ 6th March 2020 + + Brian Lawrence +
+ 5th March 2020 + + Karl Gunnar Hammarlund +
+ 5th March 2020 + + Pierre-Philipp Braun +
+ 4th March 2020 + + Christoph Kühne +
+ 22nd February 2020 + + Aaditya Bagga +
+ 20th October 2019 + + Shuaidu Yang +
+ 12th October 2019 + + Andrew Macks +
+ 9th October 2019 + + Tapio Pätilä +
+ 30th August 2019 + + Nora's Portal +
+ 18th July 2019 + + Karl Gunnar Hammarlund +
+ 21st May 2019 + + Brian Lawrence +
+ 16th May 2019 + + Daniel Bowling +
+ 27th April 2019 + + Antoniazzi Leonardo +
+
+ + + diff --git a/html/errordocs/400.php b/html/errordocs/400.php new file mode 100644 index 0000000..21623e1 --- /dev/null +++ b/html/errordocs/400.php @@ -0,0 +1,32 @@ + + + + + +
+ +
+
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+
+ + + + +
+ 400 - Bad Request
+ The server could not understand the request. +
+
+ + diff --git a/html/errordocs/400.shtml b/html/errordocs/400.shtml new file mode 100644 index 0000000..924e3da --- /dev/null +++ b/html/errordocs/400.shtml @@ -0,0 +1,54 @@ + + + + Slackware UK: 400 + + + + + + + + + +

** Slackware UK **

+
+ + + + +
+ Patronage & donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ GoFundMe Campaign + + Patreon Page + + PayPal Donation +
+ All donations will be gratefully received - thank you! +
+
+
+ + + + +
+

400 - Bad Request

+ The server could not understand the request. +
+
+
+
+
+ Mirror server bandwidth utilisation
+ <!--#include virtual='/html/bwbar.txt' --> +
diff --git a/html/errordocs/401.php b/html/errordocs/401.php new file mode 100644 index 0000000..457b5d7 --- /dev/null +++ b/html/errordocs/401.php @@ -0,0 +1,32 @@ + + + + + +
+ +
+
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+
+ + + + +
+ 401 - Unauthorised
+ Authentication is required. +
+
+ + diff --git a/html/errordocs/401.shtml b/html/errordocs/401.shtml new file mode 100644 index 0000000..b37b472 --- /dev/null +++ b/html/errordocs/401.shtml @@ -0,0 +1,54 @@ + + + + Slackware UK: 401 + + + + + + + + + +

** Slackware UK **

+
+ + + + +
+ Patronage & donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ GoFundMe Campaign + + Patreon Page + + PayPal Donation +
+ All donations will be gratefully received - thank you! +
+
+
+ + + + +
+

401 - Unauthorised

+ Authentication is required. +
+
+
+
+
+ Mirror server bandwidth utilisation
+ <!--#include virtual='/html/bwbar.txt' --> +
diff --git a/html/errordocs/403.php b/html/errordocs/403.php new file mode 100644 index 0000000..af30840 --- /dev/null +++ b/html/errordocs/403.php @@ -0,0 +1,32 @@ + + + + + +
+ +
+
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+
+ + + + +
+ 403 - Forbidden
+ You do not have permission to access this resource. +
+
+ + diff --git a/html/errordocs/403.shtml b/html/errordocs/403.shtml new file mode 100644 index 0000000..d3e1c0b --- /dev/null +++ b/html/errordocs/403.shtml @@ -0,0 +1,54 @@ + + + + Slackware UK: 403 + + + + + + + + + +

** Slackware UK **

+
+ + + + +
+ Patronage & donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ GoFundMe Campaign + + Patreon Page + + PayPal Donation +
+ All donations will be gratefully received - thank you! +
+
+
+ + + + +
+

403 - Forbidden

+ You do not have permission to access this resource. +
+
+
+
+
+ Mirror server bandwidth utilisation
+ <!--#include virtual='/html/bwbar.txt' --> +
diff --git a/html/errordocs/404.php b/html/errordocs/404.php new file mode 100644 index 0000000..3a026f5 --- /dev/null +++ b/html/errordocs/404.php @@ -0,0 +1,32 @@ + + + + + +
+ +
+
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+
+ + + + +
+ 404 - Not Found
+ The requested page or file is not found. +
+
+ + diff --git a/html/errordocs/404.shtml b/html/errordocs/404.shtml new file mode 100644 index 0000000..808a15b --- /dev/null +++ b/html/errordocs/404.shtml @@ -0,0 +1,54 @@ + + + + Slackware UK: 404 + + + + + + + + + +

** Slackware UK **

+
+ + + + +
+ Patronage & donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ GoFundMe Campaign + + Patreon Page + + PayPal Donation +
+ All donations will be gratefully received - thank you! +
+
+
+ + + + +
+

404 - Not Found

+ The requested page or file is not found. +
+
+
+
+
+ Mirror server bandwidth utilisation
+ <!--#include virtual='/html/bwbar.txt' --> +
diff --git a/html/errordocs/405.php b/html/errordocs/405.php new file mode 100644 index 0000000..a728372 --- /dev/null +++ b/html/errordocs/405.php @@ -0,0 +1,32 @@ + + + + + +
+ +
+
+ + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+
+ + + + +
+ 405 - Method Forbidden
+ Access method is not authorised. +
+
+ + diff --git a/html/errordocs/405.shtml b/html/errordocs/405.shtml new file mode 100644 index 0000000..b021d4d --- /dev/null +++ b/html/errordocs/405.shtml @@ -0,0 +1,54 @@ + + + + Slackware UK: 405 + + + + + + + + + +

** Slackware UK **

+
+ + + + +
+ Patronage & donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ GoFundMe Campaign + + Patreon Page + + PayPal Donation +
+ All donations will be gratefully received - thank you! +
+
+
+ + + + +
+

405 - Method Forbidden

+ Access method is not authorised. +
+
+
+
+
+ Mirror server bandwidth utilisation
+ <!--#include virtual='/html/bwbar.txt' --> +
diff --git a/html/favicon.ico b/html/favicon.ico new file mode 100644 index 0000000..f5a52e7 Binary files /dev/null and b/html/favicon.ico differ diff --git a/html/footer.shtml b/html/footer.shtml new file mode 100644 index 0000000..518738b --- /dev/null +++ b/html/footer.shtml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/html/header.php b/html/header.php new file mode 100644 index 0000000..5a905bd --- /dev/null +++ b/html/header.php @@ -0,0 +1,119 @@ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Access: + + This service can be accessed via:
+       HTTP:  http://slackware.uk/
+       HTTPS:  https://slackware.uk/
+       FTP:  ftp://slackware.uk/
+       Rsync:  rsync://slackware.uk/ +
+ Notice: + + All connections and transfers are logged. By accessing this service you implicitly agree to our collecting your IP address for analytics purposes.
+ We do not collect or hold any user identifying data, but do set a cookie in your browser for your choice of theme.
+ Do not use multiple concurrent connections or "make your downloads faster" applications.
+ Access to this service is a privilege, not a right - abusive users will be firewalled without warning. +
+ Mirroring requests: + + This service is primarily intended to provide a mirror service for Slackware Linux based projects. If you run a Slackware based project, or have a suggestion for a project which may benefit from being mirrored here, please message with full details. +
+ Patronage & Donations: + + If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: +
+ + + +
+ + + All donations will be gratefully received - thank you! +
+ Darren 'Tadgy' Austin
+ Email: mirrors (at) slackware.uk
+ IRC: On Libera.Chat, join #slackware.uk channel or PM 'Tadgy' +
+
+
+ +
+ +
+
+ + + + + + + + + +
+ Patronage & Donations
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + All donations will be gratefully received - thank you! +
+
+ + A Faster Way to Download Slackware Linux ISOs
+ Slackware UK now offers a Bittorrent seeding service which may allow you to download the Slackware ISOs at a much faster speed (especially immediately following a new stable release) - all that is required is a Bittorrent client. +
+

+ + +
+ + +
diff --git a/html/includes/breadcrumbs-search-theme.php b/html/includes/breadcrumbs-search-theme.php new file mode 100644 index 0000000..21b2eac --- /dev/null +++ b/html/includes/breadcrumbs-search-theme.php @@ -0,0 +1,25 @@ + + + + + + + + + + + +
+ +
diff --git a/html/includes/breadcrumbs.php b/html/includes/breadcrumbs.php new file mode 100644 index 0000000..10d49d0 --- /dev/null +++ b/html/includes/breadcrumbs.php @@ -0,0 +1,44 @@ +" . $home . " "); + + # PHP syntax note: $foo[] = "bar" is the same as Perl's + # push @foo, "bar". + foreach($pages as $dir) { + $url = $url . "/" . $dir; + $result[] = "" . $dir . " "; + } + + # add last (current) dir, but not as a link. + $result[] = $last; + + # perl: return join($sep, @result); + return implode($sep, $result); + } +?> diff --git a/html/includes/bwbar.php b/html/includes/bwbar.php new file mode 100644 index 0000000..c41b974 --- /dev/null +++ b/html/includes/bwbar.php @@ -0,0 +1,9 @@ + +
+ Mirror server bandwidth utilisation
+ + Bandwidth graph measuring <!--#include virtual='/html/bwbar.txt' --> + + Bandwidth graph measuring <!--#include virtual='/html/bwbar.txt' --> + +
diff --git a/html/includes/donate.php b/html/includes/donate.php new file mode 100644 index 0000000..cdca34b --- /dev/null +++ b/html/includes/donate.php @@ -0,0 +1,22 @@ + + + + + + + + + + + +
+ Patreon Logo + + PayPal Logo + + Patreon Logo + + PayPal Logo +
diff --git a/html/includes/head.php b/html/includes/head.php new file mode 100644 index 0000000..967304b --- /dev/null +++ b/html/includes/head.php @@ -0,0 +1,14 @@ + + + + + + + + + + + + + " . $titleprefix . $title . "" . "\n"); ?> + diff --git a/html/includes/logo.php b/html/includes/logo.php new file mode 100644 index 0000000..2484d28 --- /dev/null +++ b/html/includes/logo.php @@ -0,0 +1,5 @@ + +

Slackware UK Logo

+ +

Slackware UK Logo

+ diff --git a/html/includes/search-footer-dark.html b/html/includes/search-footer-dark.html new file mode 100644 index 0000000..f583b33 --- /dev/null +++ b/html/includes/search-footer-dark.html @@ -0,0 +1,7 @@ +
+ Mirror server bandwidth utilisation
+ + Bandwidth usage bar +
+ + diff --git a/html/includes/search-footer-light.html b/html/includes/search-footer-light.html new file mode 100644 index 0000000..3bea115 --- /dev/null +++ b/html/includes/search-footer-light.html @@ -0,0 +1,7 @@ +
+ Mirror server bandwidth utilisation
+ + Bandwidth usage bar +
+ + diff --git a/html/includes/search-header-dark.html b/html/includes/search-header-dark.html new file mode 100644 index 0000000..7669380 --- /dev/null +++ b/html/includes/search-header-dark.html @@ -0,0 +1,41 @@ + + + + + + + + + + + Slackware UK: Search Results + + +
+

Slackware UK Logo

+
+
+ + + + +
+ Patronage & Donations +
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ Patreon Logo + + PayPal Logo +
+ All donations will be gratefully received - thank you! +
+
diff --git a/html/includes/search-header-light.html b/html/includes/search-header-light.html new file mode 100644 index 0000000..ef237fe --- /dev/null +++ b/html/includes/search-header-light.html @@ -0,0 +1,41 @@ + + + + + + + + + + + Slackware UK: Search Results + + +
+

Slackware UK Logo

+
+
+ + + + +
+ Patronage & Donations +
+ If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons: + + + + + + +
+ Patreon Logo + + PayPal Logo +
+ All donations will be gratefully received - thank you! +
+
diff --git a/html/includes/sponsors.php b/html/includes/sponsors.php new file mode 100644 index 0000000..822cbbf --- /dev/null +++ b/html/includes/sponsors.php @@ -0,0 +1,13 @@ +

+ is kindly sponsored by: +

+ UK Servers Logo + + UK2 Logo + + UK2 Logo + +
+
+ Please take a moment to visit the sponsors using the links above! +

diff --git a/html/includes/vars.php b/html/includes/vars.php new file mode 100644 index 0000000..d5b4371 --- /dev/null +++ b/html/includes/vars.php @@ -0,0 +1,190 @@ + diff --git a/html/light.css b/html/light.css new file mode 100644 index 0000000..2753152 --- /dev/null +++ b/html/light.css @@ -0,0 +1,122 @@ +a:link { + color: #2c199c; + text-decoration: none; +} + +a:visited { + color: #943cc3; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +body { + background-image: url("/html/circuit-light.png"); + background-color: #ffffff; + color: #000000; + margin-left: 15px; + margin-right: 15px; +} + +form { + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; +} + +hr { + height: 2px; + border-width: 0; + color: #070707; + background-color: #070707; +} + +pre { + background: #f0f0f0; + border: 2px solid #070707; + padding-left: 20; + padding-right: 20; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} + +.heading { + font-size: 200%; +} + +.subheading { + font-size: 125%; +} + +.breadcrumbs { + font-size: 150%; + background: #f0f0f0; + border: 2px solid #070707; + padding-left: 10; + padding-top: 2; + padding-right: 10; + padding-bottom: 2; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} + +.header { + background: #F0F0F0; + border: 2px solid #777; + margin: 20; + padding-left: 10; + padding-top: 10; + padding-right: 10; + padding-bottom: 10; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} + +.navbar { + width: 100%; + text-align: center; +} + +.search { + background: #f0f0f0; + border: 2px solid #070707; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} + +.searchinput { + border: none; + background: #f0f0f0; + outline: none; + color: #000000; + font-size: 11px; + box-sizing: border-box; + padding-left: 10; + padding-top: 2; + padding-right: 10; + padding-bottom: 2; + background-color: #f0f0f0; + background-image: url('/html/search-black.png'); + background-size: 15px 15px; + background-position: 2px 2px; + background-repeat: no-repeat; + padding-left: 20px; +} + +.searchresults { + background: #f0f0f0; + border: 2px solid #070707; + padding-left: 20; + padding-right: 20; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} + +.sponsorslist { + background: #F0F0F0; + border: 2px solid #777; + margin: 20; + padding-left: 10; + padding-top: 10; + padding-right: 10; + padding-bottom: 10; + box-shadow: 10px 10px 10px -5px rgba(0,0,0,0.5); +} diff --git a/html/old/binary.png b/html/old/binary.png new file mode 100644 index 0000000..7660d4d Binary files /dev/null and b/html/old/binary.png differ diff --git a/html/old/fileaway.png b/html/old/fileaway.png new file mode 100644 index 0000000..84331f8 Binary files /dev/null and b/html/old/fileaway.png differ diff --git a/html/old/gofundme.png b/html/old/gofundme.png new file mode 100644 index 0000000..f3d4176 Binary files /dev/null and b/html/old/gofundme.png differ diff --git a/html/patreon-black.png b/html/patreon-black.png new file mode 100644 index 0000000..d578abe Binary files /dev/null and b/html/patreon-black.png differ diff --git a/html/patreon-white.png b/html/patreon-white.png new file mode 100644 index 0000000..47c8649 Binary files /dev/null and b/html/patreon-white.png differ diff --git a/html/paypal-black.png b/html/paypal-black.png new file mode 100644 index 0000000..e0faea9 Binary files /dev/null and b/html/paypal-black.png differ diff --git a/html/paypal-white.png b/html/paypal-white.png new file mode 100644 index 0000000..0a31c88 Binary files /dev/null and b/html/paypal-white.png differ diff --git a/html/robots.txt b/html/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/html/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/html/search-black.png b/html/search-black.png new file mode 100644 index 0000000..728e6c5 Binary files /dev/null and b/html/search-black.png differ diff --git a/html/search-white.png b/html/search-white.png new file mode 100644 index 0000000..bef747e Binary files /dev/null and b/html/search-white.png differ diff --git a/html/slackwareuk-black.png b/html/slackwareuk-black.png new file mode 100644 index 0000000..d3f8d1d Binary files /dev/null and b/html/slackwareuk-black.png differ diff --git a/html/slackwareuk-white.png b/html/slackwareuk-white.png new file mode 100644 index 0000000..9612f8f Binary files /dev/null and b/html/slackwareuk-white.png differ diff --git a/html/toggletheme.php b/html/toggletheme.php new file mode 100644 index 0000000..df15315 --- /dev/null +++ b/html/toggletheme.php @@ -0,0 +1,21 @@ + "Tue, 31 Dec 2069 23:59:59 GMT", + "domain" => ".slackware.uk", + "path" => "/", + "httponly" => true, + "samesite" => "Lax" + ); + if (!$light) { + $theme = "light"; + } else { + $theme = "dark"; + } + setcookie ("theme", $theme, $cookie_data); + if (isset ($_SERVER['HTTP_REFERER'])) { + header ("Location: " . $_SERVER['HTTP_REFERER'], true, 302); + } else { + header ("Location: /", true, 302); + } +?> diff --git a/html/toggletheme.png b/html/toggletheme.png new file mode 100644 index 0000000..a4ba86f Binary files /dev/null and b/html/toggletheme.png differ diff --git a/html/uk2-black.png b/html/uk2-black.png new file mode 100644 index 0000000..6b4fe53 Binary files /dev/null and b/html/uk2-black.png differ diff --git a/html/uk2-white.png b/html/uk2-white.png new file mode 100644 index 0000000..d81be41 Binary files /dev/null and b/html/uk2-white.png differ diff --git a/html/ukservers.png b/html/ukservers.png new file mode 100644 index 0000000..d5df6ce Binary files /dev/null and b/html/ukservers.png differ