Instalator fixes and lots and lots of other bugfixes

This commit is contained in:
Vojtěch Sajdl
2018-01-12 21:35:31 +01:00
parent e19fd0d3c2
commit c25e8bcae8
16 changed files with 434 additions and 170 deletions
+5 -5
View File
@@ -18,13 +18,13 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
$override = ((isset($_GET['lang']))?$_GET['lang']:null);
$best_match = $negotiator->negotiate($override);
$_SESSION['locale'] = $best_match;
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
bindtextdomain("server-status", __DIR__ . "/locale/");
bind_textdomain_codeset($_SESSION['locale'], "utf-8");
textdomain("server-status");
}
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
bindtextdomain("server-status", __DIR__ . "/locale/");
bind_textdomain_codeset("server-status", "utf-8");
textdomain("server-status");
//Database connection
$mysqli = new mysqli("##server##","##user##","##password##","##database##");