-<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>
- <p></p>
- <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</th>
- <th>Oper</th>
- <th>Secure</th>
- <th>Connected to</th>
- <th>Reputation <a href="https://www.unrealircd.org/docs/Reputation_score">ℹ️</a></th>
-
- <form action="" method="post">
- <?php
- foreach(RPC_List::$user as $user)
- {
- echo "<tr>";
- echo "<td><input type=\"checkbox\" value='" . base64_encode($user['id'])."' name=\"userch[]\"></td>";
- echo "<td>".$user['name']."</td>";
- echo "<td>".$user['id']."</td>";
- echo "<td>".$user['hostname']." (".$user['ip'].")</td>";
- $account = (isset($user['user']['account'])) ? $user['user']['account'] : "<span class=\"label noaccount\">No account</span>";
- echo "<td>".$account."</td>";
- $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : "<none>";
- echo "<td>".$modes."</td>";
- $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." (".$user['user']['operclass'].")" : "";
- echo "<td>".$oper."</td>";
- $secure = (isset($user['tls'])) ? "<span class=\"label secure-connection\">Secure</span>" : "<span class=\"label noaccount\">Insecure</span>";
- echo "<td>".$secure."</td>";
- echo "<td>".$user['user']['servername']."</td>";
- echo "<td>".$user['user']['reputation']."</td>";
- }
- ?></table>
- <label for="bantype">Apply action: </label><br>
- <select name="bantype" id="bantype">
- <option value=""></option>
- <optgroup label="Bans">
- <option value="gline">GLine</option>
- <option value="gzline">GZLine</option>
- </optgroup>
- </select>
- <br>
- <label for="banlen_w">Duration: </label><br>
- <select name="banlen_w" id="banlen_w">
- <?php
- for ($i = 0; $i <= 56; $i++)
- {
- if (!$i)
- echo "<option value=\"0w\"></option>";
- else
- {
- $w = ($i == 1) ? "week" : "weeks";
- echo "<option value=\"$i" . "w\">$i $w" . "</option>";
- }
- }
- ?>
- </select>
- <select name="banlen_d" id="banlen_d">
- <?php
- for ($i = 0; $i <= 31; $i++)
- {
- if (!$i)
- echo "<option value=\"0d\"></option>";
- else
- {
- $d = ($i == 1) ? "day" : "days";
- echo "<option value=\"$i" . "d\">$i $d" . "</option>";
- }
- }
- ?>
- </select>
- <select name="banlen_h" id="banlen_h">
- <?php
- for ($i = 0; $i <= 24; $i++)
- {
- if (!$i)
- echo "<option value=\"0d\"></option>";
- else
- {
- $h = ($i == 1) ? "hour" : "hours";
- echo "<option value=\"$i" . "h\">$i $h" . "</option>";
- }
- }
- ?>
- </select>
- <br><label for="ban_reason">Reason:<br></label>
- <textarea name="ban_reason" id="ban_reason">No reason</textarea><br>
- <input class="cute_button" type="submit" value="Apply">
- </form>
-
- </div></div>
+ <div class="row">
+ <div class="col-sm mb-3">
+ <a class="card frosted-glass-danger text-center" href="<?php echo get_config("base_url"); ?>server-bans/">
+ <div class="card-body text-white">
+ <div class="row text-center">
+ <div class="col">
+ <div class="col">
+ <i aria-hidden="true" class="fa fa-ban fa-2x"></i>
+ </div>
+ <div class="col">
+ <h5 id="num_server_bans" class="display-4 numberDisplay"></h5>
+ <h5 class="display-5">Server Bans</h5>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ <div class="col-sm mb-3">
+ <a class="card frosted-glass-secondary text-center" href="<?php echo get_config("base_url"); ?>server-bans/spamfilter.php">
+ <div class="card-body text-white">
+ <div class="row text-center">
+ <div class="col">
+ <div class="col">
+ <i aria-hidden="true" class="fa fa-filter fa-2x"></i>
+ </div>
+ <div class="col">
+ <h5 id="num_spamfilter_entries" class="display-4 numberDisplay"></h5>
+ <h5 class="display-5">Spamfilter</h5>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ <div class="col-sm mb-3">
+ <a class="card frosted-glass-info text-center" href="<?php echo get_config("base_url"); ?>server-bans/ban-exceptions.php">
+ <div class="card-body text-white">
+ <div class="row text-center">
+ <div class="col">
+ <div class="col">
+ <i aria-hidden="true" class="fa fa-door-open fa-2x"></i>
+ </div>
+ <div class="col">
+ <h5 id="num_ban_exceptions" class="display-4 numberDisplay"></h5>
+ <h5 class="display-5">Server Ban Exceptions</h5>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ <div class="col-sm mb-3">
+ <a class="card frosted-glass-success text-center" href="<?php echo get_config("base_url"); ?>servers">
+ <div class="card-body text-white">
+ <div class="row text-center">
+ <div class="col">
+ <div class="col">
+ <i aria-hidden="true" class="fa fa-database fa-2x"></i>
+ </div>
+ <div class="col">
+ <h5 id="stats_uline_total" class="display-4 numberDisplay"></h5>
+ <h5 class="display-5" style="margin-top: -3px">Services Online</h5>
+ <h5 style="font-size: 10px; margin-top:-12px">View in Servers ></h5>
+ </div>
+ </div>
+ </div>
+ </div>
+ </a>
+ </div>
+ </div>
+ </div>