From 5ad393b982a63bb9a06de794a67a41849a4b9f6b Mon Sep 17 00:00:00 2001 From: Lin <31387258+011248163264@users.noreply.github.com> Date: Wed, 25 Feb 2026 17:49:33 +0100 Subject: [PATCH] Update list.php added select with description, only visible when PUB_ONION_DESC = 1 in common.php --- var/www/html/list.php | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/var/www/html/list.php b/var/www/html/list.php index 5d6468a..f3061ab 100644 --- a/var/www/html/list.php +++ b/var/www/html/list.php @@ -3,6 +3,7 @@ header('Content-Type: text/html; charset=UTF-8'); $db = get_db_instance(); print_header(_('List of hosted sites'), 'td{padding:5px;}', '_blank'); +$show_desc = (defined('PUB_ONION_DESC') && (string)PUB_ONION_DESC === '1'); ?>
fetch(PDO::FETCH_NUM); echo ''.sprintf(_('Here is a list of %1$d public hosted sites (%2$d sites hidden):'), $count[0], $hidden[0]).'
'; echo '| '._('Onion link').' | |
| $tmp[0].onion | |
| '._('Onion link').' | '; +if ($show_desc) { + echo ''._('Description').' | '; } +echo '
| $onion.onion | $desc |
| $onion.onion |