X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/dc961139b6abc47e087ec829b862cc07550329a9..e0c259fc7c93c77aa87d52f32a8c0ec7071843c2:/index.php
diff --git a/index.php b/index.php
index fbb29c8..4db5cb0 100644
--- a/index.php
+++ b/index.php
@@ -1,540 +1,235 @@
-
-
-
-
- Filter by:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Network Overview
- if (isset($_POST['uf_host']) && strlen($_POST['uf_host']))
- Message::Info("Listing users which match hostmask: \"" . $_POST['uf_host'] . "\"");
-
- if (isset($_POST['uf_account']) && strlen($_POST['uf_account']))
- Message::Info("Listing users which match account: \"" . $_POST['uf_account'] . "\"");
-
- ?>
-
-
Apply action:
-
-
-
- GLine
- GZLine
-
-
-
-
Duration:
-
- ";
- else
- {
- $w = ($i == 1) ? "week" : "weeks";
- echo "$i $w" . " ";
- }
- }
- ?>
-
-
- ";
- else
- {
- $d = ($i == 1) ? "day" : "days";
- echo "$i $d" . " ";
- }
- }
- ?>
-
-
- ";
- else
- {
- $h = ($i == 1) ? "hour" : "hours";
- echo "$i $h" . " ";
- }
- }
- ?>
-
-
Reason:
-
-
-
-
-
+/* This makes sure that a plugin which called the parameter
+ * by reference can add/update the stats for display here.
+*/
+$stats = (object) $array_of_stats;
-
-
-
-
-
-
-
-
-
-
-
- Select all
- Mask
- Type
- Set By
- Set On
- Expires
- Duration
- Match Type
- Action
- Action Duration
- Target
- Reason
-
- ";
- echo " ";
- echo "".$sf->name." ";
- echo "".$sf->type_string." ";
- echo "".$sf->set_by." ";
- echo "".$sf->set_at_string." ";
- echo "".$sf->expire_at_string." ";
- echo "".$sf->duration_string." ";
- echo "".$sf->match_type." ";
- echo "".$sf->ban_action." ";
- echo "".$sf->ban_duration_string." ";
- for ($i = 0, $targs = ""; $i < strlen($sf->spamfilter_targets); $i++)
- {
- $c = $sf->spamfilter_targets[$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 "".$targs." ";
- echo "".$sf->reason." ";
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Server Ban Exceptions
+
+
+
+
+
+
+ server->ulined) {
+ $bg = "bg-success";
+
+ /* honestly can't think of a case where there would actually be only one uline... but... well here we are, worrying over the small stuff =] */
+ $user_noun = ($stats->user->ulined == 1) ? "user" : "users"; // use "users" even if 0, sounds better.
+ $is_are = ($stats->user->ulined == 1) ? "is" : "are";
+ $server_noun = ($stats->server->ulined == 1) ? "server" : "servers";
+ $tooltip = "There $is_are " . $stats->user->ulined . " U-Lined $user_noun over " . $stats->server->ulined . " U-Lined $server_noun";
}
- ?>
+ else
+ $bg = "bg-warning";
+ ?>
+
+
+
+
+
+
+
Services Online
+
+
+
+
+
+
+
+
+
+
-