-<div class="tab-content\">
-<div id="overview" data-tab-content class="active">
- <table class='unrealircd_overview'>
- <th>Chat Overview</th><th></th>
- <tr><td><b>Users</b></td><td><?php echo count(RPC_List::$user); ?></td></tr>
- <tr><td><b>Opers</b></td><td><?php echo RPC_List::$opercount; ?></td></tr>
- <tr><td><b>Services</b></td><td><?php echo RPC_List::$services_count; ?></td></tr>
- <tr><td><b>Most popular channel</b></td><td><?php echo RPC_List::$most_populated_channel; ?> (<?php echo RPC_List::$channel_pop_count; ?> users)</td></tr>
- <tr><td><b>Channels</b></td><td><?php echo count(RPC_List::$channel); ?></td></tr>
- <tr><td><b>Server bans</b></td><td><?php echo count(RPC_List::$tkl); ?></td></tr>
- <tr><td><b>Spamfilter entries</b></td><td><?php echo count(RPC_List::$spamfilter); ?></td></tr></th>
- </table></div></div>
-
- <div class="tab-content\">
- <div id="Users" data-tab-content>
- <table class='users_filter'>
- <th class="thuf">Filter by: </th>
- <th>
- <form action="" method="post">
- Nick: <input name="uf_nick" id="uf_nick" type="text">
- <input class="cute_button2" type="submit" value="Search">
- </form>
- </th>
- <th>
- <form action="" method="post">
- Hostname: <input name="uf_host" id="uf_host" type="text">
- <input class="cute_button2" type="submit" value="Search">
- </form>
- </th>
- <th>
- <form action="" method="post">
- IP: <input name="uf_ip" id="uf_ip" type="text">
- <input class="cute_button2" type="submit" value="Search">
- </form>
- </th>
- <th class="thuffer">
- <form action="" method="">
- Account: <input name="uf_account" id="uf_account" type="text">
- <input class="cute_button2" type="submit" value="Search">
- </form>
- </th>
- </form>
- </table>
- <?php
- if (isset($_POST['uf_nick']) && strlen($_POST['uf_nick']))
- Message::Info("Listing users which match nick: \"".$_POST['uf_nick']."\"")
- ?>
- <table class='users_overview'>
- <th><input type="checkbox" label='selectall' onClick="toggle_user(this)" />Select all</th>
- <th>Nick</th>
- <th>UID</th>
- <th>Host / IP</th>
- <th>Account</th>
- <th>Usermodes<a href="https://www.unrealircd.org/docs/User_modes" target="_blank">ℹ️</a></th>
- <th>Oper</th>
- <th>Secure</th>
- <th>Connected to</th>
- <th>Reputation <a href="https://www.unrealircd.org/docs/Reputation_score" target="_blank">ℹ️</a></th>
-
- <form action="" method="post">
- <?php
- foreach(RPC_List::$user as $user)
- {
-
- /* Some basic filtering */
- if (isset($_POST['uf_nick']) && strlen($_POST['uf_nick']) &&
- strpos(strtolower($user['name']), strtolower($_POST['uf_nick'])) !== 0 &&
- strpos(strtolower($user['name']), strtolower($_POST['uf_nick'])) == false)
- continue;
+ <div class="row mt-3">
+ <div class="col-sm mb-3">
+ <div class="card text-center">
+ <div class="card-header bg-success text-white">
+ <div class="row">
+ <div class="col">
+ <i class="fa fa-users fa-3x"></i><span class="position-absolute badge rounded-pill badge-warning">
+ <?php echo "Record: ".$stats->user->record; ?>
+ </span>
+ </div>
+ <div class="col">
+ <h3 id="stats_user_total" class="display-4"><?php echo $stats->user->total; ?></h3>
+ </div>
+ </div>
+ </div>
+ <div class="card-body">
+ <div class="row">
+ <div class="col">
+ <h6>Users Online</h6>
+ </div>
+ <div class="col"> <a class="btn btn-primary" href="<?php echo BASE_URL; ?>users">View</a></div>
+ </div>
+ </div>
+ </div>
+