aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--backend/dbCredentials.php (renamed from public/php/dbCredentials.php)2
-rw-r--r--public/php/fia.php2
-rw-r--r--screenshot.pngbin0 -> 46473 bytes
-rwxr-xr-xstart-node2
5 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 35dd9d4..f89c9b2 100644
--- a/README.md
+++ b/README.md
@@ -15,3 +15,5 @@ To start:
- set secure API_KEY in /public/php/dbCredentials.php
- run `start-node` in /
- and `start-php` in / simultaneously in another terminal
+
+![Screenshot of the game](screenshot.png)
diff --git a/public/php/dbCredentials.php b/backend/dbCredentials.php
index b13e420..209cf79 100644
--- a/public/php/dbCredentials.php
+++ b/backend/dbCredentials.php
@@ -1,5 +1,5 @@
<?php
$apiKey = "secureApiKey123(!*";
$dbUser = "admin";
- $dbPassword = "qwerty123";
+ $dbPassword = "qwerty";
$dbName = "ClientApps";
diff --git a/public/php/fia.php b/public/php/fia.php
index 94f307f..06caa86 100644
--- a/public/php/fia.php
+++ b/public/php/fia.php
@@ -3,7 +3,7 @@ error_reporting(E_ALL);
ini_set('display_errors', 1);
$req = json_decode(file_get_contents("php://input"));
-require_once "dbCredentials.php";
+require_once "../../backend/dbCredentials.php";
if ($req->apiKey === $apiKey) {
$http = isset($_SERVER["HTTPS"]) ? "https" : "http";
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..38c2ed1
--- /dev/null
+++ b/screenshot.png
Binary files differ
diff --git a/start-node b/start-node
index eede0b0..70d26a0 100755
--- a/start-node
+++ b/start-node
@@ -1,7 +1,7 @@
#!/bin/sh
export SESSION_KEY="zaq1@WSX"
-api_key="$(awk '/api/ { print $3 }' public/php/dbCredentials.php)"
+api_key="$(awk '/api/ { print $3 }' backend/dbCredentials.php)"
api_key="${api_key#'"'}"
api_key="${api_key%'";'}"