3 function generate_html_whois($user)
8 <table
class="table-sm table-responsive caption-top table-hover">
12 <td colspan
="2"><code
><?php
echo $user->name
; ?></code
></td
>
14 <th
>User
ID (UID
)</th
>
15 <td colspan
="2"><code
><?php
echo $user->id
; ?></code
></td
>
18 <td colspan
="2"><code
><?php
echo $user->hostname
; ?></code
></td
>
21 <td colspan
="2"><code
><?php
echo $user->ip
." </code> ";
22 if ($cc = (isset($user->geoip
->country_code
)) ? strtolower($user->geoip
->country_code
) : "")
24 ?> <img src
="https://flagcdn.com/48x36/<?php echo $cc; ?>.png"
31 <td colspan
="2"><code
><?php
echo $user->user
->username
; ?></code
></td
>
33 <th
>GECOS
/ Real Name
</th
>
34 <td colspan
="2"><code
><?php
echo $user->user
->realname
; ?></code
></td
>
37 <td colspan
="2"><code
><?php
echo (isset($user->user
->vhost
)) ? $user->user
->vhost
: ""; ?></code
></td
>
40 <?php
$serverlkup = $rpc->server()->get($user->user
->servername
); ?>
42 <td colspan
="2"><a href
="<?php echo BASE_URL."servers
/details
.php
?server
=$serverlkup->id
"; ?>"><code
><?php
echo $user->user
->servername
; ?></code
></td
>
47 <td colspan
="2"><code
><?php
echo (isset($user->user
->account
)) ? "<a href=\"".BASE_URL
."users/?account=".$user->user
->account
."\">".$user->user
->account
."</a>" : ""; ?></code
></td
>
56 function generate_html_usersettings($user)
60 <table
class="table-sm table-responsive caption-top table-hover">
63 for ($i=0; ($mode = (isset($user->user
->modes
[$i])) ? $user->user
->modes
[$i] : NULL); $i++
)
72 <table
class="table-sm table-responsive caption-top table-hover">
75 <td
><code
><?php
echo $user->user
->operlogin
; ?></code
></td
>
79 <td
><?php
echo (isset($user->user
->operclass
)) ? "<span class=\"rounded-pill badge badge-info\">".$user->user
->operclass
."</span>" : "<span class=\"rounded-pill badge badge-info\">None</span>"; ?></td
>
92 This user is a Services Bot
.
102 <td
>User is ignoring channel messages
.</td
>
106 elseif ($mode == "i")
111 <td
>Not shown in
/WHO searches
.</td
>
115 elseif ($mode == "p")
119 <th
>Private channels
</th
>
120 <td
>Channels hidden in
/WHOIS outputs
.</td
>
124 elseif ($mode == "r")
128 <th
>Registered Nick
</th
>
129 <td
>This user is using a registered nick
.</td
>
133 elseif ($mode == "s")
137 <th
>Server Notices
</th
>
138 <td
>This user is receiving server notices
.</td
>
142 elseif ($mode == "t")
146 <th
>Virtual Host
</th
>
147 <td
>Using a custom hostmask
</td
>
151 elseif ($mode == "w")
156 <td
>Listening to
<code
>/WALLOPS
</code
> notices from IRC Operators
.</td
>
160 elseif ($mode == "x")
165 <td
>Using a
hostmask (hiding their IP from non
-IRCops
).</td
>
169 elseif ($mode == "z")
175 <table
class="table-sm table-responsive caption-top table-hover">
178 <td
><code
><?php
echo $user->tls
->cipher
; ?></code
></td
>
181 <td
>Cert Fingerprint
</td
>
182 <td
><?php
echo (isset($user->tls
->certfp
)) ? "<code>".$user->tls
->certfp
."</code>" : "<span class=\"rounded-pill badge badge-info\">None</span>"; ?></td
>
189 elseif ($mode == "B")
195 User is marked
as a Bot
.
200 elseif ($mode == "D")
206 User is rejecting incoming
private messages
.
211 elseif ($mode == "G")
217 User is filtering Bad Words
.
222 elseif ($mode == "H")
228 User is hiding their IRCop status
.
233 elseif ($mode == "I")
239 User is hiding their idle time
.
244 elseif ($mode == "R")
248 <th
>RegOnly Messages
</th
>
250 User is only accepting
private messages from registered users
.
255 elseif ($mode == "T")
261 Denying CTCP requests
.
266 elseif ($mode == "W")
272 User is receiving notifications when someone does a
<code
>/WHOIS
</code
> on them
.
277 elseif ($mode == "Z")
281 <th
>Deny Insecure Messages
</th
>
283 User is only accepting messages from users using a secure connection
.
299 function generate_html_userchannels($user)
303 <table
class="table-sm table-responsive caption-top table-hover table-striped">
304 <thead
class="table-info">
314 foreach($user->user
->channels
as $chan)
318 <td
><?php
echo $chan->name
; ?></td
>
322 for ($i = 0; isset($chan->level
[$i]); $i++
)
324 ?><div
class="text-nowrap row mb-1"><?php
325 if ($chan->level
[$i] == "v")
327 ?><span
class="rounded-pill badge badge-info" value
="Voice">Voice
</span
><?php
329 if ($chan->level
[$i] == "h")
331 ?><span
class="rounded-pill badge badge-info">Half
-Op
</span
><?php
333 if ($chan->level
[$i] == "o")
335 ?><h6
><span
class="rounded-pill badge badge-info">Operator
</span
></h6
><?php
337 if ($chan->level
[$i] == "a")
339 ?><span
class="rounded-pill badge badge-info">Admin
</span
><?php
341 if ($chan->level
[$i] == "q")
343 ?><span
class="rounded-pill badge badge-info">Owner
</span
><?php
345 if ($chan->level
[$i] == "Y")
347 ?><span
class="rounded-pill badge badge-info">OJOIN
</span
><?php