diff --git a/index.php b/index.php index 054221c..05b08c2 100755 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ foreach ($headers as $header => $value) { function languageSelector(){ $lang_dir = "templates/locale"; $langs = scandir($lang_dir); - $langSelectDat = '
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(); diff --git a/templates/locale/en.json b/templates/locale/en.json index 10e32ed..2e1486d 100644 --- a/templates/locale/en.json +++ b/templates/locale/en.json @@ -1,6 +1,7 @@ { "__LOCALIZATION_LANG_SHORT": "en", "__LOCALIZATION_LANG_LONG": "English", + "__LOCALIZATION_LANG_LABEL": "Language", "__LOCALIZATION_LOGOUT__": "Log out", diff --git a/templates/locale/sk.json b/templates/locale/sk.json index db4363c..2054d9f 100644 --- a/templates/locale/sk.json +++ b/templates/locale/sk.json @@ -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ť",