X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/76200e36b9dce259a825f751f5e33abab4be9a06..f2e07243d0746dfbc7fb516c62134d03fd465eb5:/index.php diff --git a/index.php b/index.php index 044775f..ee74214 100644 --- a/index.php +++ b/index.php @@ -1,213 +1,358 @@ - - - -
-

UnrealIRCd Administration Panel


+ +
+

Network Overview

+
- -
- Overview - Users - Channels - Server Bans - Spamfilter -
$value) +$array_of_stats = []; + +/* 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); + +?> + +
+ +
+
+
+
+
+
+ + + +
+
+

+
+
+
+
+
+
+
Users Online
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Channels
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Opers
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Servers
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Server Bans
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Spamfilter
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+

+
+
+
+ +
+
+
+
Server Ban Exceptions
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+ +

+
+
+
+
+
+
+
Services Online
+
+ +
+
+ +
+
+
+
+ + + +
-
-
- - - - - - - - - - - - - "; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - } - ?>
Select allMaskTypeSet BySet OnExpiresDurationReason".$tkl['name']."".$tkl['type_string']."".$tkl['set_by']."".$tkl['set_at_string']."".$tkl['expire_at_string']."".$tkl['duration_string']."".$tkl['reason']."

- +
+
+
+
+
+
+ +
+
+

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

+
+
+
+
+
+
+
Plugins
+
+ +
+
+
+
+
+
+ -
-

- - - - - - - - - - - - - - "; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - 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 ""; - echo ""; - - } - ?>
MaskTypeSet BySet OnExpiresDurationMatch TypeActionAction DurationTargetReason".$sf['name']."".$sf['type_string']."".$sf['set_by']."".$sf['set_at_string']."".$sf['expire_at_string']."".$sf['duration_string']."".$sf['match_type']."".$sf['ban_action']."".$sf['ban_duration_string']."".$targs."".$sf['reason']."
- - +Hook::run(HOOKTYPE_OVERVIEW_CARD, $stats); - \ No newline at end of file +require_once "inc/footer.php";