X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/be3ca91ebeb38538c348e67af05ec7e4f03ed489..630261974fd350964443aed92704938d4a8bd858:/index.php diff --git a/index.php b/index.php index 11bcd27..219c143 100644 --- a/index.php +++ b/index.php @@ -1,18 +1,48 @@ query("stats.get", []); +require_once "inc/header.php"; +require_once "inc/connection.php"; + +$stats = $rpc->stats()->get(); ?> +
+

Network Overview

+⚪LIVE
+
+Network Overview +/* What if someone wants to add their own stats... */ +Hook::run(HOOKTYPE_PRE_OVERVIEW_CARD, $array_of_stats); - +/* 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; -
+$userlist = []; +Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); +$num_of_panel_admins = count($userlist); -
-
+?> + +
+ +
+
@@ -22,7 +52,7 @@ $stats = $rpc->query("stats.get", []);
-

user->total; ?>

+

user->total; ?>

@@ -31,14 +61,14 @@ $stats = $rpc->query("stats.get", []);
Users Online
- +
-
+
@@ -46,7 +76,7 @@ $stats = $rpc->query("stats.get", []);
-

channel->total; ?>

+

channel->total; ?>

@@ -55,12 +85,12 @@ $stats = $rpc->query("stats.get", []);
Channels
- +
-
+
@@ -68,7 +98,7 @@ $stats = $rpc->query("stats.get", []);
-

user->oper; ?>

+

user->oper; ?>

@@ -77,13 +107,13 @@ $stats = $rpc->query("stats.get", []);
Opers
- +
-
+
@@ -91,7 +121,7 @@ $stats = $rpc->query("stats.get", []);
-

server->total; ?>

+

server->total; ?>

@@ -100,17 +130,17 @@ $stats = $rpc->query("stats.get", []);
Servers
- +
-
+
-
+
@@ -118,7 +148,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban; ?>

+

server_ban->server_ban; ?>

@@ -127,12 +157,12 @@ $stats = $rpc->query("stats.get", []);
Server Bans
- +
-
+
@@ -140,7 +170,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->spamfilter; ?>

+

server_ban->spamfilter; ?>

@@ -149,12 +179,12 @@ $stats = $rpc->query("stats.get", []);
Spamfilter
- +
-
+
@@ -162,7 +192,7 @@ $stats = $rpc->query("stats.get", []);
-

server_ban->server_ban_exception; ?>

+

server_ban->server_ban_exception; ?>

@@ -172,7 +202,7 @@ $stats = $rpc->query("stats.get", []);
Server Ban Exceptions
- +
@@ -180,17 +210,12 @@ $stats = $rpc->query("stats.get", []); 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"; + $tooltip = "Users / Servers"; } else $bg = "bg-warning"; ?> -
+
@@ -198,7 +223,8 @@ $stats = $rpc->query("stats.get", []);
-

user->ulined; ?>/server->ulined; ?>

+ +

user->ulined; ?>/server->ulined; ?>

@@ -207,7 +233,7 @@ $stats = $rpc->query("stats.get", []);
Services Online
- +
@@ -216,8 +242,86 @@ $stats = $rpc->query("stats.get", []); + + + +
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Panel Accounts
+
+ +
+
+
+
+
+