X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/7b80db431593d8247d563c37f38278cc44bb9a68..be5ea9604482ac6192dc8b03413e1fd8c2028f8b:/index.php diff --git a/index.php b/index.php index 8d7f7e8..0ed7b54 100644 --- a/index.php +++ b/index.php @@ -1,338 +1,357 @@ - - - - -
-

UnrealIRCd Administration Panel


+ +
+

Network Overview

+
- -
- Overview - Users - Channels - Server Bans - Spamfilter - News -
+ +
- $duration = ""; - if (!$banlen_d && !$banlen_h && !$banlen_w) - $duration .= "0"; +
+
+
+
+
+
+ + + +
+
+

+
+
+
+
+
+
+
Users Online
+
+ +
+
+
- else - { - if ($banlen_w) - $duration .= $banlen_w; - if ($banlen_d) - $duration .= $banlen_d; - if ($banlen_h) - $duration .= $banlen_h; - } - $rpc = new RPC(); - $rpc->set_method("user.get"); - $rpc->set_params(["nick" => "$user"]); - $rpc->execute(); - $nick = ($rpc->result) ? $rpc->fetch_assoc() : NULL; - if (!$nick) - { - Message::Fail("Could not find that user. Maybe they disconnected after you clicked this?"); - return; - } +
+
+
+
+
+
+ +
+
+

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

+
+
+
+
+
+
+
Opers
+
+ +
+
+
+
- $msg_msg = ($duration == "0" || $duration == "0w0d0h") ? "permanently" : "for $duration"; - $reason = (isset($_POST['ban_reason'])) ? $_POST['ban_reason'] : "No reason"; - if (rpc_tkl_add($user, $bantype, $duration, $reason)) - { - $c = $nick['result']['client']; - Message::Success($c['name'] . " (*@".$c['hostname'].") has been $bantype" . "'d $msg_msg: $reason"); - } - } - } +
+
+
+
+
+ +
+
+

+
+
+
+
+
+
+
Servers
+
+ +
+
+
+
+
+
+
- if (!empty($_POST['tklch'])) - foreach ($_POST as $key => $value) { - foreach ($value as $tok) { - $tok = explode(",", $tok); - if (rpc_tkl_del(base64_decode($tok[0]), base64_decode($tok[1]))) - Message::Success(base64_decode($tok[1])." has been removed for ".base64_decode($tok[0])); - } - } +
+
+
+
+
+
+ +
+
+

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

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

+
+
+
- if (!empty($_POST['sf'])) - foreach ($_POST as $key => $value) { - foreach ($value as $tok) { - $tok = explode(",", $tok); - rpc_sf_del(base64_decode($tok[0]), base64_decode($tok[1]), base64_decode($tok[2]), base64_decode($tok[3])); - } - } -} +
+
+
+
Server Ban Exceptions
+
+ +
+
+
+
+ +
+
+
+
+
+ +
+
+ +

+
+
+
+
+
+
+
Services Online
+
+ +
+
+ +
+
+
+
-rpc_pop_lists(); -?> -
-
- - - - - - - - - -
Chat Overview
Users
Opers
Services
Most popular channel ( users)
Channels
Server bans
Spamfilter entries
- -
-
-

- - - - - - - - - - - - - - "; - echo ""; - echo ""; - echo ""; - echo ""; - $account = (isset($user['user']['account'])) ? ''.$user['user']['account'].'' : 'No account'; - echo ""; - $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : ""; - echo ""; - $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." ".$user['user']['operclass']."" : ""; - echo ""; - $secure = (isset($user['tls'])) ? "Secure" : "Insecure"; - echo ""; - echo ""; - echo ""; - } - ?>
Select allNickUIDHost / IPAccountUsermodesℹ️OperSecureConnected toReputation ℹ️
".$user['name']."".$user['id']."".$user['hostname']." (".$user['ip'].")".$account."".$modes."".$oper."".$secure."".$user['user']['servername']."".$user['user']['reputation']."
-
- -
-
- - - -
-
- - - -
+ + +
+
+
+
+
+
+
+ +
+
+

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

+
+
+
+
+
+
+
Plugins
+
+ +
+
+
+
+
+
+ -
- - -
- - +require_once "inc/footer.php";