X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/65a14aacf0fd9f5f89bcb7b800b7f72ac30e7a81..3d4e4ec4af3d2ba1eb9d7bece2361ddd56d5c7ca:/users/index.php diff --git a/users/index.php b/users/index.php index 8cf7147..4512c1b 100644 --- a/users/index.php +++ b/users/index.php @@ -1,6 +1,6 @@ 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"); @@ -72,139 +79,29 @@ if (!empty($_POST)) } } -/* Get the user list */ -$users = $rpc->user()->getAll(); ?>