X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/896b6cdc0f8cf24d11bec79b2894538eee5c9cba..76200e36b9dce259a825f751f5e33abab4be9a06:/index.php diff --git a/index.php b/index.php index d0453d1..044775f 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ - +
Your shiny IRC overview
Chat Overview | |
---|---|
Users | |
Spamfilter entries |
Nick | UID | -IP/Host | +Host / IP | Account | Usermodes | Oper | @@ -66,7 +75,7 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) echo "".$user['name']." | "; echo "".$user['id']." | "; echo "".$user['hostname']." (".$user['ip'].") | "; - $account = (isset($user['account'])) ? $user['account'] : ""; + $account = (isset($user['user']['account'])) ? $user['user']['account'] : ""; echo "".$account." | "; $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : "".$modes." | "; @@ -77,8 +86,128 @@ rpc_pop_lists(); // populate our static lists (users, channels, tkl, spamfilter) echo "".$user['user']['servername']." | "; echo "".$user['user']['reputation']." | "; } - ?> + ?>
---|
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'] : "".$modes." | "; + } + ?>
---|
Mask | +Type | +Set By | +Set On | +Expires | +Duration | +Match Type | +Action | +Action Duration | +Target | +Reason | + + "; + echo "".$sf['name']." | "; + echo "".$sf['type_string']." | "; + echo "".$sf['set_by']." | "; + echo "".$sf['set_at_string']." | "; + echo "".$sf['expire_at_string']." | "; + echo "".$sf['duration_string']." | "; + echo "".$sf['match_type']." | "; + echo "".$sf['ban_action']." | "; + echo "".$sf['ban_duration_string']." | "; + 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 "".$targs." | "; + echo "".$sf['reason']." | "; + + } + ?>
---|