Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tltneon/lgsl
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon committed May 17, 2022
2 parents 1db12eb + d0bfc8f commit 83aadcc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
38 changes: 19 additions & 19 deletions lgsl_files/languages/slovak.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$lgsl_config['text']['dtl'] = "Detaily";
$lgsl_config['text']['npi'] = "Žiadne informacie o hračovy";
$lgsl_config['text']['nei'] = "ŽIadne extra Info";
$lgsl_config['text']['ehs'] = "NAstavenia";
$lgsl_config['text']['ehs'] = "Nastavenia";
$lgsl_config['text']['ehv'] = "Hodnota";
$lgsl_config['text']['onl'] = "ONLINE";
$lgsl_config['text']['onp'] = "ONLINE S HESLOM";
Expand All @@ -43,19 +43,19 @@
$lgsl_config['text']['asc'] = "ÚSPEŠNE - Prosím potvrďte že sa jedná o správny Server";
$lgsl_config['text']['aas'] = "Pridať Server";
$lgsl_config['text']['loc'] = "Umiestnenie:";
$lgsl_config['text']['cts'] = "Click to show server banners";
$lgsl_config['text']['lst'] = "Last update";
$lgsl_config['text']['nam'] = "Name";
$lgsl_config['text']['gam'] = "Game";
$lgsl_config['text']['cts'] = "Klikni pre zobrazenie serverových banerov";
$lgsl_config['text']['lst'] = "Naposledy aktualizované";
$lgsl_config['text']['nam'] = "Meno";
$lgsl_config['text']['gam'] = "Hra";
$lgsl_config['text']['sta'] = "Status";
$lgsl_config['text']['sco'] = "Score";
$lgsl_config['text']['tim'] = "Time";
$lgsl_config['text']['tea'] = "Team";
$lgsl_config['text']['cou'] = "Country";
$lgsl_config['text']['pin'] = "Ping";
$lgsl_config['text']['dea'] = "Deaths";
$lgsl_config['text']['hea'] = "Health";
$lgsl_config['text']['pag'] = "Page";
$lgsl_config['text']['sco'] = "Skóre";
$lgsl_config['text']['tim'] = "Čas";
$lgsl_config['text']['tea'] = "Tým";
$lgsl_config['text']['cou'] = "Krajina";
$lgsl_config['text']['pin'] = "Odozva";
$lgsl_config['text']['dea'] = "Smrte";
$lgsl_config['text']['hea'] = "Zdravie";
$lgsl_config['text']['pag'] = "Strana";
$lgsl_config['text']['bak'] = "Spať na zoznam Serverov";
$lgsl_config['text']['mpg'] = "NA HLAVNÚ STRÁNKU";
/* admin section */
Expand All @@ -75,12 +75,12 @@
$lgsl_config['text']['dsb'] = "Vypnuté";
$lgsl_config['text']['aum'] = "Admin meno/heslo chýba v configu";
$lgsl_config['text']['apc'] = "Heslo pre admina nesmie byť rovnaké ako záklandé";
$lgsl_config['text']['faq'] = "- To remove a server, delete the IP, then click Save.<br /><br />- Leave the query port blank to have LGSL try to fill it in for you.<br /><br />- Software port is only needed for a few games so it being set 0 is normal.<br /><br />- Edit the lgsl_config.php to set the style and other options.<br /><br />- Keep your LGSL up to date.";
$lgsl_config['text']['fso'] = "Required for direct querying of servers";
$lgsl_config['text']['crl'] = "Used for the feed when fsockopen is disabled";
$lgsl_config['text']['faq'] = "- Ak chcete odstrániť server, odstráňte IP a potom kliknite na Uložiť.<br /><br />- Nechajte querey port prázdny, aby sa ho LGSL pokúsila vyplniť za vás.<br /><br />- Software port je potrebný len pre niekoľko hier, takže nastavenie na 0 je normálne.<br /><br />- Upravte lgsl_config.php na nastavenie štýlu a ďalších možností.<br /><br />- Nechajte si svoje LGSL aktuálny.";
$lgsl_config['text']['fso'] = "Vyžaduje sa na priame dopytovanie serverov";
$lgsl_config['text']['crl'] = "Používa sa pre feed, keď je fsockopen vypnutý";
$lgsl_config['text']['mbs'] = "Used to show UTF-8 server and player names correctly";
$lgsl_config['text']['bz2'] = "Used to show Source server settings over a certain size";
$lgsl_config['text']['gd2'] = "Required for Image Mod";
$lgsl_config['text']['zli'] = "Required for America's Army 3";
$lgsl_config['text']['bz2'] = "Používa sa na zobrazenie Source Server nastavenia nad určitú veľkosť";
$lgsl_config['text']['gd2'] = "Vyžadovaný pre Image Mod";
$lgsl_config['text']['zli'] = "Vyžadovaný pre America's Army 3";

//------------------------------------------------------------------------------------------------------------+
16 changes: 8 additions & 8 deletions lgsl_files/lgsl_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ function lgsl_query_cached($type, $ip, $c_port, $q_port, $s_port, $request, $id
if(time() - $item['time'] < 60 * 60 * 24) // NOT OLDER THAN 1 DAY
array_push($live['s']['history'], $item);
}
}
$last = ($cache['s']['history'] ? end($cache['s']['history']) : null);
if(!$last or time() - $last['time'] >= 60 * 15 ) { // RECORD IF 15 MINS IS PASSED
array_push($live['s']['history'], array(
"status" => (int) $live['b']['status'],
"time" => $live['s']['cache_time'],
"players" => (int) $live['s']['players']
));
$last = ($cache['s']['history'] ? end($cache['s']['history']) : null);
if(!$last or time() - $last['time'] >= 60 * 15 ) { // RECORD IF 15 MINS IS PASSED
array_push($live['s']['history'], array(
"status" => (int) $live['b']['status'],
"time" => $live['s']['cache_time'],
"players" => (int) $live['s']['players']
));
}
}
}

Expand Down

0 comments on commit 83aadcc

Please sign in to comment.