mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Clean up settings.php
This commit is contained in:
parent
28a0531f86
commit
09b502e033
@ -7,12 +7,6 @@ final class Settings {
|
|||||||
// Web interface language. Languages are stored in the "lang/" directory.
|
// Web interface language. Languages are stored in the "lang/" directory.
|
||||||
$this->lang = 'en_US.utf8';
|
$this->lang = 'en_US.utf8';
|
||||||
|
|
||||||
// Server name, shown on the main page and on the header
|
|
||||||
$this->name = 'LiteBans';
|
|
||||||
|
|
||||||
// Clicking on the header name will send you to this address.
|
|
||||||
$this->name_link = '#';
|
|
||||||
|
|
||||||
// Database information
|
// Database information
|
||||||
$host = 'localhost';
|
$host = 'localhost';
|
||||||
$port = 3306;
|
$port = 3306;
|
||||||
@ -28,6 +22,13 @@ final class Settings {
|
|||||||
// Supported drivers: mysql, pgsql
|
// Supported drivers: mysql, pgsql
|
||||||
$driver = 'mysql';
|
$driver = 'mysql';
|
||||||
|
|
||||||
|
// Server name, shown on the main page and on the header
|
||||||
|
$this->name = 'LiteBans';
|
||||||
|
|
||||||
|
// Clicking on the header name will send you to this address.
|
||||||
|
$this->name_link = '#';
|
||||||
|
|
||||||
|
|
||||||
// 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;
|
||||||
|
|
||||||
@ -184,9 +185,7 @@ final class Settings {
|
|||||||
|
|
||||||
function redirect($url) {
|
function redirect($url) {
|
||||||
echo "<a href=\"$url\">Redirecting...</a>";
|
echo "<a href=\"$url\">Redirecting...</a>";
|
||||||
|
|
||||||
echo "<script type=\"text/javascript\">document.location=\"$url\";</script>";
|
echo "<script type=\"text/javascript\">document.location=\"$url\";</script>";
|
||||||
|
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user