Clean up settings.php

This commit is contained in:
ruan 2016-09-27 08:40:07 +02:00
parent 28a0531f86
commit 09b502e033
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -7,12 +7,6 @@ final class Settings {
// Web interface language. Languages are stored in the "lang/" directory.
$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
$host = 'localhost';
$port = 3306;
@ -28,6 +22,13 @@ final class Settings {
// Supported drivers: mysql, pgsql
$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).
$this->show_inactive_bans = true;
@ -184,9 +185,7 @@ final class Settings {
function redirect($url) {
echo "<a href=\"$url\">Redirecting...</a>";
echo "<script type=\"text/javascript\">document.location=\"$url\";</script>";
die;
}
}