diff --git a/error/tables-not-found.php b/error/tables-not-found.php
index 3469e51..0e193c9 100644
--- a/error/tables-not-found.php
+++ b/error/tables-not-found.php
@@ -30,7 +30,7 @@
require_once '../inc/settings.php';
$settings = new Settings(false);
$host = $settings->host;
- if ($host === "localhost" || $host === "127.0.0.1") {
+ if ($host === "localhost" || $host === "127.0.0.1" || $host === "0.0.0.0") {
echo("
- The web interface is connected to $host. If LiteBans and the web interface are both connected to $host, they should not be hosted on two separate servers.");
}
$table_prefix = $settings->table_prefix;
diff --git a/inc/settings.php b/inc/settings.php
index e405384..9d0dcdc 100644
--- a/inc/settings.php
+++ b/inc/settings.php
@@ -203,7 +203,7 @@ final class Settings {
static function append_query($existing, $new) {
if ($existing !== "") {
- return $existing . " AND $new";
+ return "$existing AND $new";
}
return "WHERE $new";
}
diff --git a/info.php b/info.php
index 4853829..017c203 100644
--- a/info.php
+++ b/info.php
@@ -156,12 +156,12 @@ if ($st->execute(array($id))) {
$style = 'style="margin-left: 13px; font-size: 16px;"';
$active = $page->active($row);
if ($active === true) {
- $header .= "Active";
+ $header .= "" . $page->t("info_tag_active") . "";
if ($permanent) {
- $header .= "Permanent";
+ $header .= "" . $page->t("info_tag_permanent") . "";
}
} else {
- $header .= "Inactive";
+ $header .= "" . $page->t("info_tag_inactive") . "";
}
}
$page->print_header(true, $header);
diff --git a/lang/en_US.utf8.php b/lang/en_US.utf8.php
index dece371..6f763db 100644
--- a/lang/en_US.utf8.php
+++ b/lang/en_US.utf8.php
@@ -63,6 +63,11 @@ class DefaultLang {
$array["info_kick_reason"] = "Kick Reason";
$array["info_kick_when"] = "Kick Date";
+ $array["info_tag_active"] = "Active";
+ $array["info_tag_inactive"] = "Inactive";
+ $array["info_tag_permanent"] = "Permanent";
+
+
$array["bans_player"] = "Name";
$array["bans_by"] = "Banned By";
$array["bans_reason"] = "Reason";