mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-09 01:31:34 +00:00
add lang to login form (2)
This commit is contained in:
@@ -8,6 +8,15 @@
|
||||
|
||||
require_once 'config.php';
|
||||
|
||||
function get_translations() {
|
||||
$tr = array("en_US" => "English",
|
||||
"ru_RU" => "Russian",
|
||||
"fr_FR" => "French",
|
||||
"zh_CN" => "Chinese");
|
||||
|
||||
return $tr;
|
||||
}
|
||||
|
||||
if (ENABLE_TRANSLATIONS == true) {
|
||||
require_once "accept-to-gettext.php";
|
||||
require_once "gettext/gettext.inc";
|
||||
@@ -1377,6 +1386,8 @@
|
||||
if (authenticate_user($link, $login, $password)) {
|
||||
$_POST["password"] = "";
|
||||
|
||||
$_SESSION["language"] = $_POST["language"];
|
||||
|
||||
header("Location: " . $_SERVER["REQUEST_URI"]);
|
||||
exit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user