mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Does it work on PHP 5.3.x yet? Maybe
This commit is contained in:
parent
162d0ede65
commit
55ebee2724
@ -240,7 +240,7 @@ class Page {
|
||||
} else {
|
||||
$until = $this->millis_to_date($row['until']);
|
||||
}
|
||||
if ($this->settings->show_inactive_bans && $this->active($row) === false) {
|
||||
if ($this->settings->show_inactive_bans && $row['active'] === "0") {
|
||||
$until .= ' ' . $this->expired[$this->type];
|
||||
}
|
||||
return $until;
|
||||
|
3
info.php
3
info.php
@ -143,14 +143,13 @@ if ($st->execute(array($id))) {
|
||||
|
||||
$name = $info->name();
|
||||
$permanent = $info->permanent();
|
||||
$active = $page->active($row);
|
||||
|
||||
$page->name = "$name #$id";
|
||||
$page->print_title();
|
||||
|
||||
if (!($info instanceof KickInfo)) {
|
||||
$style = 'style="margin-left: 13px; font-size: 16px;"';
|
||||
if ($active) {
|
||||
if ($row['active'] === "1") {
|
||||
$page->name .= "<span $style class='label label-danger'>Active</span>";
|
||||
} else {
|
||||
$page->name .= "<span $style class='label label-warning'>Inactive</span>";
|
||||
|
@ -25,7 +25,7 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
'Warned By' => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
|
||||
'Reason' => $page->clean($row['reason']),
|
||||
'Warned Until' => $page->expiry($row),
|
||||
'Received Warning' => $page->active($row, 'warned') ? "Yes" : "No",
|
||||
'Received Warning' => ($row['warned'] === "1") ? "Yes" : "No",
|
||||
));
|
||||
}
|
||||
$page->table_end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user