From 5f04ed73f60c6e71cbae2b88a28d76e81df64a3d Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 3 Oct 2025 21:05:53 +0500 Subject: upd: display views and upload time for moderators --- public/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index afbb209..2ee42ae 100644 --- a/public/index.php +++ b/public/index.php @@ -113,11 +113,11 @@ if (FILE_CATALOG_FANCY_VIEW && $file_id) { exit; } - if (!FILE_SHOW_UPLOADTIME) { + if (!FILE_SHOW_UPLOADTIME && !isset($_SESSION['is_moderator'])) { unset($file['uploaded_at']); } - if (!FILE_SHOW_VIEWS) { + if (!FILE_SHOW_VIEWS && !isset($_SESSION['is_moderator'])) { unset($file['views']); } @@ -291,7 +291,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');

Uploaded ago

- +

views

-- cgit v1.2.3