From 866a6930e141ae2c56acb0aade801440f19180c5 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 6 Oct 2025 14:12:12 +0500 Subject: feat: description tag + robots tag --- public/index.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index 7aeff6e..dd92e66 100644 --- a/public/index.php +++ b/public/index.php @@ -159,6 +159,17 @@ if (FILE_CATALOG_FANCY_VIEW && $file_id) { } $file['resolution'] = implode(' ', $file['resolution']) ?: null; + + $file['html_description'] = $file['mime'] . ' - ' . $file['extension']; + if (isset($file['views'])) { + $file['html_description'] .= " - {$file['views']} views"; + } + if (isset($file['uploaded_at'])) { + $file['html_description'] .= ' - Uploaded ' . format_timestamp(strtotime($file['uploaded_at'])) . ' ago'; + } + if (isset($file['resolution'])) { + $file['html_description'] .= " - {$file['resolution']}"; + } } $tos_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/TOS.txt'); @@ -170,17 +181,19 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt'); <?= $file['name'] ?> - <?= INSTANCE_NAME ?> - + " /> + <?= INSTANCE_NAME ?> + + -- cgit v1.2.3