From f3475035c242978d16eb3f597f9a1d2aae31b625 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 13 Jun 2023 23:20:22 +0300 Subject: [PATCH] show page size in explorer view, hide not available data --- library/mysql.php | 1 + public/explore.php | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/library/mysql.php b/library/mysql.php index 8e89062..959cba9 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -223,6 +223,7 @@ class MySQL { `hostPage`.`timeAdded`, `hostPage`.`timeUpdated`, `hostPage`.`mime`, + `hostPage`.`size`, `host`.`scheme`, `host`.`name`, `host`.`port` diff --git a/public/explore.php b/public/explore.php index dabed90..dca01cb 100644 --- a/public/explore.php +++ b/public/explore.php @@ -228,18 +228,19 @@ $placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the
-

+

mime ? _('MIME') : false ?>

mime ?>

-

+

size ? _('Size') : false ?>

+

size ?>

+

timeAdded ? _('Time added') : false ?>

timeAdded) ?>

-

+

timeUpdated ? _('Time updated') : false ?>

timeUpdated) ?>

getTotalHostPageSnaps($hp); ?>

- +

getHostPageSnaps($hp) as $hostPageSnap) { ?> @@ -252,10 +253,9 @@ $placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the getTotalHostPageIdSourcesByHostPageIdTarget($hp); ?>

- +

getHostPageIdSourcesByHostPageIdTarget($hp) as $hostPageIdSource) { ?>