X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/05252a1458855a3a9a3909601e1e894dc1aae590..e2b8fb618460b6ddf72ac679194a418a869378be:/index.php?ds=inline
diff --git a/index.php b/index.php
index b70bd38..83a3a27 100644
--- a/index.php
+++ b/index.php
@@ -1,407 +1,20 @@
-
-
UnrealIRCd Panel
-
-
-
-
-
-
set_method("user.get");
- $rpc->set_params(["nick" => "$user"]);
- $rpc->execute();
- $nick = ($rpc->result) ? $rpc->fetch_assoc() : NULL;
- 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_tkl_add($user, $bantype, $duration, $reason))
- {
- $c = $nick['result']['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);
- if (rpc_tkl_del(base64_decode($tok[0]), base64_decode($tok[1])))
- Message::Success(base64_decode($tok[1])." has been removed for ".base64_decode($tok[0]));
- }
- }
-
- 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]));
- }
- }
-}
+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