Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2346 → Rev 2345

/web/status.php
33,7 → 33,7
$buffer = fgets($file_conf, 4096);
if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
$tmp = explode('=', $buffer);
$conf[trim($tmp[0])] = trim($tmp[1]);
$conf[$tmp[0]] = trim($tmp[1]);
}
}
fclose($file_conf);
43,7 → 43,6
$cn = '';
$connection_history = '';
$nb_connection_history = 3;
$homepage_url = (($conf['HTTPS_LOGIN'] === 'on') ? 'https' : 'http' ).'://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'].'/';
 
// Wait for chilli (update its tables)
sleep(1); // TODO: wait after login only?
94,7 → 93,6
$l_a_connection = "You have"; // to translate
$l_a_connection_time = "active connections on the network"; // to translate
$l_close_warning = "Advertencia: se desconectará si cierra esta ventana";
$l_back_homepage = "Volver a la página de inicio";
} else if ($Language === 'zh') { // Chinese
$l_login1 = "验证通过";
$l_logout = "关闭连接";
119,7 → 117,6
$l_a_connection = "您已经有";
$l_a_connection_time = "在线时间";
$l_close_warning = "警告: 您将会断开连接如果您在关闭此窗口";
$l_back_homepage = "回到主页";
} else if ($Language === 'ar') { // Arabic
$l_login1 = "نجاح المصادقة";
$l_logout = "إغلاق الدورة";
145,7 → 142,6
$l_a_connection = "لديك";
$l_a_connection_time = "اتصالات ناشطة على الشبكة";
$l_close_warning = "تحذير: سيتم قطع الاتصال إذا قمت بإغلاق هذه النافذة";
$l_back_homepage = "الرجوع إلى الصفحة الرئيسية";
} else if ($Language === 'pt') { // Portuguese
$l_login1 = "Autenticação bem sucedida.";
$l_logout = "Fechando a conexão";
170,7 → 166,6
$l_a_connection = "Conexão ativa já detectada para essa LAN";
$l_a_connection_time = "Tempo (s)";
$l_close_warning = "Aviso: você será desconectado se fechar esta janela";
$l_back_homepage = "Voltar à página inicial";
} else if ($Language === 'de') { // German
$l_login1 = "Erfolgreiche Authentifizierung";
$l_logout = "Beenden der Verbindung";
195,7 → 190,6
$l_a_connection = "You have"; // to translate
$l_a_connection_time = "active connections on the network"; // to translate
$l_close_warning = "Warnung: Sie werden getrennt, wenn Sie dieses Fenster schließen";
$l_back_homepage = "Zurück zur Startseite";
} else if ($Language === 'nl') { // Dutch
$l_login1 = "Succesvolle authenticatie";
$l_logout = "Slotkoers verbinding";
220,7 → 214,6
$l_a_connection = "You have"; // to translate
$l_a_connection_time = "active connections on the network"; // to translate
$l_close_warning = "Waarschuwing: u zal worden afgebroken als u dit venster sluiten";
$l_back_homepage = "Terug naar de homepage";
} else if ($Language === 'fr') { // French
$l_login1 = "Authentification réussie";
$l_logout = "Fermeture de la session";
245,7 → 238,6
$l_a_connection = "Vous avez";
$l_a_connection_time = "connexions actives sur le réseau";
$l_close_warning = "Attention : vous serez déconnecté si vous fermez cette fenêtre";
$l_back_homepage = "Revenir à la page d'accueil";
} else { // English
$l_login1 = "Successful authentication.";
$l_logout = "Closing connection";
270,7 → 262,6
$l_a_connection = "You have";
$l_a_connection_time = "active connections on the network";
$l_close_warning = "Warning: you will be disconnected if you close this window";
$l_back_homepage = "Back to homepage";
}
 
if (isset($user[5])) {
364,10 → 355,7
<table id="disconnectTable">
<tr>
<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td>
<td>
<p class="text_auth"><?= $l_loggedout ?></p>
<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p>
</td>
<td><p class="text_auth"><?= $l_loggedout ?></p></td>
</tr>
</table>
</div>