fix user listing
This commit is contained in:
parent
381d85e32f
commit
965fd25e7d
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue