summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-16 17:58:38 +0100
committerMinteck <contact@minteck.org>2022-11-16 17:58:38 +0100
commitf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (patch)
tree87ff8becfdc620329516cb6d5348a997fc38df83
parent209356b8ade1920b50d1d3a1a5e121c6623d167b (diff)
downloadpluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.tar.gz
pluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.tar.bz2
pluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.zip
Big update
-rw-r--r--.idea/discord.xml7
-rw-r--r--app/fronters/ponies/eebmh.pngbin0 -> 5344 bytes
-rw-r--r--app/fronters/profiles/auvwc.pngbin504733 -> 504733 bytes
-rw-r--r--app/fronters/profiles/bbrig.pngbin148262 -> 148262 bytes
-rw-r--r--app/fronters/profiles/ckqsw.pngbin1559833 -> 1559833 bytes
-rw-r--r--app/fronters/profiles/dogwu.pngbin2055 -> 2055 bytes
-rw-r--r--app/fronters/profiles/eebmh.pngbin0 -> 570974 bytes
-rw-r--r--app/fronters/profiles/erefx.pngbin826530 -> 826530 bytes
-rw-r--r--app/fronters/profiles/erknz.pngbin56915 -> 56915 bytes
-rw-r--r--app/fronters/profiles/exnwc.pngbin226883 -> 226883 bytes
-rw-r--r--app/fronters/profiles/fdaay.pngbin181311 -> 181311 bytes
-rw-r--r--app/fronters/profiles/gevde.pngbin218853 -> 218853 bytes
-rw-r--r--app/fronters/profiles/gfhsr.pngbin2283131 -> 2283131 bytes
-rw-r--r--app/fronters/profiles/ghrby.pngbin167497 -> 167497 bytes
-rw-r--r--app/fronters/profiles/hpwyq.pngbin2770 -> 2770 bytes
-rw-r--r--app/fronters/profiles/irxyh.pngbin26543 -> 26543 bytes
-rw-r--r--app/fronters/profiles/jnbae.pngbin60223 -> 60223 bytes
-rw-r--r--app/fronters/profiles/khsbb.pngbin249236 -> 249236 bytes
-rw-r--r--app/fronters/profiles/kkhbw.pngbin40300 -> 40300 bytes
-rw-r--r--app/fronters/profiles/lllfw.pngbin745786 -> 560601 bytes
-rw-r--r--app/fronters/profiles/lqahp.pngbin0 -> 1542918 bytes
-rw-r--r--app/fronters/profiles/lzlaq.pngbin26543 -> 26543 bytes
-rw-r--r--app/fronters/profiles/mglyq.pngbin91476 -> 91476 bytes
-rw-r--r--app/fronters/profiles/mhnqy.pngbin27452 -> 27452 bytes
-rw-r--r--app/fronters/profiles/mvaws.pngbin473421 -> 473421 bytes
-rw-r--r--app/fronters/profiles/pabmo.pngbin180390 -> 180390 bytes
-rw-r--r--app/fronters/profiles/ptgor.pngbin0 -> 70342 bytes
-rw-r--r--app/fronters/profiles/qbzxm.pngbin2843 -> 2843 bytes
-rw-r--r--app/fronters/profiles/qraku.pngbin45898 -> 45898 bytes
-rw-r--r--app/fronters/profiles/rdstg.pngbin16881 -> 16881 bytes
-rw-r--r--app/fronters/profiles/rirgf.pngbin156974 -> 156974 bytes
-rw-r--r--app/fronters/profiles/rpjok.pngbin1542918 -> 1542918 bytes
-rw-r--r--app/fronters/profiles/sbxze.pngbin50554 -> 50554 bytes
-rw-r--r--app/fronters/profiles/sehke.pngbin1947 -> 1947 bytes
-rw-r--r--app/fronters/profiles/sjuao.pngbin1045570 -> 1045570 bytes
-rw-r--r--app/fronters/profiles/tfbob.pngbin14049 -> 14049 bytes
-rw-r--r--app/fronters/profiles/tjrhc.pngbin0 -> 40300 bytes
-rw-r--r--app/fronters/profiles/ufadt.pngbin339704 -> 339704 bytes
-rw-r--r--app/fronters/profiles/vncoa.pngbin46475 -> 46475 bytes
-rw-r--r--app/fronters/profiles/vvsxf.pngbin61010 -> 61010 bytes
-rw-r--r--app/fronters/profiles/xbvwt.pngbin70342 -> 70342 bytes
-rw-r--r--app/fronters/profiles/xcjhj.pngbin107053 -> 107053 bytes
-rw-r--r--app/fronters/profiles/yhbrc.pngbin494559 -> 494559 bytes
-rw-r--r--app/fronters/profiles/zajrk.pngbin2097 -> 2097 bytes
-rw-r--r--app/fronters/profiles/zdtsg.pngbin3046 -> 3046 bytes
-rw-r--r--app/fronters/profiles/zhtzs.pngbin673763 -> 673763 bytes
-rw-r--r--app/fronters/profiles/ztfjz.pngbin184686 -> 184686 bytes
-rw-r--r--app/fronters/profiles/zzise.pngbin69145 -> 69145 bytes
-rw-r--r--app/sw.js6
-rw-r--r--assets/uploads/pt-seashell.pngbin0 -> 4588 bytes
-rw-r--r--includes/refresh.php2
-rw-r--r--pages/docs.inc16
52 files changed, 22 insertions, 9 deletions
diff --git a/.idea/discord.xml b/.idea/discord.xml
new file mode 100644
index 0000000..d8e9561
--- /dev/null
+++ b/.idea/discord.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="DiscordProjectSettings">
+ <option name="show" value="PROJECT_FILES" />
+ <option name="description" value="" />
+ </component>
+</project> \ No newline at end of file
diff --git a/app/fronters/ponies/eebmh.png b/app/fronters/ponies/eebmh.png
new file mode 100644
index 0000000..9998860
--- /dev/null
+++ b/app/fronters/ponies/eebmh.png
Binary files differ
diff --git a/app/fronters/profiles/auvwc.png b/app/fronters/profiles/auvwc.png
index 4ebec21..38bb8d5 100644
--- a/app/fronters/profiles/auvwc.png
+++ b/app/fronters/profiles/auvwc.png
Binary files differ
diff --git a/app/fronters/profiles/bbrig.png b/app/fronters/profiles/bbrig.png
index ad9d01f..a874921 100644
--- a/app/fronters/profiles/bbrig.png
+++ b/app/fronters/profiles/bbrig.png
Binary files differ
diff --git a/app/fronters/profiles/ckqsw.png b/app/fronters/profiles/ckqsw.png
index 7f1069d..8a74ec0 100644
--- a/app/fronters/profiles/ckqsw.png
+++ b/app/fronters/profiles/ckqsw.png
Binary files differ
diff --git a/app/fronters/profiles/dogwu.png b/app/fronters/profiles/dogwu.png
index c008529..731f0f7 100644
--- a/app/fronters/profiles/dogwu.png
+++ b/app/fronters/profiles/dogwu.png
Binary files differ
diff --git a/app/fronters/profiles/eebmh.png b/app/fronters/profiles/eebmh.png
new file mode 100644
index 0000000..e037bf8
--- /dev/null
+++ b/app/fronters/profiles/eebmh.png
Binary files differ
diff --git a/app/fronters/profiles/erefx.png b/app/fronters/profiles/erefx.png
index 2b7fbc0..06e26b2 100644
--- a/app/fronters/profiles/erefx.png
+++ b/app/fronters/profiles/erefx.png
Binary files differ
diff --git a/app/fronters/profiles/erknz.png b/app/fronters/profiles/erknz.png
index 9345dab..5d6bb7f 100644
--- a/app/fronters/profiles/erknz.png
+++ b/app/fronters/profiles/erknz.png
Binary files differ
diff --git a/app/fronters/profiles/exnwc.png b/app/fronters/profiles/exnwc.png
index 78073f0..465d7bf 100644
--- a/app/fronters/profiles/exnwc.png
+++ b/app/fronters/profiles/exnwc.png
Binary files differ
diff --git a/app/fronters/profiles/fdaay.png b/app/fronters/profiles/fdaay.png
index 5ff88dd..03ce335 100644
--- a/app/fronters/profiles/fdaay.png
+++ b/app/fronters/profiles/fdaay.png
Binary files differ
diff --git a/app/fronters/profiles/gevde.png b/app/fronters/profiles/gevde.png
index fb804ef..2d0d73a 100644
--- a/app/fronters/profiles/gevde.png
+++ b/app/fronters/profiles/gevde.png
Binary files differ
diff --git a/app/fronters/profiles/gfhsr.png b/app/fronters/profiles/gfhsr.png
index daf55a4..09daf26 100644
--- a/app/fronters/profiles/gfhsr.png
+++ b/app/fronters/profiles/gfhsr.png
Binary files differ
diff --git a/app/fronters/profiles/ghrby.png b/app/fronters/profiles/ghrby.png
index 0463dc4..a1e3231 100644
--- a/app/fronters/profiles/ghrby.png
+++ b/app/fronters/profiles/ghrby.png
Binary files differ
diff --git a/app/fronters/profiles/hpwyq.png b/app/fronters/profiles/hpwyq.png
index 09718e6..1df8bf1 100644
--- a/app/fronters/profiles/hpwyq.png
+++ b/app/fronters/profiles/hpwyq.png
Binary files differ
diff --git a/app/fronters/profiles/irxyh.png b/app/fronters/profiles/irxyh.png
index b854fe3..d4937ff 100644
--- a/app/fronters/profiles/irxyh.png
+++ b/app/fronters/profiles/irxyh.png
Binary files differ
diff --git a/app/fronters/profiles/jnbae.png b/app/fronters/profiles/jnbae.png
index 49a3654..8b9d6f3 100644
--- a/app/fronters/profiles/jnbae.png
+++ b/app/fronters/profiles/jnbae.png
Binary files differ
diff --git a/app/fronters/profiles/khsbb.png b/app/fronters/profiles/khsbb.png
index 149d700..cdd2c7d 100644
--- a/app/fronters/profiles/khsbb.png
+++ b/app/fronters/profiles/khsbb.png
Binary files differ
diff --git a/app/fronters/profiles/kkhbw.png b/app/fronters/profiles/kkhbw.png
index bee8855..fa1a5ae 100644
--- a/app/fronters/profiles/kkhbw.png
+++ b/app/fronters/profiles/kkhbw.png
Binary files differ
diff --git a/app/fronters/profiles/lllfw.png b/app/fronters/profiles/lllfw.png
index 09bef44..7e2e24b 100644
--- a/app/fronters/profiles/lllfw.png
+++ b/app/fronters/profiles/lllfw.png
Binary files differ
diff --git a/app/fronters/profiles/lqahp.png b/app/fronters/profiles/lqahp.png
new file mode 100644
index 0000000..8ea5512
--- /dev/null
+++ b/app/fronters/profiles/lqahp.png
Binary files differ
diff --git a/app/fronters/profiles/lzlaq.png b/app/fronters/profiles/lzlaq.png
index 4863eef..85cffe4 100644
--- a/app/fronters/profiles/lzlaq.png
+++ b/app/fronters/profiles/lzlaq.png
Binary files differ
diff --git a/app/fronters/profiles/mglyq.png b/app/fronters/profiles/mglyq.png
index 940b49c..b29b2f6 100644
--- a/app/fronters/profiles/mglyq.png
+++ b/app/fronters/profiles/mglyq.png
Binary files differ
diff --git a/app/fronters/profiles/mhnqy.png b/app/fronters/profiles/mhnqy.png
index 6400bee..c2c8248 100644
--- a/app/fronters/profiles/mhnqy.png
+++ b/app/fronters/profiles/mhnqy.png
Binary files differ
diff --git a/app/fronters/profiles/mvaws.png b/app/fronters/profiles/mvaws.png
index 1b99df3..8c0dc21 100644
--- a/app/fronters/profiles/mvaws.png
+++ b/app/fronters/profiles/mvaws.png
Binary files differ
diff --git a/app/fronters/profiles/pabmo.png b/app/fronters/profiles/pabmo.png
index 0d1fe2e..4794b04 100644
--- a/app/fronters/profiles/pabmo.png
+++ b/app/fronters/profiles/pabmo.png
Binary files differ
diff --git a/app/fronters/profiles/ptgor.png b/app/fronters/profiles/ptgor.png
new file mode 100644
index 0000000..bc53c40
--- /dev/null
+++ b/app/fronters/profiles/ptgor.png
Binary files differ
diff --git a/app/fronters/profiles/qbzxm.png b/app/fronters/profiles/qbzxm.png
index ee0dea2..14b167b 100644
--- a/app/fronters/profiles/qbzxm.png
+++ b/app/fronters/profiles/qbzxm.png
Binary files differ
diff --git a/app/fronters/profiles/qraku.png b/app/fronters/profiles/qraku.png
index 394755e..f75f702 100644
--- a/app/fronters/profiles/qraku.png
+++ b/app/fronters/profiles/qraku.png
Binary files differ
diff --git a/app/fronters/profiles/rdstg.png b/app/fronters/profiles/rdstg.png
index a6f2117..26c2939 100644
--- a/app/fronters/profiles/rdstg.png
+++ b/app/fronters/profiles/rdstg.png
Binary files differ
diff --git a/app/fronters/profiles/rirgf.png b/app/fronters/profiles/rirgf.png
index 00b77dd..dc44de0 100644
--- a/app/fronters/profiles/rirgf.png
+++ b/app/fronters/profiles/rirgf.png
Binary files differ
diff --git a/app/fronters/profiles/rpjok.png b/app/fronters/profiles/rpjok.png
index 9d4538a..e77e62c 100644
--- a/app/fronters/profiles/rpjok.png
+++ b/app/fronters/profiles/rpjok.png
Binary files differ
diff --git a/app/fronters/profiles/sbxze.png b/app/fronters/profiles/sbxze.png
index 1d3817b..360562f 100644
--- a/app/fronters/profiles/sbxze.png
+++ b/app/fronters/profiles/sbxze.png
Binary files differ
diff --git a/app/fronters/profiles/sehke.png b/app/fronters/profiles/sehke.png
index e993a4d..95e00cb 100644
--- a/app/fronters/profiles/sehke.png
+++ b/app/fronters/profiles/sehke.png
Binary files differ
diff --git a/app/fronters/profiles/sjuao.png b/app/fronters/profiles/sjuao.png
index 13640af..e9ca5ba 100644
--- a/app/fronters/profiles/sjuao.png
+++ b/app/fronters/profiles/sjuao.png
Binary files differ
diff --git a/app/fronters/profiles/tfbob.png b/app/fronters/profiles/tfbob.png
index 69074c4..27c24f1 100644
--- a/app/fronters/profiles/tfbob.png
+++ b/app/fronters/profiles/tfbob.png
Binary files differ
diff --git a/app/fronters/profiles/tjrhc.png b/app/fronters/profiles/tjrhc.png
new file mode 100644
index 0000000..90501f5
--- /dev/null
+++ b/app/fronters/profiles/tjrhc.png
Binary files differ
diff --git a/app/fronters/profiles/ufadt.png b/app/fronters/profiles/ufadt.png
index 3785380..421ad2f 100644
--- a/app/fronters/profiles/ufadt.png
+++ b/app/fronters/profiles/ufadt.png
Binary files differ
diff --git a/app/fronters/profiles/vncoa.png b/app/fronters/profiles/vncoa.png
index 293e216..0c6f3a3 100644
--- a/app/fronters/profiles/vncoa.png
+++ b/app/fronters/profiles/vncoa.png
Binary files differ
diff --git a/app/fronters/profiles/vvsxf.png b/app/fronters/profiles/vvsxf.png
index 039bcac..138b61e 100644
--- a/app/fronters/profiles/vvsxf.png
+++ b/app/fronters/profiles/vvsxf.png
Binary files differ
diff --git a/app/fronters/profiles/xbvwt.png b/app/fronters/profiles/xbvwt.png
index a07cfb2..31d0d87 100644
--- a/app/fronters/profiles/xbvwt.png
+++ b/app/fronters/profiles/xbvwt.png
Binary files differ
diff --git a/app/fronters/profiles/xcjhj.png b/app/fronters/profiles/xcjhj.png
index 090d662..387c16a 100644
--- a/app/fronters/profiles/xcjhj.png
+++ b/app/fronters/profiles/xcjhj.png
Binary files differ
diff --git a/app/fronters/profiles/yhbrc.png b/app/fronters/profiles/yhbrc.png
index 101bf8c..c5c8092 100644
--- a/app/fronters/profiles/yhbrc.png
+++ b/app/fronters/profiles/yhbrc.png
Binary files differ
diff --git a/app/fronters/profiles/zajrk.png b/app/fronters/profiles/zajrk.png
index 59f6ee3..6209ab9 100644
--- a/app/fronters/profiles/zajrk.png
+++ b/app/fronters/profiles/zajrk.png
Binary files differ
diff --git a/app/fronters/profiles/zdtsg.png b/app/fronters/profiles/zdtsg.png
index 11a9a78..8826b75 100644
--- a/app/fronters/profiles/zdtsg.png
+++ b/app/fronters/profiles/zdtsg.png
Binary files differ
diff --git a/app/fronters/profiles/zhtzs.png b/app/fronters/profiles/zhtzs.png
index 727d735..11ff9ec 100644
--- a/app/fronters/profiles/zhtzs.png
+++ b/app/fronters/profiles/zhtzs.png
Binary files differ
diff --git a/app/fronters/profiles/ztfjz.png b/app/fronters/profiles/ztfjz.png
index ea4635e..53db137 100644
--- a/app/fronters/profiles/ztfjz.png
+++ b/app/fronters/profiles/ztfjz.png
Binary files differ
diff --git a/app/fronters/profiles/zzise.png b/app/fronters/profiles/zzise.png
index 401be0a..5ce368f 100644
--- a/app/fronters/profiles/zzise.png
+++ b/app/fronters/profiles/zzise.png
Binary files differ
diff --git a/app/sw.js b/app/sw.js
index d83338d..41f7e85 100644
--- a/app/sw.js
+++ b/app/sw.js
@@ -60,6 +60,7 @@ let filesToCache = [
"/app/fronters/ponies/auvwc.png",
"/app/fronters/ponies/bbrig.png",
"/app/fronters/ponies/ckqsw.png",
+ "/app/fronters/ponies/eebmh.png",
"/app/fronters/ponies/erefx.png",
"/app/fronters/ponies/erknz.png",
"/app/fronters/ponies/exnwc.png",
@@ -102,6 +103,7 @@ let filesToCache = [
"/app/fronters/profiles/cmeyc.png",
"/app/fronters/profiles/djnko.png",
"/app/fronters/profiles/dogwu.png",
+ "/app/fronters/profiles/eebmh.png",
"/app/fronters/profiles/epvhq.png",
"/app/fronters/profiles/erefx.png",
"/app/fronters/profiles/erknz.png",
@@ -129,6 +131,7 @@ let filesToCache = [
"/app/fronters/profiles/kkhbw.png",
"/app/fronters/profiles/kzfjn.png",
"/app/fronters/profiles/lllfw.png",
+ "/app/fronters/profiles/lqahp.png",
"/app/fronters/profiles/lyotd.png",
"/app/fronters/profiles/lzlaq.png",
"/app/fronters/profiles/mglyq.png",
@@ -140,6 +143,7 @@ let filesToCache = [
"/app/fronters/profiles/olwbl.png",
"/app/fronters/profiles/pabmo.png",
"/app/fronters/profiles/ppukh.png",
+ "/app/fronters/profiles/ptgor.png",
"/app/fronters/profiles/ptgqh.png",
"/app/fronters/profiles/qbzxm.png",
"/app/fronters/profiles/qlsfo.png",
@@ -159,6 +163,7 @@ let filesToCache = [
"/app/fronters/profiles/tarnv.png",
"/app/fronters/profiles/tfbob.png",
"/app/fronters/profiles/tgxst.png",
+ "/app/fronters/profiles/tjrhc.png",
"/app/fronters/profiles/tmgiu.png",
"/app/fronters/profiles/tmogp.png",
"/app/fronters/profiles/trefr.png",
@@ -235,6 +240,7 @@ let filesToCache = [
"/assets/uploads/pt-poseybloom.png",
"/assets/uploads/pt-rainbowdash.png",
"/assets/uploads/pt-scootaloo.png",
+ "/assets/uploads/pt-seashell.png",
"/assets/uploads/pt-skydream.png",
"/assets/uploads/pt-smolscoots.png",
"/assets/uploads/pt-smolsunny.png",
diff --git a/assets/uploads/pt-seashell.png b/assets/uploads/pt-seashell.png
new file mode 100644
index 0000000..b28d664
--- /dev/null
+++ b/assets/uploads/pt-seashell.png
Binary files differ
diff --git a/includes/refresh.php b/includes/refresh.php
index fefebb2..18c01ed 100644
--- a/includes/refresh.php
+++ b/includes/refresh.php
@@ -31,7 +31,7 @@ $documents = array_map(function ($i) {
}));
$deletable = array_values(array_filter($documents, function ($i) {
- return strip_tags($i["contents"]) === "/delete";
+ return str_starts_with(strip_tags($i["contents"]), "/delete");
}));
foreach ($deletable as $item) {
diff --git a/pages/docs.inc b/pages/docs.inc
index 6d01489..ff97ed3 100644
--- a/pages/docs.inc
+++ b/pages/docs.inc
@@ -215,10 +215,10 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
}));
$deletable = array_values(array_filter($documents, function ($i) {
- return strip_tags($i["contents"]) === "/delete";
+ return str_starts_with(strip_tags($i["contents"]), "/delete");
}));
$unsorted_pre = array_values(array_filter($documents, function ($i) {
- return strip_tags($i["contents"]) !== "/delete";
+ return !str_starts_with(strip_tags($i["contents"]), "/delete");
}));
$categoryFirst = [];
@@ -264,9 +264,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
<?php foreach ($fullList as $category => $items): ?>
<h4><?= str_starts_with($category, ".") ? substr($category, 1) : $category ?></h4><div class="list-group">
<?php foreach ($items as $item): ?>
- <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (strip_tags($item["contents"]) === "/delete"): ?>opacity-75<?php endif; ?>">
+ <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>opacity-75<?php endif; ?>">
<?= $item["name"] ?>&nbsp;
- <?php if (strip_tags($item["contents"]) === "/delete"): ?>
+ <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>
<span class="badge bg-warning rounded-pill text-black">Deleting in <?= round((($item["last"]["date"] + 86400) - time()) / 3600) ?> hours</span>
<?php else: ?>
<span class="relative-time text-muted" data-relative-timestamp="<?= $item["last"]["date"] ?>"><?= timeAgo($item["last"]["date"]) ?></span>
@@ -278,9 +278,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
<h4>Unsorted</h4><div class="list-group">
<?php foreach ($unsorted as $item): ?>
- <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (strip_tags($item["contents"]) === "/delete"): ?>opacity-75<?php endif; ?>">
+ <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>opacity-75<?php endif; ?>">
<?= $item["name"] ?>&nbsp;
- <?php if (strip_tags($item["contents"]) === "/delete"): ?>
+ <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>
<span class="badge bg-warning rounded-pill text-black">Deleting in <?= round((($item["last"]["date"] + 86400) - time()) / 3600) ?> hours</span>
<?php else: ?>
<span class="relative-time text-muted" data-relative-timestamp="<?= $item["last"]["date"] ?>"><?= timeAgo($item["last"]["date"]) ?></span>
@@ -291,9 +291,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
<hr>
<h4 id="deletable">Marked for deletion</h4><div class="list-group">
<?php foreach ($deletable as $item): ?>
- <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (strip_tags($item["contents"]) === "/delete"): ?>opacity-75<?php endif; ?>">
+ <a href="/-/docs/<?= $item["id"] ?>" id="document-<?= $item["id"] ?>" class="list-group-item list-group-item-action document-listing <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>opacity-75<?php endif; ?>">
<?= $item["name"] ?>&nbsp;
- <?php if (strip_tags($item["contents"]) === "/delete"): ?>
+ <?php if (str_starts_with(strip_tags($item["contents"]), "/delete")): ?>
<span class="badge bg-warning rounded-pill text-black">Deleting in <?= round((($item["last"]["date"] + 86400) - time()) / 3600) ?> hours</span>
<?php else: ?>
<span class="relative-time text-muted" data-relative-timestamp="<?= $item["last"]["date"] ?>"><?= timeAgo($item["last"]["date"]) ?></span>