mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2026-06-01 21:54:48 -04:00
Instalator fixes and lots and lots of other bugfixes
This commit is contained in:
+5
-5
@@ -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##");
|
||||
|
||||
Reference in New Issue
Block a user