forked from unix.lgbt/site
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
<p> |
||||
This page lists the users that has a public HTML folder. |
||||
</p> |
||||
|
||||
<h3>Users</h3> |
||||
|
||||
<ul> |
||||
<?php |
||||
chdir("/pub/"); |
||||
|
||||
$htmldirs = glob("*/http", GLOB_ONLYDIR); |
||||
|
||||
foreach($htmldirs as $userdir) |
||||
{ |
||||
$username = explode("/", $userdir, 2)[0]; |
||||
echo "<li><a href=\"/~" . $username . "\">~" . $username . "</a></li>"; |
||||
} |
||||
?> |
||||
</ul> |
Loading…
Reference in new issue