vern-web/en/p/list.php

12 lines
428 B
PHP

<?php
$subdirs = scandir('/vm', SCANDIR_SORT_ASCENDING);
$protocol = $_SERVER['HTTPS'] ? 'https://' : 'http://';
foreach ($subdirs as $subdir) {
if ($subdir != '.' && $subdir != '..') {
$ph_index = '/sshfs/home/' . $subdir . '/public_html/index.';
if (is_readable('/vm/' . $subdir . '/.pgp.asc') && !is_file('/vm/' . $subdir . '/.pgp.hide'))
echo $protocol . $_SERVER['HTTP_HOST'] . "/p/$subdir.asc\n";
}
}
?>