forked from team/site
tidy up user list
This commit is contained in:
parent
de9c94f339
commit
987ca2ea92
|
@ -2,32 +2,26 @@
|
|||
$filepath = __FILE__;
|
||||
include __DIR__.'/../header.php';
|
||||
|
||||
$online_users = shell_exec("online-users");
|
||||
$online_users = shell_exec("online-users | head -n1 | awk '{print $3}'");
|
||||
$total_users = shell_exec("members team | wc -w");
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<h1>users</h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?=$online_users?> of <?=$total_users?> total users
|
||||
<p><a href="https://kiwi.tilde.chat/#team">
|
||||
<img src="https://tilde.chat/badges/badge.php?channel=%23team" alt="users online in #team">
|
||||
</a></p>
|
||||
<p><?=$online_users?> of <?=$total_users?> total users logged in</p>
|
||||
<p><em><a href="/tilde.24h.html"><i class="fa fa-clock-o"></i> recent updates</a></em></p>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<img src="https://tilde.chat/badges/badge.php?channel=%23team" alt="users online in #team">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<p><em><a href="/tilde.24h.html"><i class="fa fa-clock-o"></i> recent updates</a></em></p>
|
||||
<br><br>
|
||||
<div class="list-group">
|
||||
<ul>
|
||||
<?php
|
||||
foreach (glob("/home/*") as $user):
|
||||
if (!is_dir("$user/public_html")) continue;
|
||||
$user = basename($user); ?>
|
||||
<li style="list-style: none; margin-left: -40px;">
|
||||
<a href="/~<?=$user?>/" class="list-group-item">
|
||||
|
|
Loading…
Reference in New Issue
Block a user