From f1170828a26fdcd4093c05be137b9fb8ac83d1a7 Mon Sep 17 00:00:00 2001 From: Scott Alfter Date: Fri, 7 Jun 2024 10:16:12 -0700 Subject: [PATCH] initial commit --- .gitignore | 1 + Dockerfile | 7 +++ README.md | 14 +++++ customization.patch | 125 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 customization.patch diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2522e15 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine +RUN apk update && apk add --no-cache git php php-pdo_sqlite patch && sed -i "s/;extension=pdo_sqlite/extension=pdo_sqlite/" /etc/php83/php.ini && git clone https://github.com/OpenKJ/StandaloneRequestServer && cd StandaloneRequestServer && mkdir /db && sed -i "s/Default Venue/City Karaoke/;s/\/var\/www\/html\/okjweb/\/db/" settings.inc && apk del git +WORKDIR /StandaloneRequestServer +COPY customization.patch /StandaloneRequestServer/customization.patch +RUN patch -p1 Incoming Requests``` +make sure ```Accept Requests``` is checked +make sure ```Automatically show this dialog on new requests``` is checked +click ```Update Remote DB``` + +TODO: hotspot configuration diff --git a/customization.patch b/customization.patch new file mode 100644 index 0000000..c38e29e --- /dev/null +++ b/customization.patch @@ -0,0 +1,125 @@ +diff --git a/global.inc b/global.inc +index 1011664..c9aefef 100644 +--- a/global.inc ++++ b/global.inc +@@ -40,7 +40,7 @@ function navbar($backurl) + $backurl = index.php; + global $screensize; + echo "
Back"; + } + +diff --git a/search.php b/search.php +index 514d180..dae03cd 100644 +--- a/search.php ++++ b/search.php +@@ -14,7 +14,7 @@ if (strlen($_GET['q']) < 3) + die(); + } + +-echo '

Search Results
Tap a song to submit it

'; ++echo '

Search Results
Click a song to submit it

'; + + $terms = explode(' ',$_GET['q']); + $no = count($terms); +diff --git a/submitreq-run.php b/submitreq-run.php +index 4e1f593..9015d08 100644 +--- a/submitreq-run.php ++++ b/submitreq-run.php +@@ -1,6 +1,6 @@ + prepare("INSERT INTO requests (singer,artist,title) VALUES(:singer, + $stmt->execute(array(":singer" => $singer, ":artist" => $artist, ":title" => $title)); + newSerial(); + echo "

Song: $artist - $title

+-

Submitted for singer: $singer

+-

Please press back to return to the main screen

+-"; ++

Submitted for singer: $singer

"; ++//

Please press back to return to the main screen

++//"; + + sitefooter(); + ?> +diff --git a/venuestyle.css b/venuestyle.css +index 0bf21d2..9bb15f8 100644 +--- a/venuestyle.css ++++ b/venuestyle.css +@@ -7,17 +7,19 @@ body + font-family: 'Scada', sans-serif; + font-size: 1.2em; + font-weight: bold; +- background-color: white; +- color: black; ++ background-color: #202020; ++ color: white; + padding-top: 60px; + } + input[type=text] { +- border: 2px solid black; ++ border: 2px solid #202020; + padding-top: 5px; + padding-bottom: 5px; + margin-right: 5px; + font-size: 1.2em; + font-weight: bold; ++ color: white; ++ background-color: #404040; + } + p.info + { +@@ -35,15 +37,15 @@ div.navbar + padding-bottom: 5px; + padding-right: 5px + width: 100%; +- background-color: white; +- color: black; ++ background-color: #202020; ++ color: white; + text-align: left; + border-style: solid; + border-width: 0px 0px 2px 0px; + } + a.navbar + { +- color: white; ++ color: #202020;; + text-decoration: none; + } + div.spacer +@@ -61,7 +63,8 @@ table + } + td.result + { +- color: black; ++ color: white; ++ background-color: #202020; + font-size: 1.6em; + font-weight: bold; + text-align: left; +@@ -72,12 +75,12 @@ td.result + } + + input[type=button], input[type=submit], input[type=reset], a.button { +- background-color: white; ++ background-color: #202020; + border: 2px; + border-style: solid; +- border-color: black; ++ border-color: white; + font-weight: bold; +- color: black; ++ color: white; + padding: 8px 20px; + margin-top: 12px; + text-decoration: none; +-- +GitLab