Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 1298 2014-01-13 22:17:38Z richard $
|
2 |
# $Id: index.php 1306 2014-01-16 10:37:45Z richard $
|
3 |
#
|
3 |
#
|
4 |
# index.php for ALCASAR captive portal
|
4 |
# index.php for ALCASAR captive portal
|
5 |
# by REXY
|
5 |
# by REXY
|
6 |
# UI & css style by stephane ERARD
|
6 |
# UI & css style by stephane ERARD
|
7 |
# The contents of this file may be used under the terms of the GNU
|
7 |
# The contents of this file may be used under the terms of the GNU
|
Line 120... |
Line 120... |
120 |
$l_certif_explain = "Permet l'échange de données sécurisées entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistré sur votre station de consultation, il est possible que des alertes de sécurités soient émises par votre navigateur.<br><br>";
|
120 |
$l_certif_explain = "Permet l'échange de données sécurisées entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistré sur votre station de consultation, il est possible que des alertes de sécurités soient émises par votre navigateur.<br><br>";
|
121 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
121 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
122 |
$l_category = "catégorie :";
|
122 |
$l_category = "catégorie :";
|
123 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
123 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
124 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
124 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
125 |
$l_logout = "<a href=\"http://www.google.fr\">Ouvrir une session Internet</a>";}
|
125 |
$l_logout = "<a href=\"http://www.qwant.com/lang/fr_FR/\">Ouvrir une session Internet</a>";}
|
126 |
else {
|
126 |
else {
|
127 |
if ($user[5] != $user[0]) // authentication exception or not
|
127 |
if ($user[5] != $user[0]) // authentication exception or not
|
128 |
{
|
128 |
{
|
129 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
129 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
130 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
|
130 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
|
Line 156... |
Line 156... |
156 |
$l_certif_explain = "O certificado Permiti a troca de dados seguro entre seu computador e o portal Alcasar.<BR>Se este certificado não estiver incorporado no seu computador, alguns alertas de segurança deverá aparecer no navegador.<br><br>";
|
156 |
$l_certif_explain = "O certificado Permiti a troca de dados seguro entre seu computador e o portal Alcasar.<BR>Se este certificado não estiver incorporado no seu computador, alguns alertas de segurança deverá aparecer no navegador.<br><br>";
|
157 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
157 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
158 |
$l_category = "categoria :";
|
158 |
$l_category = "categoria :";
|
159 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
159 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
160 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
160 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
161 |
$l_logout = "<a href=\"http://www.google.pt\">Abrir uma conexão de Internet</a>";}
|
161 |
$l_logout = "<a href=\"http://www.qwant.com/lang/pt_BR/\">Abrir uma conexão de Internet</a>";}
|
162 |
else {
|
162 |
else {
|
163 |
if ($user[5] != $user[0]) // authentication exception or not
|
163 |
if ($user[5] != $user[0]) // authentication exception or not
|
164 |
{
|
164 |
{
|
165 |
$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
165 |
$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
166 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
166 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
Line 192... |
Line 192... |
192 |
$l_certif_explain = "Allow secure data exchange between your computer and ALCASAR portal.<BR>If this certificate isn't incorporated in your computer, some security alerts should appear in your browser.<br><br>";
|
192 |
$l_certif_explain = "Allow secure data exchange between your computer and ALCASAR portal.<BR>If this certificate isn't incorporated in your computer, some security alerts should appear in your browser.<br><br>";
|
193 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
193 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
194 |
$l_category = "category :";
|
194 |
$l_category = "category :";
|
195 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
195 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
196 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
196 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
197 |
$l_logout = "<a href=\"http://www.google.com\">Open an Internet session</a>";}
|
197 |
$l_logout = "<a href=\"http://www.qwant.com/lang/en_GB/\">Open an Internet session</a>";}
|
198 |
else {
|
198 |
else {
|
199 |
if ($user[5] != $user[0]) // authentication exception or not
|
199 |
if ($user[5] != $user[0]) // authentication exception or not
|
200 |
{
|
200 |
{
|
201 |
$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
201 |
$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
202 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|
202 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|