summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-20 22:36:18 +0100
committerMinteck <contact@minteck.org>2023-02-20 22:36:18 +0100
commit97cbc28a2d23c3ee182256361516e2a16bb75d8b (patch)
tree00933de2dbd1d8ea606bcae7a443e6dc3aebe195 /admin
parent1404aa95c8a4db214f06d63c4ed0d89fdf89cb4b (diff)
downloaddelta-97cbc28a2d23c3ee182256361516e2a16bb75d8b.tar.gz
delta-97cbc28a2d23c3ee182256361516e2a16bb75d8b.tar.bz2
delta-97cbc28a2d23c3ee182256361516e2a16bb75d8b.zip
Updated 17 files and deleted 168 files (automated)
Diffstat (limited to 'admin')
-rw-r--r--admin/edit/index.php1
-rw-r--r--admin/requests/index.php4
-rw-r--r--admin/support/index.php2
3 files changed, 5 insertions, 2 deletions
diff --git a/admin/edit/index.php b/admin/edit/index.php
index 2e2a508..b527529 100644
--- a/admin/edit/index.php
+++ b/admin/edit/index.php
@@ -78,6 +78,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php";
<li>parent</li>
<li>grandparent</li>
<li>child</li>
+ <li>grandchild</li>
<li>bride (partner)</li>
<li>sibling</li>
</ul>
diff --git a/admin/requests/index.php b/admin/requests/index.php
index c9189d1..7db6964 100644
--- a/admin/requests/index.php
+++ b/admin/requests/index.php
@@ -75,8 +75,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php";
<?php if ($request["type"] === "galleryupload"): ?>
<p><img src="/uploads/<?= $request["_id"] ?>.jpg" style="max-width: 30vw; max-height: 30vh;"></p>
+ <?php elseif(isset($request["contents"]) && trim($request["contents"]) !== ""): ?>
+ <iframe style="width: 100%; background: white;" src="data:text/html;base64,<?= base64_encode("<html><head><meta charset='utf-8'></head><body>" . $request["contents"] . "</body></html>") ?>"></iframe>
<?php else: ?>
- <pre><?= isset($request["contents"]) && trim($request["contents"]) !== "" ? htmlentities($request["contents"]) : "[No contents provided]" ?></pre>
+ <pre>[No contents provided]</pre>
<?php endif; ?>
<a class="btn btn-outline-success" href="/admin/approve/?id=<?= $request["_id"] ?>"><?php if ($request["type"] !== "article" && $request["type"] !== "gallerymeta" && $request["type"] !== "galleryupload" && $request["type"] !== "userpage"): ?>Mark as approved<?php else: ?>Approve and merge<?php endif; ?></a><?php if (!($request["type"] !== "article" && $request["type"] !== "gallerymeta" && $request["type"] !== "galleryupload" && $request["type"] !== "userpage")): ?> <a href="/admin/approve/?id=<?= $request["_id"] ?>&mark" class="btn btn-outline-warning">Mark as approved</a><?php endif; ?> <a href="/admin/reject/?id=<?= $request["_id"] ?>" class="btn btn-outline-danger">Reject</a><br>
diff --git a/admin/support/index.php b/admin/support/index.php
index 072c7e0..8c666bc 100644
--- a/admin/support/index.php
+++ b/admin/support/index.php
@@ -40,7 +40,7 @@ $codes = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/da
<?= l("lang_support_issues_" . $codes[$code]["type"][0]) ?> > <?= l("lang_support_types_" . $codes[$code]["type"][0] . "_" . $codes[$code]["type"][1]) ?></p>
<b>Full user profile: (<a href="/admin/edit/?id=<?= $codes[$code]["user"] ?>" target="_blank">edit</a>)</b>
- <pre><?= json_encode($profile, JSON_PRETTY_PRINT) ?></pre>
+ <pre><?= str_replace(">", "&gt;", str_replace("<", "&lt;", json_encode($profile, JSON_PRETTY_PRINT))) ?></pre>
<?php else: ?>
<div class="alert alert-danger">
<b>Error:</b> This support code has expired or has does not exist.