fix user listing

This commit is contained in:
Ben Harris 2018-06-21 12:18:39 -04:00
parent 381d85e32f
commit 965fd25e7d
1 changed files with 4 additions and 2 deletions

View File

@ -79,8 +79,10 @@
<h1>~users~</h1>
<em><a href="https://tilde.team/tilde.24h.html"><i class="fa fa-clock-o"></i> recent updates</a></em>
<br><br>
<?php $users = json_decode(file_get_contents("https://tilde.team/~ben/api/?users"));
foreach ($users as $user): ?>
<?php
foreach (glob("/home/*") as $user):
if (!is_dir("$user/public_html")) continue;
$user = basename($user); // now we have the username ?>
<div class="list-group">
<a href="https://tilde.team/~<?=$user?>/" class="list-group-item">
<h5 class="list-group-item-heading">~<?=$user?></h5>