From 8cc1f13c17fa2fb5a4410542d39e650e02945634 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 14:20:13 +0100 Subject: Updated 27 files, added assets/uploads/pt-twilightsparkle.png and deleted 3 files (automated) --- pages/docs.inc | 77 ++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 50 insertions(+), 27 deletions(-) (limited to 'pages/docs.inc') diff --git a/pages/docs.inc b/pages/docs.inc index f4ffcc3..5e0ac65 100644 --- a/pages/docs.inc +++ b/pages/docs.inc @@ -34,6 +34,19 @@ if ($select === "add") { require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; +function showDocument($item) { ?> +
+   + + Deleting in hours + + + "> + + +
+
@@ -249,57 +262,67 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc'; } } + foreach ($categories as $category => $_) { + uasort($categories[$category], function ($a, $b) { + return preg_replace("/[^a-z\d]/m", "", strtolower($b["name"])) < preg_replace("/[^a-z\d]/m", "", strtolower($a["name"])); + }); + } + + foreach ($categoryFirst as $category => $_) { + uasort($categoryFirst[$category], function ($a, $b) { + return preg_replace("/[^a-z\d]/m", "", strtolower($b["name"])) < preg_replace("/[^a-z\d]/m", "", strtolower($a["name"])); + }); + } + uasort($unsorted, function ($a, $b) { - return $b["last"]["date"] - $a["last"]["date"]; + return preg_replace("/[^a-z\d]/m", "", strtolower($b["name"])) < preg_replace("/[^a-z\d]/m", "", strtolower($a["name"])); }); uasort($deletable, function ($a, $b) { - return $b["last"]["date"] - $a["last"]["date"]; + return preg_replace("/[^a-z\d]/m", "", strtolower($b["name"])) < preg_replace("/[^a-z\d]/m", "", strtolower($a["name"])); }); $fullList = [...$categoryFirst, ...$categories]; ?> - $items): ?> + $items): if ($category != "Archives"): ?>

" id="document-" class="list-group-item list-group-item-action document-listing opacity-75"> -   - - Deleting in hours - - "> - +

- +

Unsorted

" id="document-" class="list-group-item list-group-item-action document-listing opacity-75"> -   - - Deleting in hours - - "> - +

-

Marked for deletion

- - " id="document-" class="list-group-item list-group-item-action document-listing opacity-75"> -   - - Deleting in hours - - "> - - -
+
+ Show archives and marked for deletion + +

Archives

+ + +
+

Marked for deletion

+

-- cgit