diff options
author | Minteck <contact@minteck.org> | 2023-02-11 18:10:10 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-11 18:10:10 +0100 |
commit | 1e10d1912cbbe4f80ee3902b2c4766ec5aa0d3d2 (patch) | |
tree | d3307970ac0ab1937af4f50e0ef5151f89be996d | |
parent | 14a175db9e48cf218450e3e7ca4cd964e2818c0d (diff) | |
download | delta-1e10d1912cbbe4f80ee3902b2c4766ec5aa0d3d2.tar.gz delta-1e10d1912cbbe4f80ee3902b2c4766ec5aa0d3d2.tar.bz2 delta-1e10d1912cbbe4f80ee3902b2c4766ec5aa0d3d2.zip |
Updated 4 files and added includes/kiosk/index.php (automated)
-rw-r--r-- | admin/approve/index.php | 2 | ||||
-rw-r--r-- | admin/index.php | 2 | ||||
-rw-r--r-- | admin/reject/index.php | 2 | ||||
-rw-r--r-- | includes/kiosk/index.php | 1 | ||||
-rw-r--r-- | requests/delete/index.php | 2 |
5 files changed, 5 insertions, 4 deletions
diff --git a/admin/approve/index.php b/admin/approve/index.php index 71697a1..2fd233b 100644 --- a/admin/approve/index.php +++ b/admin/approve/index.php @@ -23,7 +23,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $reques while (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")) === "") {} $profile = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")), true); - loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang"); + loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang", $profile["language"]); $index = array_search($id, $profile["requests"]); diff --git a/admin/index.php b/admin/index.php index 5961ac8..cfd4cda 100644 --- a/admin/index.php +++ b/admin/index.php @@ -121,7 +121,7 @@ usort($keys, function ($a, $b) { <details style="margin-bottom: 1rem;"> <summary>View full request object</summary> - <pre style="margin-bottom: 0;"><?= json_encode($request, JSON_PRETTY_PRINT) ?></pre> + <pre style="margin-bottom: 0;"><?= str_replace(">", ">", str_replace("<", "<", json_encode($request, JSON_PRETTY_PRINT))) ?></pre> </details> <?php if ($request["type"] === "galleryupload"): ?> diff --git a/admin/reject/index.php b/admin/reject/index.php index 2a84b43..0494076 100644 --- a/admin/reject/index.php +++ b/admin/reject/index.php @@ -23,7 +23,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $reques while (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")) === "") {} $profile = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")), true); - loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang"); + loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang", $profile["language"]); $index = array_search($id, $profile["requests"]); diff --git a/includes/kiosk/index.php b/includes/kiosk/index.php new file mode 100644 index 0000000..6892cbf --- /dev/null +++ b/includes/kiosk/index.php @@ -0,0 +1 @@ +kiosk
\ No newline at end of file diff --git a/requests/delete/index.php b/requests/delete/index.php index ff2d33b..672798f 100644 --- a/requests/delete/index.php +++ b/requests/delete/index.php @@ -27,7 +27,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $reques while (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")) === "") {} $profile = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json")), true); - loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang"); + loadLang(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/lang/" . $profile["language"] . ".json"), true), "lang", $profile["language"]); $index = array_search($id, $profile["requests"]); |