- <div class="tab-content\">
- <div id="TKL" data-tab-content>
-
- <table class='users_overview'>
- <form action="" method="post">
- <th><input type="checkbox" label='selectall' onClick="toggle(this)" />Select all</th>
- <th>Mask</th>
- <th>Type</th>
- <th>Set By</th>
- <th>Set On</th>
- <th>Expires</th>
- <th>Duration</th>
- <th>Reason</th>
-
- <?php
- foreach(RPC_List::$tkl as $tkl)
- {
- echo "<tr>";
- echo "<td><input type=\"checkbox\" value='" . base64_encode($tkl['name']).",".base64_encode($tkl['type']) . "' name=\"tklch[]\"></td>";
- echo "<td>".$tkl['name']."</td>";
- echo "<td>".$tkl['type_string']."</td>";
- echo "<td>".$tkl['set_by']."</td>";
- echo "<td>".$tkl['set_at_string']."</td>";
- echo "<td>".$tkl['expire_at_string']."</td>";
- echo "<td>".$tkl['duration_string']."</td>";
- echo "<td>".$tkl['reason']."</td>";
- }
- ?></table><p><input class="cute_button" type="submit" value="Delete selected"></p></form></div></div>
-
-
- <div class="tab-content\">
- <div id="Spamfilter" data-tab-content>
- <p></p>
- <table class='users_overview'>
- <th>Mask</th>
- <th>Type</th>
- <th>Set By</th>
- <th>Set On</th>
- <th>Expires</th>
- <th>Duration</th>
- <th>Match Type</th>
- <th>Action</th>
- <th>Action Duration</th>
- <th>Target</th>
- <th>Reason</th>
-
- <?php
- foreach(RPC_List::$spamfilter as $sf)
- {
- echo "<tr>";
- echo "<td>".$sf['name']."</td>";
- echo "<td>".$sf['type_string']."</td>";
- echo "<td>".$sf['set_by']."</td>";
- echo "<td>".$sf['set_at_string']."</td>";
- echo "<td>".$sf['expire_at_string']."</td>";
- echo "<td>".$sf['duration_string']."</td>";
- echo "<td>".$sf['match_type']."</td>";
- echo "<td>".$sf['ban_action']."</td>";
- echo "<td>".$sf['ban_duration_string']."</td>";
- for ($i = 0, $targs = ""; ($c = $sf['spamfilter_targets'][$i]); $i++)
- {
- if ($c == "c")
- $targs .= "Channel, ";
- else if ($c == "p")
- $targs .= "Private,";
- else if ($c == "n")
- $targs .= "Notice, ";
- else if ($c == "N")
- $targs .= "Channel notice, ";
- else if ($c == "P")
- $targs .= "Part message, ";
- else if ($c == "q")
- $targs .= "Quit message, ";
- else if ($c == "d")
- $targs .= "DCC filename, ";
- else if ($c == "a")
- $targs .= "Away message, ";
- else if ($c == "t")
- $targs .= "Channel topic, ";
- else if ($c == "T")
- $targs .= "MessageTag, ";
- else if ($c == "u")
- $targs .= "Usermask, ";
-
- $targs = rtrim($targs,", ");
- }
- echo "<td>".$targs."</td>";
- echo "<td>".$sf['reason']."</td>";
-
- }
- ?></table></div></div>
-
-</body>
+ <div class="row">
+ <div class="col-md-2">
+ <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>
+ </div>
+ <div class="col">
+ <h3 class="display-4"><?php echo count(RPC_List::$user); ?></h3>
+ <h6>Users</h6>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-2">
+ <div class="card text-center">
+ <div class="card-header bg-primary text-white">
+ <div class="row">
+ <div class="col">
+ <i class="fa fa-hashtag fa-3x"></i>
+ </div>
+ <div class="col">
+ <h3 class="display-4"><?php echo count(RPC_List::$channel); ?></h3>
+ <h6>Channels</h6>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-2">
+ <div class="card text-center">
+ <div class="card-header bg-warning">
+ <div class="row">
+ <div class="col">
+ <i class="fa fa-shield-halved fa-3x"></i>
+ </div>
+ <div class="col">
+ <h3 class="display-4"><?php echo RPC_List::$opercount; ?></h3>
+ <h6>Opers</h6>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="col-md-2">
+ <div class="card text-center">
+ <div class="card-header bg-secondary text-white">
+ <div class="row">
+ <div class="col">
+ <i class="fa fa-network-wired fa-3x"></i>
+ </div>
+ <div class="col">
+ <h3 class="display-4"><?php echo count(RPC_List::$server); ?></h3>
+ <h6>Servers</h6>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<div class="container mt-4">