initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*~
|
||||||
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -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 <customization.patch && rm customization.patch && apk del patch
|
||||||
|
VOLUME /db
|
||||||
|
CMD /usr/bin/php -S 0.0.0.0:8000
|
||||||
14
README.md
Normal file
14
README.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
get the server up and running:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build --no-cache -t openkj-server .
|
||||||
|
docker run -d --name openkj -p 80:8000 -v openkj-db:/db --rm openkj-server
|
||||||
|
```
|
||||||
|
|
||||||
|
start up OpenKJ
|
||||||
|
select ```Karaoke -> 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
|
||||||
125
customization.patch
Normal file
125
customization.patch
Normal file
@@ -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 "<div class=navbar>
|
||||||
|
- <span class=title>OpenKJ Songbook</span>
|
||||||
|
+ <span class=title>City Karaoke Songbook</span>
|
||||||
|
</div><div class=mainbody><span class=backbtn><a class=button href=\"$backurl\" class=navbar id=backlink>Back</a></span>";
|
||||||
|
}
|
||||||
|
|
||||||
|
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 '<br><p>Search Results<br>Tap a song to submit it</p>';
|
||||||
|
+echo '<br><p>Search Results<br>Click a song to submit it</p>';
|
||||||
|
|
||||||
|
$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 @@
|
||||||
|
<?php
|
||||||
|
include('global.inc');
|
||||||
|
-#header("Refresh: 15; URL=");
|
||||||
|
+header("Refresh: 5; url=index.php");
|
||||||
|
siteheader("Song Submitted");
|
||||||
|
|
||||||
|
|
||||||
|
@@ -27,9 +27,9 @@ $stmt = $db->prepare("INSERT INTO requests (singer,artist,title) VALUES(:singer,
|
||||||
|
$stmt->execute(array(":singer" => $singer, ":artist" => $artist, ":title" => $title));
|
||||||
|
newSerial();
|
||||||
|
echo "<p>Song: $artist - $title</p>
|
||||||
|
- <p>Submitted for singer: $singer</p>
|
||||||
|
- <br><p>Please press back to return to the main screen</p>
|
||||||
|
-";
|
||||||
|
+ <p>Submitted for singer: $singer</p>";
|
||||||
|
+// <br><p>Please press back to return to the main screen</p>
|
||||||
|
+//";
|
||||||
|
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user