]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Give more prettiness
authorValerie Pond <redacted>
Thu, 5 Jan 2023 02:34:57 +0000 (02:34 +0000)
committerValerie Pond <redacted>
Thu, 5 Jan 2023 02:34:57 +0000 (02:34 +0000)
css/unrealircd-admin.css
index.php

index da818a34a607970b6a5021b535c44c0bf3e1410f..13c3b491c6ef4faca5fb14c127dbf11916ac66ac 100644 (file)
@@ -23,21 +23,25 @@ a {
     text-decoration: none;
 }
 .secure-connection {
-    border-color: green;
-    color: green;
-    border: 3px solid green;
-    background-color: rgba(0, 255, 0, 0.267);
+    color: darkgreen;
+    border: 3px solid darkgreen;
+    background-color: rgba(0, 255, 0, 0.1);
+}
+
+.operclass-label {
+    color:brown;
+    border: 3px solid brown;
+    background-color: rgba(255, 166, 0, 0.247);
 }
 .noaccount {
-    border-color: red;
-    color: red;
-    border: 3px solid red;
-    background-color: rgba(255, 0, 0, 0.185);
+    color: darkred;
+    border: 3px solid darkred;
+    background-color: rgba(255, 78, 78, 0.295);
 }
 .label {
 
     font-family: 'Heebo', sans-serif;
-    font-size: 0.75rem;
+    font-size: 0.65rem;
     font-weight: 500;
     letter-spacing: 0.025rem;
     font-style: normal;
@@ -47,7 +51,6 @@ a {
     -moz-border-radius: 1rem;
     padding: 0.20rem 0.50rem;
     border-style: solid;
-    border-width: 0.125rem;
     
     }
 textarea {
index adbeed34fc865d2104fbbfeb3e36e57c2a04d976..020b755c7f6beaccea0af88171a03ff1c80a837a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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))
                        {
@@ -137,7 +137,7 @@ rpc_pop_lists();
                        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>";