summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-05-13 19:25:58 +0200
committerRaindropsSys <contact@minteck.org>2023-05-13 19:25:58 +0200
commit30c7a27273e2a023613bb2f2bd073460f3d136d1 (patch)
tree51f104ad27553fc68cfe2e886cd29aa1946ec102 /admin
parentd23fe2e21d02efb228593abf39faeef84e19a476 (diff)
downloaddelta-30c7a27273e2a023613bb2f2bd073460f3d136d1.tar.gz
delta-30c7a27273e2a023613bb2f2bd073460f3d136d1.tar.bz2
delta-30c7a27273e2a023613bb2f2bd073460f3d136d1.zip
Updated 15 files and added 6 files (automated)
Diffstat (limited to 'admin')
-rw-r--r--admin/reject/index.php4
-rw-r--r--admin/requests/index.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/admin/reject/index.php b/admin/reject/index.php
index 9125501..aee5074 100644
--- a/admin/reject/index.php
+++ b/admin/reject/index.php
@@ -41,8 +41,8 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $reques
file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $request["author"] . ".json", pf_utf8_encode(json_encode($profile, JSON_PRETTY_PRINT)));
}
-if ($request["type"] === "galleryupload" && file_exists($_SERVER['DOCUMENT_ROOT'] . "/uploads/" . $id . ".jpg")) {
- rename($_SERVER['DOCUMENT_ROOT'] . "/uploads/" . $id . ".jpg", $_SERVER['DOCUMENT_ROOT'] . "/includes/data/olduploads/" . $id . ".jpg");
+if ($request["type"] === "galleryupload" && file_exists($_SERVER['DOCUMENT_ROOT'] . "/uploads/" . $id . ".webp")) {
+ rename($_SERVER['DOCUMENT_ROOT'] . "/uploads/" . $id . ".webp", $_SERVER['DOCUMENT_ROOT'] . "/includes/data/olduploads/" . $id . ".webp");
}
rename($_SERVER['DOCUMENT_ROOT'] . "/includes/data/requests/" . $id . ".json", $_SERVER['DOCUMENT_ROOT'] . "/includes/data/archive/" . $id . ".json");
diff --git a/admin/requests/index.php b/admin/requests/index.php
index 1fd2db8..2db54c8 100644
--- a/admin/requests/index.php
+++ b/admin/requests/index.php
@@ -74,7 +74,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php";
</details>
<?php if ($request["type"] === "galleryupload"): ?>
- <p><img src="/uploads/<?= $request["_id"] ?>.jpg" style="max-width: 30vw; max-height: 30vh;"></p>
+ <p><img src="/uploads/<?= $request["_id"] ?>.webp" style="max-width: 30vw; max-height: 30vh;"></p>
<?php elseif(isset($request["contents"]) && trim($request["contents"]) !== ""): ?>
<div style="max-height: 300px; overflow: auto; background-color: rgba(0, 0, 0, .25); padding: 5px 10px; border-radius: 10px; margin-bottom: 20px;">
<?= $request["contents"] ?>