X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/fd4848e4bc329f633c8faf725f9d4faef27ca54c..9a4a88b54415ab2ed3e797ed07953c626d02c38b:/index.php diff --git a/index.php b/index.php index 397cf17..73512bb 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,23 @@ stats()->get(); -?> - -

Network Overview

+require_once "inc/header.php"; +?> +
+

Network Overview

+⚪LIVE
+
-
+ +
@@ -33,11 +46,11 @@ $num_of_panel_admins = count($userlist);
- user->record; ?> +
-

user->total; ?>

+

@@ -61,7 +74,7 @@ $num_of_panel_admins = count($userlist);
-

channel->total; ?>

+

@@ -83,7 +96,7 @@ $num_of_panel_admins = count($userlist);
-

user->oper; ?>

+

@@ -106,7 +119,7 @@ $num_of_panel_admins = count($userlist);
-

server->total; ?>

+

@@ -122,7 +135,7 @@ $num_of_panel_admins = count($userlist); -
+
@@ -133,7 +146,7 @@ $num_of_panel_admins = count($userlist);
-

server_ban->server_ban; ?>

+

@@ -155,7 +168,7 @@ $num_of_panel_admins = count($userlist);
-

server_ban->spamfilter; ?>

+

@@ -177,7 +190,7 @@ $num_of_panel_admins = count($userlist);
-

server_ban->server_ban_exception; ?>

+

@@ -193,12 +206,7 @@ $num_of_panel_admins = count($userlist); server->ulined) { - $bg = "bg-success"; - $tooltip = "Users / Servers"; - } - else - $bg = "bg-warning"; + $bg = "bg-success"; // FIXME: this isn't dynamic ?>
@@ -208,8 +216,8 @@ $num_of_panel_admins = count($userlist);
- -

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

+ +

@@ -256,9 +264,29 @@ $num_of_panel_admins = count($userlist); initStats(); //setInterval(updateStats, 1000); // Update stats every second // ^ commented out but may want to restart initStats() when connection is lost. + + + window.addEventListener('resize', function() { + var containers = document.querySelectorAll('.card-container'); + var width = window.innerWidth; + if (width < 768) + { + containers.forEach((container) => { + container.removeAttribute('style'); + + }); + } else + { + containers.forEach((container) => { + container.style.marginLeft = "40px"; + container.style.marginTop = "30px"; + + }); + } + }); -
+
@@ -276,7 +304,7 @@ $num_of_panel_admins = count($userlist);
-
Panel Access
+
Panel Accounts
@@ -289,4 +317,4 @@ $num_of_panel_admins = count($userlist); Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); -require_once "footer.php"; +require_once "inc/footer.php";