From a0074bd26bcc279de671dc0fd37646b885b2e9a0 Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Sat, 25 Nov 2023 05:45:05 -0500 Subject: [PATCH] Add .pgp.hide Signed-off-by: Skylar "The Cobra" Widulski --- en/p/index.php | 2 +- en/p/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/p/index.php b/en/p/index.php index bc672a7..8ccc232 100644 --- a/en/p/index.php +++ b/en/p/index.php @@ -22,7 +22,7 @@ foreach ($subdirs as $subdir) { if ($subdir != '.' && $subdir != '..') { $ph_index = '/sshfs/home/' . $subdir . '/public_html/index.'; - if (is_readable('/vm/' . $subdir . '/.pgp.asc')) + if (is_readable('/vm/' . $subdir . '/.pgp.asc') && !is_file('/vm/' . $subdir . '/.pgp.hide')) $list .= "
  • $subdir
  • \n"; } } diff --git a/en/p/list.php b/en/p/list.php index 2c273eb..73a3412 100644 --- a/en/p/list.php +++ b/en/p/list.php @@ -4,7 +4,7 @@ foreach ($subdirs as $subdir) { if ($subdir != '.' && $subdir != '..') { $ph_index = '/sshfs/home/' . $subdir . '/public_html/index.'; - if (is_readable('/vm/' . $subdir . '/.pgp.asc')) + if (is_readable('/vm/' . $subdir . '/.pgp.asc') && !is_file('/vm/' . $subdir . '/.pgp.hide')) echo $protocol . $_SERVER['HTTP_HOST'] . "/p/$subdir.asc\n"; } }