site/users.php

51 lines
1.5 KiB
PHP
Raw Normal View History

2019-10-12 18:17:09 +00:00
<?php
2020-01-20 11:09:38 +00:00
$title = "envs.net | users";
$desc = "envs.net | full user list";
2019-10-12 18:17:09 +00:00
2020-01-20 11:09:38 +00:00
// json files
$user_info = json_decode(file_get_contents('/var/www/envs.net/users_info.json'));
2019-10-12 18:17:09 +00:00
2020-01-20 11:09:38 +00:00
// users
$online_users = str_replace(PHP_EOL, '', shell_exec("online-users"));
$total_users = $user_info->data->info->user_count;
2019-10-12 18:17:09 +00:00
include 'header.php';
?>
2020-01-20 11:09:38 +00:00
<body id="body" class="dark-mode">
<div>
2019-10-12 18:17:09 +00:00
2020-01-20 11:09:38 +00:00
<div class="button_back">
<pre class="clean"><strong><a href="/">&lt; back</a></strong></pre>
</div>
2019-10-12 18:17:09 +00:00
2020-01-20 11:09:38 +00:00
<div id="main">
2019-10-12 18:17:09 +00:00
<div class="block">
<h1><em>full user list</em></h1>
2020-01-20 01:30:48 +00:00
<pre>online: <?=$online_users?> &#124; total: <?=$total_users?></pre>
<p></p>
2019-10-12 18:17:09 +00:00
<table>
2020-01-20 11:09:38 +00:00
<tr><th class="tw20"></th> <th></th></tr>
<tr onclick="window.location='/users_info.json';">
<td><small><i class="fa fa-info-circle fa-fw" aria-hidden="true"></i></small></td> <td><small><a href="/users_info.json">users_info.json</a></small></td>
</tr>
<tr onclick="window.location='/user_updates/';">
<td><small><i class="fa fa-clock-o fa-fw" aria-hidden="true"></i></small></td> <td><small><a href="/user_updates/">recently updates</a></small></td>
</tr>
2020-01-14 14:07:54 +00:00
</table>
2020-01-19 18:09:23 +00:00
<p></p>
2020-01-20 01:30:48 +00:00
</div>
2020-01-19 18:09:23 +00:00
2020-01-19 20:10:18 +00:00
<pre>here's a full list of users (including those who haven't updated their page from the default).</pre>
2020-01-20 10:00:51 +00:00
<br />
2019-10-12 18:17:09 +00:00
<ul>
<?php
2020-01-20 11:09:38 +00:00
foreach ($user_info->data->users as $user => $value) {
echo "\t<li><a rel=\"$user\" target=\"_blank\" href=\"/~$user\">&#126;$user</a></li>\n";
}
2019-10-12 18:17:09 +00:00
?>
</ul>
2020-01-20 11:09:38 +00:00
</div>
2019-10-12 18:17:09 +00:00
<?php include 'footer.php'; ?>