X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/27efe8955d1b72ef220e76d85351fe8c5aefd72c..c06c1713af2db485d55a91073bbc5b63b6aa8c0b:/users/index.php
diff --git a/users/index.php b/users/index.php
index 2f06e80..2e8cf75 100644
--- a/users/index.php
+++ b/users/index.php
@@ -1,17 +1,37 @@
user()->get($user);
+
if (!$user && $bantype !== "qline") {
Message::Fail("Could not find that user: User not online");
- } else {
+ }
+
+ else
+ {
$msg_msg = ($duration == "0" || $duration == "0w0d0h") ? "permanently" : "for " . rpc_convert_duration_string($duration);
$reason = (isset($_POST['ban_reason'])) ? $_POST['ban_reason'] : "No reason";
+
if ($bantype == "qline")
$rpc->nameban()->add($name, $reason, $duration);
+
+ else if ($bantype == "kill")
+ {
+ if ($rpc->user()->kill($user->id, $reason))
+ Message::Success($user->name . "(*@" . $user->hostname . ") has been killed: $reason");
+ else
+ Message::Fail("Could not kill $user->name: $rpc->error");
+ }
else if ($rpc->serverban()->add($user->id, $bantype, $duration, $reason))
Message::Success($user->name . " (*@" . $user->hostname . ") has been $bantype" . "d $msg_msg: $reason");
+
else
Message::Fail("Could not add $bantype against $name: $rpc->error");
}
@@ -52,9 +86,10 @@ $users = $rpc->user()->getAll();
Click on a username to view more information.
-
+
-
+
-
+
+ =$currentNumberUsers?> connected users including =$currentNumberUsersIdentified?> identified and =($currentNumberUsers-$currentNumberUsersIdentified)?> not identified.
@@ -223,7 +313,7 @@ Click on a username to view more information.
@@ -231,14 +321,159 @@ Click on a username to view more information.
-
-
+
+
+
+
-
+