From 1ce4d8f98b4b0173367dd060e3714c527666b368 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 27 Jul 2025 11:35:21 +0500 Subject: feat: options to hide upload time and views publicly --- public/index.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index a3cd415..4d469b5 100644 --- a/public/index.php +++ b/public/index.php @@ -114,6 +114,14 @@ if (FILE_CATALOG_FANCY_VIEW && $file_id) { exit; } + if (!FILE_SHOW_UPLOADTIME) { + unset($file['uploaded_at']); + } + + if (!FILE_SHOW_VIEWS) { + unset($file['views']); + } + if (IS_JSON_REQUEST) { unset($file['password']); $file['urls'] = [ @@ -279,9 +287,11 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');

-

Uploaded ago -

- + +

Uploaded ago +

+ +

views

-- cgit v1.2.3