diff options
author | Minteck <contact@minteck.org> | 2022-11-16 17:58:38 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-11-16 17:58:38 +0100 |
commit | f850a8a53efd719fef6c8784c5af7b89dd9a6a2f (patch) | |
tree | 87ff8becfdc620329516cb6d5348a997fc38df83 | |
parent | 209356b8ade1920b50d1d3a1a5e121c6623d167b (diff) | |
download | pluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.tar.gz pluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.tar.bz2 pluralconnect-f850a8a53efd719fef6c8784c5af7b89dd9a6a2f.zip |
Big update
-rw-r--r-- | .idea/discord.xml | 7 | ||||
-rw-r--r-- | app/fronters/ponies/eebmh.png | bin | 0 -> 5344 bytes | |||
-rw-r--r-- | app/fronters/profiles/auvwc.png | bin | 504733 -> 504733 bytes | |||
-rw-r--r-- | app/fronters/profiles/bbrig.png | bin | 148262 -> 148262 bytes | |||
-rw-r--r-- | app/fronters/profiles/ckqsw.png | bin | 1559833 -> 1559833 bytes | |||
-rw-r--r-- | app/fronters/profiles/dogwu.png | bin | 2055 -> 2055 bytes | |||
-rw-r--r-- | app/fronters/profiles/eebmh.png | bin | 0 -> 570974 bytes | |||
-rw-r--r-- | app/fronters/profiles/erefx.png | bin | 826530 -> 826530 bytes | |||
-rw-r--r-- | app/fronters/profiles/erknz.png | bin | 56915 -> 56915 bytes | |||
-rw-r--r-- | app/fronters/profiles/exnwc.png | bin | 226883 -> 226883 bytes | |||
-rw-r--r-- | app/fronters/profiles/fdaay.png | bin | 181311 -> 181311 bytes | |||
-rw-r--r-- | app/fronters/profiles/gevde.png | bin | 218853 -> 218853 bytes | |||
-rw-r--r-- | app/fronters/profiles/gfhsr.png | bin | 2283131 -> 2283131 bytes | |||
-rw-r--r-- | app/fronters/profiles/ghrby.png | bin | 167497 -> 167497 bytes | |||
-rw-r--r-- | app/fronters/profiles/hpwyq.png | bin | 2770 -> 2770 bytes | |||
-rw-r--r-- | app/fronters/profiles/irxyh.png | bin | 26543 -> 26543 bytes | |||
-rw-r--r-- | app/fronters/profiles/jnbae.png | bin | 60223 -> 60223 bytes | |||
-rw-r--r-- | app/fronters/profiles/khsbb.png | bin | 249236 -> 249236 bytes | |||
-rw-r--r-- | app/fronters/profiles/kkhbw.png | bin | 40300 -> 40300 bytes | |||
-rw-r--r-- | app/fronters/profiles/lllfw.png | bin | 745786 -> 560601 bytes | |||
-rw-r--r-- | app/fronters/profiles/lqahp.png | bin | 0 -> 1542918 bytes | |||
-rw-r--r-- | app/fronters/profiles/lzlaq.png | bin | 26543 -> 26543 bytes | |||
-rw-r--r-- | app/fronters/profiles/mglyq.png | bin | 91476 -> 91476 bytes | |||
-rw-r--r-- | app/fronters/profiles/mhnqy.png | bin | 27452 -> 27452 bytes | |||
-rw-r--r-- | app/fronters/profiles/mvaws.png | bin | 473421 -> 473421 bytes | |||
-rw-r--r-- | app/fronters/profiles/pabmo.png | bin | 180390 -> 180390 bytes | |||
-rw-r--r-- | app/fronters/profiles/ptgor.png | bin | 0 -> 70342 bytes | |||
-rw-r--r-- | app/fronters/profiles/qbzxm.png | bin | 2843 -> 2843 bytes | |||
-rw-r--r-- | app/fronters/profiles/qraku.png | bin | 45898 -> 45898 bytes | |||
-rw-r--r-- | app/fronters/profiles/rdstg.png | bin | 16881 -> 16881 bytes | |||
-rw-r--r-- | app/fronters/profiles/rirgf.png | bin | 156974 -> 156974 bytes | |||
-rw-r--r-- | app/fronters/profiles/rpjok.png | bin | 1542918 -> 1542918 bytes | |||
-rw-r--r-- | app/fronters/profiles/sbxze.png | bin | 50554 -> 50554 bytes | |||
-rw-r--r-- | app/fronters/profiles/sehke.png | bin | 1947 -> 1947 bytes | |||
-rw-r--r-- | app/fronters/profiles/sjuao.png | bin | 1045570 -> 1045570 bytes | |||
-rw-r--r-- | app/fronters/profiles/tfbob.png | bin | 14049 -> 14049 bytes | |||
-rw-r--r-- | app/fronters/profiles/tjrhc.png | bin | 0 -> 40300 bytes | |||
-rw-r--r-- | app/fronters/profiles/ufadt.png | bin | 339704 -> 339704 bytes | |||
-rw-r--r-- | app/fronters/profiles/vncoa.png | bin | 46475 -> 46475 bytes | |||
-rw-r--r-- | app/fronters/profiles/vvsxf.png | bin | 61010 -> 61010 bytes | |||
-rw-r--r-- | app/fronters/profiles/xbvwt.png | bin | 70342 -> 70342 bytes | |||
-rw-r--r-- | app/fronters/profiles/xcjhj.png | bin | 107053 -> 107053 bytes | |||
-rw-r--r-- | app/fronters/profiles/yhbrc.png | bin | 494559 -> 494559 bytes | |||
-rw-r--r-- | app/fronters/profiles/zajrk.png | bin | 2097 -> 2097 bytes | |||
-rw-r--r-- | app/fronters/profiles/zdtsg.png | bin | 3046 -> 3046 bytes | |||
-rw-r--r-- | app/fronters/profiles/zhtzs.png | bin | 673763 -> 673763 bytes | |||
-rw-r--r-- | app/fronters/profiles/ztfjz.png | bin | 184686 -> 184686 bytes | |||
-rw-r--r-- | app/fronters/profiles/zzise.png | bin | 69145 -> 69145 bytes | |||
-rw-r--r-- | app/sw.js | 6 | ||||
-rw-r--r-- | assets/uploads/pt-seashell.png | bin | 0 -> 4588 bytes | |||
-rw-r--r-- | includes/refresh.php | 2 | ||||
-rw-r--r-- | pages/docs.inc | 16 |
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 Binary files differnew file mode 100644 index 0000000..9998860 --- /dev/null +++ b/app/fronters/ponies/eebmh.png diff --git a/app/fronters/profiles/auvwc.png b/app/fronters/profiles/auvwc.png Binary files differindex 4ebec21..38bb8d5 100644 --- a/app/fronters/profiles/auvwc.png +++ b/app/fronters/profiles/auvwc.png diff --git a/app/fronters/profiles/bbrig.png b/app/fronters/profiles/bbrig.png Binary files differindex ad9d01f..a874921 100644 --- a/app/fronters/profiles/bbrig.png +++ b/app/fronters/profiles/bbrig.png diff --git a/app/fronters/profiles/ckqsw.png b/app/fronters/profiles/ckqsw.png Binary files differindex 7f1069d..8a74ec0 100644 --- a/app/fronters/profiles/ckqsw.png +++ b/app/fronters/profiles/ckqsw.png diff --git a/app/fronters/profiles/dogwu.png b/app/fronters/profiles/dogwu.png Binary files differindex c008529..731f0f7 100644 --- a/app/fronters/profiles/dogwu.png +++ b/app/fronters/profiles/dogwu.png diff --git a/app/fronters/profiles/eebmh.png b/app/fronters/profiles/eebmh.png Binary files differnew file mode 100644 index 0000000..e037bf8 --- /dev/null +++ b/app/fronters/profiles/eebmh.png diff --git a/app/fronters/profiles/erefx.png b/app/fronters/profiles/erefx.png Binary files differindex 2b7fbc0..06e26b2 100644 --- a/app/fronters/profiles/erefx.png +++ b/app/fronters/profiles/erefx.png diff --git a/app/fronters/profiles/erknz.png b/app/fronters/profiles/erknz.png Binary files differindex 9345dab..5d6bb7f 100644 --- a/app/fronters/profiles/erknz.png +++ b/app/fronters/profiles/erknz.png diff --git a/app/fronters/profiles/exnwc.png b/app/fronters/profiles/exnwc.png Binary files differindex 78073f0..465d7bf 100644 --- a/app/fronters/profiles/exnwc.png +++ b/app/fronters/profiles/exnwc.png diff --git a/app/fronters/profiles/fdaay.png b/app/fronters/profiles/fdaay.png Binary files differindex 5ff88dd..03ce335 100644 --- a/app/fronters/profiles/fdaay.png +++ b/app/fronters/profiles/fdaay.png diff --git a/app/fronters/profiles/gevde.png b/app/fronters/profiles/gevde.png Binary files differindex fb804ef..2d0d73a 100644 --- a/app/fronters/profiles/gevde.png +++ b/app/fronters/profiles/gevde.png diff --git a/app/fronters/profiles/gfhsr.png b/app/fronters/profiles/gfhsr.png Binary files differindex daf55a4..09daf26 100644 --- a/app/fronters/profiles/gfhsr.png +++ b/app/fronters/profiles/gfhsr.png diff --git a/app/fronters/profiles/ghrby.png b/app/fronters/profiles/ghrby.png Binary files differindex 0463dc4..a1e3231 100644 --- a/app/fronters/profiles/ghrby.png +++ b/app/fronters/profiles/ghrby.png diff --git a/app/fronters/profiles/hpwyq.png b/app/fronters/profiles/hpwyq.png Binary files differindex 09718e6..1df8bf1 100644 --- a/app/fronters/profiles/hpwyq.png +++ b/app/fronters/profiles/hpwyq.png diff --git a/app/fronters/profiles/irxyh.png b/app/fronters/profiles/irxyh.png Binary files differindex b854fe3..d4937ff 100644 --- a/app/fronters/profiles/irxyh.png +++ b/app/fronters/profiles/irxyh.png diff --git a/app/fronters/profiles/jnbae.png b/app/fronters/profiles/jnbae.png Binary files differindex 49a3654..8b9d6f3 100644 --- a/app/fronters/profiles/jnbae.png +++ b/app/fronters/profiles/jnbae.png diff --git a/app/fronters/profiles/khsbb.png b/app/fronters/profiles/khsbb.png Binary files differindex 149d700..cdd2c7d 100644 --- a/app/fronters/profiles/khsbb.png +++ b/app/fronters/profiles/khsbb.png diff --git a/app/fronters/profiles/kkhbw.png b/app/fronters/profiles/kkhbw.png Binary files differindex bee8855..fa1a5ae 100644 --- a/app/fronters/profiles/kkhbw.png +++ b/app/fronters/profiles/kkhbw.png diff --git a/app/fronters/profiles/lllfw.png b/app/fronters/profiles/lllfw.png Binary files differindex 09bef44..7e2e24b 100644 --- a/app/fronters/profiles/lllfw.png +++ b/app/fronters/profiles/lllfw.png diff --git a/app/fronters/profiles/lqahp.png b/app/fronters/profiles/lqahp.png Binary files differnew file mode 100644 index 0000000..8ea5512 --- /dev/null +++ b/app/fronters/profiles/lqahp.png diff --git a/app/fronters/profiles/lzlaq.png b/app/fronters/profiles/lzlaq.png Binary files differindex 4863eef..85cffe4 100644 --- a/app/fronters/profiles/lzlaq.png +++ b/app/fronters/profiles/lzlaq.png diff --git a/app/fronters/profiles/mglyq.png b/app/fronters/profiles/mglyq.png Binary files differindex 940b49c..b29b2f6 100644 --- a/app/fronters/profiles/mglyq.png +++ b/app/fronters/profiles/mglyq.png diff --git a/app/fronters/profiles/mhnqy.png b/app/fronters/profiles/mhnqy.png Binary files differindex 6400bee..c2c8248 100644 --- a/app/fronters/profiles/mhnqy.png +++ b/app/fronters/profiles/mhnqy.png diff --git a/app/fronters/profiles/mvaws.png b/app/fronters/profiles/mvaws.png Binary files differindex 1b99df3..8c0dc21 100644 --- a/app/fronters/profiles/mvaws.png +++ b/app/fronters/profiles/mvaws.png diff --git a/app/fronters/profiles/pabmo.png b/app/fronters/profiles/pabmo.png Binary files differindex 0d1fe2e..4794b04 100644 --- a/app/fronters/profiles/pabmo.png +++ b/app/fronters/profiles/pabmo.png diff --git a/app/fronters/profiles/ptgor.png b/app/fronters/profiles/ptgor.png Binary files differnew file mode 100644 index 0000000..bc53c40 --- /dev/null +++ b/app/fronters/profiles/ptgor.png diff --git a/app/fronters/profiles/qbzxm.png b/app/fronters/profiles/qbzxm.png Binary files differindex ee0dea2..14b167b 100644 --- a/app/fronters/profiles/qbzxm.png +++ b/app/fronters/profiles/qbzxm.png diff --git a/app/fronters/profiles/qraku.png b/app/fronters/profiles/qraku.png Binary files differindex 394755e..f75f702 100644 --- a/app/fronters/profiles/qraku.png +++ b/app/fronters/profiles/qraku.png diff --git a/app/fronters/profiles/rdstg.png b/app/fronters/profiles/rdstg.png Binary files differindex a6f2117..26c2939 100644 --- a/app/fronters/profiles/rdstg.png +++ b/app/fronters/profiles/rdstg.png diff --git a/app/fronters/profiles/rirgf.png b/app/fronters/profiles/rirgf.png Binary files differindex 00b77dd..dc44de0 100644 --- a/app/fronters/profiles/rirgf.png +++ b/app/fronters/profiles/rirgf.png diff --git a/app/fronters/profiles/rpjok.png b/app/fronters/profiles/rpjok.png Binary files differindex 9d4538a..e77e62c 100644 --- a/app/fronters/profiles/rpjok.png +++ b/app/fronters/profiles/rpjok.png diff --git a/app/fronters/profiles/sbxze.png b/app/fronters/profiles/sbxze.png Binary files differindex 1d3817b..360562f 100644 --- a/app/fronters/profiles/sbxze.png +++ b/app/fronters/profiles/sbxze.png diff --git a/app/fronters/profiles/sehke.png b/app/fronters/profiles/sehke.png Binary files differindex e993a4d..95e00cb 100644 --- a/app/fronters/profiles/sehke.png +++ b/app/fronters/profiles/sehke.png diff --git a/app/fronters/profiles/sjuao.png b/app/fronters/profiles/sjuao.png Binary files differindex 13640af..e9ca5ba 100644 --- a/app/fronters/profiles/sjuao.png +++ b/app/fronters/profiles/sjuao.png diff --git a/app/fronters/profiles/tfbob.png b/app/fronters/profiles/tfbob.png Binary files differindex 69074c4..27c24f1 100644 --- a/app/fronters/profiles/tfbob.png +++ b/app/fronters/profiles/tfbob.png diff --git a/app/fronters/profiles/tjrhc.png b/app/fronters/profiles/tjrhc.png Binary files differnew file mode 100644 index 0000000..90501f5 --- /dev/null +++ b/app/fronters/profiles/tjrhc.png diff --git a/app/fronters/profiles/ufadt.png b/app/fronters/profiles/ufadt.png Binary files differindex 3785380..421ad2f 100644 --- a/app/fronters/profiles/ufadt.png +++ b/app/fronters/profiles/ufadt.png diff --git a/app/fronters/profiles/vncoa.png b/app/fronters/profiles/vncoa.png Binary files differindex 293e216..0c6f3a3 100644 --- a/app/fronters/profiles/vncoa.png +++ b/app/fronters/profiles/vncoa.png diff --git a/app/fronters/profiles/vvsxf.png b/app/fronters/profiles/vvsxf.png Binary files differindex 039bcac..138b61e 100644 --- a/app/fronters/profiles/vvsxf.png +++ b/app/fronters/profiles/vvsxf.png diff --git a/app/fronters/profiles/xbvwt.png b/app/fronters/profiles/xbvwt.png Binary files differindex a07cfb2..31d0d87 100644 --- a/app/fronters/profiles/xbvwt.png +++ b/app/fronters/profiles/xbvwt.png diff --git a/app/fronters/profiles/xcjhj.png b/app/fronters/profiles/xcjhj.png Binary files differindex 090d662..387c16a 100644 --- a/app/fronters/profiles/xcjhj.png +++ b/app/fronters/profiles/xcjhj.png diff --git a/app/fronters/profiles/yhbrc.png b/app/fronters/profiles/yhbrc.png Binary files differindex 101bf8c..c5c8092 100644 --- a/app/fronters/profiles/yhbrc.png +++ b/app/fronters/profiles/yhbrc.png diff --git a/app/fronters/profiles/zajrk.png b/app/fronters/profiles/zajrk.png Binary files differindex 59f6ee3..6209ab9 100644 --- a/app/fronters/profiles/zajrk.png +++ b/app/fronters/profiles/zajrk.png diff --git a/app/fronters/profiles/zdtsg.png b/app/fronters/profiles/zdtsg.png Binary files differindex 11a9a78..8826b75 100644 --- a/app/fronters/profiles/zdtsg.png +++ b/app/fronters/profiles/zdtsg.png diff --git a/app/fronters/profiles/zhtzs.png b/app/fronters/profiles/zhtzs.png Binary files differindex 727d735..11ff9ec 100644 --- a/app/fronters/profiles/zhtzs.png +++ b/app/fronters/profiles/zhtzs.png diff --git a/app/fronters/profiles/ztfjz.png b/app/fronters/profiles/ztfjz.png Binary files differindex ea4635e..53db137 100644 --- a/app/fronters/profiles/ztfjz.png +++ b/app/fronters/profiles/ztfjz.png diff --git a/app/fronters/profiles/zzise.png b/app/fronters/profiles/zzise.png Binary files differindex 401be0a..5ce368f 100644 --- a/app/fronters/profiles/zzise.png +++ b/app/fronters/profiles/zzise.png @@ -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 Binary files differnew file mode 100644 index 0000000..b28d664 --- /dev/null +++ b/assets/uploads/pt-seashell.png 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"] ?> - <?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"] ?> - <?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"] ?> - <?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> |