<link href="css/unrealircd-admin.css" rel="stylesheet">
<body class="body-for-sticky">
<div id="headerContainer">
-<h2><a href="">UnrealIRCd</a> <small>Administration Panel</small></h2><br>
+<h2><a href="">UnrealIRCd<small>Administration Panel</small></a> </h2><br>
</div>
<script src="js/unrealircd-admin.js" defer></script>
<div class="topnav">
return;
}
- $msg_msg = ($duration == 0) ? "permanently" : "for $duration";
+ $msg_msg = ($duration == "0" || $duration == "0w0d0h") ? "permanently" : "for $duration";
$reason = (isset($_POST['ban_reason'])) ? $_POST['ban_reason'] : "No reason";
if (rpc_tkl_add($user, $bantype, $duration, $reason))
{
<th>UID</th>
<th>Host / IP</th>
<th>Account</th>
- <th>Usermodes</th>
+ <th>Usermodes<a href="https://www.unrealircd.org/docs/User_modes" target="_blank">ℹ️</a></th>
<th>Oper</th>
<th>Secure</th>
<th>Connected to</th>
- <th>Reputation <a href="https://www.unrealircd.org/docs/Reputation_score">ℹ️</a></th>
+ <th>Reputation <a href="https://www.unrealircd.org/docs/Reputation_score" target="_blank">ℹ️</a></th>
<form action="" method="post">
<?php
echo "<td>".$user['name']."</td>";
echo "<td>".$user['id']."</td>";
echo "<td>".$user['hostname']." (".$user['ip'].")</td>";
- $account = (isset($user['user']['account'])) ? $user['user']['account'] : "<span class=\"label noaccount\">No account</span>";
+ $account = (isset($user['user']['account'])) ? '<span class="label">'.$user['user']['account'].'</span>' : '<span class="label noaccount">No account</span>';
echo "<td>".$account."</td>";
$modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : "<none>";
echo "<td>".$modes."</td>";
- $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." (".$user['user']['operclass'].")" : "";
+ $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." <span class=\"label operclass-label\">".$user['user']['operclass']."</span>" : "";
echo "<td>".$oper."</td>";
$secure = (isset($user['tls'])) ? "<span class=\"label secure-connection\">Secure</span>" : "<span class=\"label noaccount\">Insecure</span>";
echo "<td>".$secure."</td>";