X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/f41baac84976bab1d52496138dace5a35b749743..ea90b321a4b3768028d841b307c362af97a5e6e1:/users/index.php
diff --git a/users/index.php b/users/index.php
index 075f6db..dae4041 100644
--- a/users/index.php
+++ b/users/index.php
@@ -1,20 +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");
}
@@ -58,6 +89,7 @@ Click on a username to view more information.
+
=$currentNumberUsers?> connected users including =$currentNumberUsersIdentified?> identified and =($currentNumberUsers-$currentNumberUsersIdentified)?> not identified.
@@ -227,7 +307,7 @@ Click on a username to view more information.
@@ -235,14 +315,50 @@ Click on a username to view more information.
-
-
+
+
+ Top country
+
+
+ $count){
+ echo '-
+
![](https://flagcdn.com/108x81/'.htmlspecialchars(strtolower($country_code)).'.png)
+ '.$country_code . '
+
+ ' . $count . ' connected
+ ';
+ }
+ ?>
+
+
+
+
+