X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/76200e36b9dce259a825f751f5e33abab4be9a06..2697173721db10cd600539beed661a06bb9a3f2b:/index.php diff --git a/index.php b/index.php index 044775f..7b9bc7c 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,9 @@ + - +
-

UnrealIRCd Administration Panel


+

UnrealIRCd Administration Panel


@@ -11,33 +12,47 @@ Channels Server Bans Spamfilter + News
$value) - { - foreach ($value as $tok) - { - $tok = explode(",",$tok); - rpc_tkl_del(base64_decode($tok[0]), base64_decode($tok[1])); +if (!empty($_POST)) { + if (!($bantype = $_POST["bantype"])) { + + } else if (!($users = $_POST["userch"])) { + Message::Fail("No user was specified"); + } else { + foreach ($_POST["userch"] as $user) { + $user = base64_decode($user); + $bantype = $_POST["bantype"]; + rpc_tkl_add($user, $bantype, "2h", "You have been banned lol"); + Message::Success($user . " has been banned"); } } + if (!empty($_POST['tklch'])) + foreach ($_POST as $key => $value) { + foreach ($value as $tok) { + $tok = explode(",", $tok); + rpc_tkl_del(base64_decode($tok[0]), base64_decode($tok[1])); + } + } + + 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])); + } + } +} + rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) ?> @@ -53,11 +68,12 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) Server bans Spamfilter entries - +

+ @@ -66,12 +82,13 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) - + "; + echo ""; echo ""; echo ""; echo ""; @@ -86,7 +103,65 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) echo ""; echo ""; } - ?>
Select all Nick UID Host / IPOper Secure Connected toReputation ℹ️Reputation ℹ️ ".$user['name']."".$user['id']."".$user['hostname']." (".$user['ip'].")".$user['user']['servername']."".$user['user']['reputation']."
+ ?> + +