fix typo, add label to language selector

This commit is contained in:
2023-01-31 16:22:38 +01:00
parent 18360eb63e
commit ac03be16c3
3 changed files with 8 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ foreach ($headers as $header => $value) {
function languageSelector(){
$lang_dir = "templates/locale";
$langs = scandir($lang_dir);
$langSelectDat = '<div id="langselect"><select>';
$langSelectDat = '<div id="langselect"><label for="langselector">Language/Jazyk:</label><select id="langselector>';
foreach($langs as $lang){
if (str_contains($lang, ".json")){
$parsedLang = json_decode(file_get_contents($lang_dir . '/' . $lang), true);
@@ -147,7 +147,8 @@ if (!empty($_GET['keepalive'])){
while($stmt6->fetch()){
$stmt7 = $mysqli->prepare("UPDATE Connections SET TimestampPing=CURRENT_TIMESTAMP, TimePing = ? WHERE PHPSessID = ?;");
$currsessid = session_id();
$stmt7->bind_param("ss", date("Y.n.d H:i:s"), $currsessid);
$curdate = date("Y.n.d H:i:s");
$stmt7->bind_param("ss", $curdate, $currsessid);
$stmt7->execute();
$stmt7->store_result();
}
@@ -277,7 +278,8 @@ if (!empty($_POST['kod']) && !empty($_POST['listeners']) && !empty($_POST['ini']
$stmt12 = $mysqli->prepare("INSERT INTO Connections (PHPSessID, TimeConnect, TimestampPing, TimePing, Listeners, Inicialy, IP, StreamID) VALUES (?, ?, CURRENT_TIMESTAMP, ?, ?, ?, ?, ?);");
$currsessid = session_id();
$stmt12->bind_param('sssissi', $currsessid, date("Y.n.d H:i:s"), date("Y.n.d H:i:s"), $listeners, $inicialy, $ipcka, $idcko);
$curdate = date("Y.n.d H:i:s");
$stmt12->bind_param('sssissi', $currsessid, $curdate, $curdate, $listeners, $inicialy, $ipcka, $idcko);
$stmt12->execute();
$stmt12->store_result();

View File

@@ -1,6 +1,7 @@
{
"__LOCALIZATION_LANG_SHORT": "en",
"__LOCALIZATION_LANG_LONG": "English",
"__LOCALIZATION_LANG_LABEL": "Language",
"__LOCALIZATION_LOGOUT__": "Log out",

View File

@@ -1,12 +1,13 @@
{
"__LOCALIZATION_LANG_SHORT": "sk",
"__LOCALIZATION_LANG_LONG": "Slovenčina",
"__LOCALIZATION_LANG_LABEL": "Jazyk",
"__LOCALIZATION_LOGOUT__": "Odhlásiť sa",
"__LOCALIZATION_PLAYLIST_DOWNLOAD__": "Stiahnunť playlist",
"__LOCALIZATION_PLAYLIST_DOWNLOAD__": "Stiahnuť playlist",
"__LOCALIZATION_PLAYER_TITLE__": "Streaming",
"__LOCALIZATION_CHAT_SENDING__": "Odosielam",
"__LOCALIZATION_CHAT_SEND__": "Odoslať",