]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - index.php
Put the space back lol
[irc/unrealircd/unrealircd-webpanel.git] / index.php
index 0472a48cc5ddcdb10c2e6bf6af3efe9fabd3293f..8d7f7e812df9d21e6cb8edf4874fd9682ca776c9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
 <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">
@@ -65,7 +65,7 @@ if (!empty($_POST)) {
                                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))
                        {
@@ -118,11 +118,11 @@ rpc_pop_lists();
        <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
@@ -133,13 +133,13 @@ rpc_pop_lists();
                        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'] : "";
+                       $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'])) ? "✅" : "❌";
+                       $secure = (isset($user['tls'])) ? "<span class=\"label secure-connection\">Secure</span>" : "<span class=\"label noaccount\">Insecure</span>";
                        echo "<td>".$secure."</td>";
                        echo "<td>".$user['user']['servername']."</td>";
                        echo "<td>".$user['user']['reputation']."</td>";