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

UnrealIRCd Administration Panel


+

UnrealIRCd Administration Panel


@@ -11,29 +12,52 @@ 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['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) ?>
-

Your shiny IRC overview

@@ -44,29 +68,31 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter)
Chat Overview
Users
Server bans
Spamfilter entries
- -
-
+
+
+

+ - + - + "; + echo ""; echo ""; echo ""; echo ""; - $account = (isset($user['account'])) ? $user['account'] : ""; + $account = (isset($user['user']['account'])) ? $user['user']['account'] : ""; echo ""; $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : ""; echo ""; @@ -77,8 +103,197 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) echo ""; echo ""; } - ?> + ?>
Select all Nick UIDIP/HostHost / IP Account Usermodes Oper Secure Connected toReputation ℹ️Reputation ℹ️ ".$user['name']."".$user['id']."".$user['hostname']." (".$user['ip'].")".$account."".$modes."".$user['user']['servername']."".$user['user']['reputation']."
+ +
+ +
+
+

+ + + + + + + + + "; + echo ""; + echo ""; + echo ""; + $topic = (isset($channel['topic'])) ? $channel['topic'] : ""; + echo ""; + $setby = (isset($channel['topic'])) ? "By ".$channel['topic_set_by'] .", at ".$channel['topic_set_at'] : ""; + echo ""; + $modes = (isset($channel['modes'])) ? "+" . $channel['modes'] : ""; + echo ""; + } + ?>
NameCreatedUser countTopicTopic SetModes".$channel['name']."".$channel['creation_time']."".$channel['num_users']."".$topic."".$setby."".$modes."
+ + +
+
+ + + + + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + ?>
Select allMaskTypeSet BySet OnExpiresDurationReason".$tkl['name']."".$tkl['type_string']."".$tkl['set_by']."".$tkl['set_at_string']."".$tkl['expire_at_string']."".$tkl['duration_string']."".$tkl['reason']."

+ +
+
+

+ + + + + + + + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + for ($i = 0, $targs = ""; ($c = $sf['spamfilter_targets'][$i]); $i++) + { + if ($c == "c") + $targs .= "Channel, "; + else if ($c == "p") + $targs .= "Private,"; + else if ($c == "n") + $targs .= "Notice, "; + else if ($c == "N") + $targs .= "Channel notice, "; + else if ($c == "P") + $targs .= "Part message, "; + else if ($c == "q") + $targs .= "Quit message, "; + else if ($c == "d") + $targs .= "DCC filename, "; + else if ($c == "a") + $targs .= "Away message, "; + else if ($c == "t") + $targs .= "Channel topic, "; + else if ($c == "T") + $targs .= "MessageTag, "; + else if ($c == "u") + $targs .= "Usermask, "; + + $targs = rtrim($targs,", "); + } + echo ""; + echo ""; + + } + ?>
Select allMaskTypeSet BySet OnExpiresDurationMatch TypeActionAction DurationTargetReason".$sf['name']."".$sf['type_string']."".$sf['set_by']."".$sf['set_at_string']."".$sf['expire_at_string']."".$sf['duration_string']."".$sf['match_type']."".$sf['ban_action']."".$sf['ban_duration_string']."".$targs."".$sf['reason']."

+ + + +
+
+ + +
+ - \ No newline at end of file + \ No newline at end of file