X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/17311eb0f8ba148b7de3ac3e6e1f276ec850de68..c1ce40a295bda30d75ceed0ad5145eb576820650:/index.php
diff --git a/index.php b/index.php
index 5706cc4..83a3a27 100644
--- a/index.php
+++ b/index.php
@@ -1,417 +1,20 @@
-
-
UnrealIRCd Panel
-
-
-
-
-
-
user()->get($user);
- if (!$nick)
- {
- Message::Fail("Could not find that user. Maybe they disconnected after you clicked this?");
- return;
- }
-
- $msg_msg = ($duration == "0" || $duration == "0w0d0h") ? "permanently" : "for ".rpc_convert_duration_string($duration);
- $reason = (isset($_POST['ban_reason'])) ? $_POST['ban_reason'] : "No reason";
- if ($rpc->serverban()->add($user, $bantype, $duration, $reason))
- {
- $c = $nick->client;
- Message::Success($c->name . " (*@".$c->hostname.") has been $bantype" . "d $msg_msg: $reason");
- }
- }
- }
-
- if (!empty($_POST['tklch']))
- foreach ($_POST as $key => $value) {
- foreach ($value as $tok) {
- $tok = explode(",", $tok);
- $ban = base64_decode($tok[0]);
- $type = base64_decode($tok[1]);
- if ($rpc->serverban()->delete($ban, $type))
- Message::Success("$type has been removed for $ban");
- else
- Message::Fail("Unable to remove $type on $ban: $rpc->error");
- }
- }
-
- if (!empty($_POST['sf']))
- foreach ($_POST as $key => $value) {
- foreach ($value as $tok) {
- $tok = explode(",", $tok);
- $name = base64_decode($tok[0]);
- $match_type = base64_decode($tok[1]);
- $spamfilter_targets = base64_decode($tok[2]);
- $ban_action = base64_decode($tok[3]);
- if ($rpc->spamfilter()->delete($name, $match_type, $spamfilter_targets, $ban_action))
- Message::Success("Spamfilter on $name has been removed");
- else
- Message::Fail("Unable to remove spamfilter on $name: $rpc->error");
- }
- }
-}
+require_once "header.php";
rpc_pop_lists();
?>
-
-
-
- Chat Overview | |
- Users | |
- Opers | |
- Services | |
- Most popular channel | ( users) |
- Channels | |
- Server bans | |
- Spamfilter entries | |
-
-
-
-
-
- Filter by: |
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Name |
- Created |
- User count |
- Topic |
- Topic Set |
- Modes |
-
- ";
- echo "".$channel->name." | ";
- echo "".$channel->creation_time." | ";
- echo "".$channel->num_users." | ";
- $topic = (isset($channel->topic)) ? $channel->topic : "";
- echo "".$topic." | ";
- $setby = (isset($channel->topic)) ? "By ".$channel->topic_set_by .", at ".$channel->topic_set_at : "";
- echo "".$setby." | ";
- $modes = (isset($channel->modes)) ? "+" . $channel->modes : "";
- echo "".$modes." | ";
- }
- ?>
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Chat Overview | |
+ Users | |
+ Opers | |
+ Services | |
+ Most popular channel | ( users) |
+ Channels | |
+ Server bans | |
+ Spamfilter entries | |
+
+
\ No newline at end of file