Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 1426 2014-09-11 20:11:25Z richard $
|
2 |
# $Id: index.php 1428 2014-09-11 21:08:52Z 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 122... |
Line 122... |
122 |
$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>";
|
122 |
$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>";
|
123 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
123 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
124 |
$l_category = "catégorie :";
|
124 |
$l_category = "catégorie :";
|
125 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
125 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
126 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
126 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
127 |
$l_logout = "<a href=\"http://www.qwant.com/lang/fr_FR/\">Ouvrir une session Internet</a>";}
|
127 |
$l_logout = "<a href=\"http://www.wikipedia.org\">Ouvrir une session Internet</a>";}
|
128 |
else {
|
128 |
else {
|
129 |
if ($user[5] != $user[0]) // authentication exception or not
|
129 |
if ($user[5] != $user[0]) // authentication exception or not
|
130 |
{
|
130 |
{
|
131 |
$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";
|
131 |
$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";
|
132 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
|
132 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
|
Line 158... |
Line 158... |
158 |
$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>";
|
158 |
$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>";
|
159 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
159 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
160 |
$l_category = "categoria :";
|
160 |
$l_category = "categoria :";
|
161 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
161 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
162 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
162 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
163 |
$l_logout = "<a href=\"http://www.qwant.com/lang/pt_BR/\">Abrir uma conexão de Internet</a>";}
|
163 |
$l_logout = "<a href=\"http://www.wikipedia.org\">Abrir uma conexão de Internet</a>";}
|
164 |
else {
|
164 |
else {
|
165 |
if ($user[5] != $user[0]) // authentication exception or not
|
165 |
if ($user[5] != $user[0]) // authentication exception or not
|
166 |
{
|
166 |
{
|
167 |
$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";
|
167 |
$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";
|
168 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
168 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
Line 194... |
Line 194... |
194 |
$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>";
|
194 |
$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>";
|
195 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
195 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
196 |
$l_category = "category :";
|
196 |
$l_category = "category :";
|
197 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
197 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
198 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
198 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
199 |
$l_logout = "<a href=\"http://www.qwant.com/lang/en_GB/\">Open an Internet session</a>";}
|
199 |
$l_logout = "<a href=\"http://www.wikipedia.org\">Open an Internet session</a>";}
|
200 |
else {
|
200 |
else {
|
201 |
if ($user[5] != $user[0]) // authentication exception or not
|
201 |
if ($user[5] != $user[0]) // authentication exception or not
|
202 |
{
|
202 |
{
|
203 |
$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";
|
203 |
$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";
|
204 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|
204 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|