v 1.3.0 - i18n
This commit is contained in:
@ -22,11 +22,13 @@ if (is_null($tsviewer)) {
|
||||
// print_r ($tsviewer);
|
||||
|
||||
function getViewer() {
|
||||
global $lang;
|
||||
|
||||
try {
|
||||
$tsAdmin = TeamSpeak3::factory(getTeamspeakURI(). "#no_query_clients");
|
||||
return $tsAdmin->getViewer(new TeamSpeak3_Viewer_Html("lib/ts3phpframework/images/viewer/", "lib/ts3phpframework/images/flags/", "data:image"));
|
||||
} catch(TeamSpeak3_Exception $e) {
|
||||
return '<div class="alert alert-danger"><p class="text-center">Wystąpił błąd ' . $e->getCode() . ': ' . $e->getMessage() . '</p></div>';
|
||||
return '<div class="alert alert-danger"><p class="text-center">' . translate($lang["general"]["scripterror"], [$e->getCode(), $e->getMessage()]) . '</p></div>';
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,13 +36,13 @@ function getViewer() {
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title"><i class="fa fa-eye" aria-hidden="true"></i> Podgląd serwera</h3>
|
||||
<h3 class="panel-title"><i class="fa fa-eye" aria-hidden="true"></i> <?php tl($lang["viewer"]["title"]); ?></h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<?php echo $tsviewer[0]; ?>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
Stan na <?php echo $tsviewer[1]; ?><!-- <span style="float: right">Podgląd odświerza się co 30 sekund</span> -->
|
||||
<?php tl($lang["viewer"]["lastupdate"], [$tsviewer[1]]); ?><!-- <span style="float: right">Podgląd odświerza się co 30 sekund</span> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user