From: Valerie Pond Date: Thu, 5 Jan 2023 02:34:57 +0000 (+0000) Subject: Give more prettiness X-Git-Tag: 0.9~594 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/d4a2999bf011c99b2ee19db698214427e6bbe256 Give more prettiness --- diff --git a/css/unrealircd-admin.css b/css/unrealircd-admin.css index da818a3..13c3b49 100644 --- a/css/unrealircd-admin.css +++ b/css/unrealircd-admin.css @@ -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 { diff --git a/index.php b/index.php index adbeed3..020b755 100644 --- 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 "".$account.""; $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : ""; echo "".$modes.""; - $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." (".$user['user']['operclass'].")" : ""; + $oper = (isset($user['user']['operlogin'])) ? $user['user']['operlogin']." ".$user['user']['operclass']."" : ""; echo "".$oper.""; $secure = (isset($user['tls'])) ? "Secure" : "Insecure"; echo "".$secure."";