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"; } }