Add .pgp.hide
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
170698fe50
commit
a0074bd26b
|
@ -22,7 +22,7 @@
|
||||||
foreach ($subdirs as $subdir) {
|
foreach ($subdirs as $subdir) {
|
||||||
if ($subdir != '.' && $subdir != '..') {
|
if ($subdir != '.' && $subdir != '..') {
|
||||||
$ph_index = '/sshfs/home/' . $subdir . '/public_html/index.';
|
$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 .= " <li><a href='/p/$subdir.asc'>$subdir</a></li>\n";
|
$list .= " <li><a href='/p/$subdir.asc'>$subdir</a></li>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
foreach ($subdirs as $subdir) {
|
foreach ($subdirs as $subdir) {
|
||||||
if ($subdir != '.' && $subdir != '..') {
|
if ($subdir != '.' && $subdir != '..') {
|
||||||
$ph_index = '/sshfs/home/' . $subdir . '/public_html/index.';
|
$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";
|
echo $protocol . $_SERVER['HTTP_HOST'] . "/p/$subdir.asc\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue