diff --git a/inc/css/custom.css b/inc/css/custom.css index 93453ec..407d2ba 100644 --- a/inc/css/custom.css +++ b/inc/css/custom.css @@ -89,7 +89,7 @@ tr.hover { } /* info.php */ -.litebans-info-badges { +.litebans-label-container { width: 0; display: inline-flex; } @@ -99,6 +99,31 @@ tr.hover { font-size: 17px; } +.litebans-label-inactive { + color: #fff; + background-color: #f79720 +} + +.litebans-label-expired { + color: #fff; + background-color: #777 +} + +.litebans-label-active { + color: #fff; + background-color: #ee5555 +} + +.litebans-label-permanent { + color: #fff; + background-color: #ee5555 +} + +.litebans-label-ipban { + color: #fff; + background-color: #ee5555 +} + /* history.php */ .litebans-label-history { font-size: 16px; diff --git a/info.php b/info.php index 58e8621..586eafd 100644 --- a/info.php +++ b/info.php @@ -163,19 +163,23 @@ if ($st->execute(array($id))) { $idx = "generic.ipmute"; } if ($idx !== null) { - $badges .= "" . $page->t($idx) . ""; + $badges .= "" . $page->t($idx) . ""; } } if ($active === true) { - $badges .= "" . $page->t("generic.active") . ""; + $badges .= "" . $page->t("generic.active") . ""; if ($permanent) { - $badges .= "" . $page->t("generic.permanent") . ""; + $badges .= "" . $page->t("generic.permanent") . ""; } } else { - $badges .= "" . $page->t("generic.inactive") . ""; + if ($page->is_expired($row)) { + $badges .= "" . $page->t("generic.expired") . ""; + } else { + $badges .= "" . $page->t("generic.inactive") . ""; + } } } - $page->print_header(true, $header . "