aboutsummaryrefslogtreecommitdiffstats
path: root/public/php
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2023-04-13 19:18:31 +0200
committerMaksymilian Jopek <maks@jopek.eu>2023-04-13 19:20:25 +0200
commitc0edb9e2a4a49bae24cbcae4b8e000d6813b3417 (patch)
tree0b6de059b1fb2c3f28ff6c56dbadf8edb10d7498 /public/php
parent911d2fc05833fb2095f3032c34063bfd6da113fa (diff)
downloadfia-c0edb9e2a4a49bae24cbcae4b8e000d6813b3417.tar.gz
fia-c0edb9e2a4a49bae24cbcae4b8e000d6813b3417.tar.zst
fia-c0edb9e2a4a49bae24cbcae4b8e000d6813b3417.zip
Add ReadmeHEADmaster
Secure dbCredentials Add screenshot
Diffstat (limited to 'public/php')
-rw-r--r--public/php/dbCredentials.php5
-rw-r--r--public/php/fia.php2
2 files changed, 1 insertions, 6 deletions
diff --git a/public/php/dbCredentials.php b/public/php/dbCredentials.php
deleted file mode 100644
index b13e420..0000000
--- a/public/php/dbCredentials.php
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
- $apiKey = "secureApiKey123(!*";
- $dbUser = "admin";
- $dbPassword = "qwerty123";
- $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";