mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-08-21 12:12:24 +00:00
Add #30 - option to disable server scope column
This commit is contained in:
parent
4abcd21eaf
commit
9260bbdf4e
@ -392,6 +392,9 @@ class Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function print_table_rows($row, $array, $print_headers = true) {
|
function print_table_rows($row, $array, $print_headers = true) {
|
||||||
|
if (!$this->settings->show_server_scope) {
|
||||||
|
unset($array[$this->t("column_server")]);
|
||||||
|
}
|
||||||
if ($print_headers && !$this->table_headers_printed) {
|
if ($print_headers && !$this->table_headers_printed) {
|
||||||
$headers = array_keys($array);
|
$headers = array_keys($array);
|
||||||
$this->table_print_headers($headers);
|
$this->table_print_headers($headers);
|
||||||
|
@ -28,6 +28,9 @@ final class Settings {
|
|||||||
// Clicking on the header name will send you to this address.
|
// Clicking on the header name will send you to this address.
|
||||||
$this->name_link = '#';
|
$this->name_link = '#';
|
||||||
|
|
||||||
|
// Show server scope column?
|
||||||
|
$this->show_server_scope = true;
|
||||||
|
|
||||||
// Show inactive bans? Removed bans will show (Unbanned), mutes will show (Unmuted), warnings will show (Expired).
|
// Show inactive bans? Removed bans will show (Unbanned), mutes will show (Unmuted), warnings will show (Expired).
|
||||||
$this->show_inactive_bans = true;
|
$this->show_inactive_bans = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user