3 function generate_html_whois($user)
7 <table
class="table table-responsive caption-top table-hover">
11 <td colspan
="2"><code
><?php
echo $user->name
; ?></code
></td
>
14 <td colspan
="2"><code
><?php
echo $user->id
; ?></code
></td
>
17 <td colspan
="2"><code
><?php
echo $user->hostname
; ?></code
></td
>
20 <td colspan
="2"><code
><?php
echo $user->ip
." </code> ";
21 if ($cc = (isset($user->geoip
->country_code
)) ? strtolower($user->geoip
->country_code
) : "")
23 ?> <img src
="https://flagcdn.com/48x36/<?php echo $cc; ?>.png"
30 <td colspan
="2"><code
><?php
echo $user->user
->username
; ?></code
></td
>
32 <th
>GECOS
/ Real Name
</th
>
33 <td colspan
="2"><code
><?php
echo $user->user
->realname
; ?></code
></td
>
36 <td colspan
="2"><code
><?php
echo (isset($user->user
->vhost
)) ? $user->user
->vhost
: ""; ?></code
></td
>
39 <td colspan
="2"><code
><?php
echo $user->user
->servername
; ?></code
></td
>
44 <td colspan
="2"><code
><?php
echo (isset($user->user
->account
)) ? $user->user
->account
: ""; ?></code
></td
>
53 function generate_html_usersettings($user)
57 <table
class="table table-responsive caption-top table-hover">
60 for ($i=0; ($mode = (isset($user->user
->modes
[$i])) ? $user->user
->modes
[$i] : NULL); $i++
)
69 <table
class="table table-responsive caption-top table-hover">
72 <td
><code
><?php
echo $user->user
->operlogin
; ?></code
></td
>
76 <td
><?php
echo (isset($user->user
->operclass
)) ? "<span class=\"badge-pill badge-info\">".$user->user
->operclass
."</span>" : "<span class=\"badge-pill badge-info\">None</span>"; ?></td
>
89 This user is a Services Bot
.
99 <td
>User is ignoring channel messages
.</td
>
103 elseif ($mode == "i")
108 <td
>Not shown in
/WHO searches
.</td
>
112 elseif ($mode == "p")
116 <th
>Private channels
</th
>
117 <td
>Channels hidden in
/WHOIS outputs
.</td
>
121 elseif ($mode == "r")
125 <th
>Registered Nick
</th
>
126 <td
>This user is using a registered nick
.</td
>
130 elseif ($mode == "s")
134 <th
>Server Notices
</th
>
135 <td
>This user is receiving server notices
.</td
>
139 elseif ($mode == "t")
143 <th
>Virtual Host
</th
>
144 <td
>Using a custom hostmask
</td
>
148 elseif ($mode == "w")
153 <td
>Listening to
<code
>/WALLOPS
</code
> notices from IRC Operators
.</td
>
157 elseif ($mode == "x")
162 <td
>Using a
hostmask (hiding their IP from non
-IRCops
).</td
>
166 elseif ($mode == "z")
172 <table
class="table table-responsive caption-top table-hover">
175 <td
><code
><?php
echo $user->tls
->cipher
; ?></code
></td
>
178 <td
>Cert Fingerprint
</td
>
179 <td
><?php
echo (isset($user->tls
->certfp
)) ? "".$user->tls
->certfp
."" : "<span class=\"badge-pill badge-info\">None</span>"; ?></td
>
186 elseif ($mode == "B")
192 User is marked
as a Bot
.
197 elseif ($mode == "D")
203 User is rejecting incoming
private messages
.
208 elseif ($mode == "G")
214 User is filtering Bad Words
.
219 elseif ($mode == "H")
225 User is hiding their IRCop status
.
230 elseif ($mode == "I")
236 User is hiding their idle time
.
241 elseif ($mode == "R")
245 <th
>RegOnly Messages
</th
>
247 User is only accepting
private messages from registered users
.
252 elseif ($mode == "T")
258 Denying CTCP requests
.
263 elseif ($mode == "W")
269 User is receiving notifications when someone does a
<code
>/WHOIS
</code
> on them
.
274 elseif ($mode == "Z")
278 <th
>Deny Insecure Messages
</th
>
280 User is only accepting messages from users using a secure connection
.