From c0edb9e2a4a49bae24cbcae4b8e000d6813b3417 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Thu, 13 Apr 2023 19:18:31 +0200 Subject: Add Readme Secure dbCredentials Add screenshot --- README.md | 2 ++ backend/dbCredentials.php | 5 +++++ public/php/dbCredentials.php | 5 ----- public/php/fia.php | 2 +- screenshot.png | Bin 0 -> 46473 bytes start-node | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 backend/dbCredentials.php delete mode 100644 public/php/dbCredentials.php create mode 100644 screenshot.png 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/backend/dbCredentials.php b/backend/dbCredentials.php new file mode 100644 index 0000000..209cf79 --- /dev/null +++ b/backend/dbCredentials.php @@ -0,0 +1,5 @@ +apiKey === $apiKey) { $http = isset($_SERVER["HTTPS"]) ? "https" : "http"; diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..38c2ed1 Binary files /dev/null and b/screenshot.png 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%'";'}" -- cgit v1.3.1