X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/4ee7eb56ec9413e399d85f1c0ead48d195630eab..579020f8c67f7bdfd9d530a25b701af6ee53c412:/users/index.php diff --git a/users/index.php b/users/index.php index c8316ad..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(); ?>