Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 1521 2014-12-17 22:57:44Z richard $
|
2 |
# $Id: index.php 1570 2015-02-13 22:42:09Z 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\">Ouvrir une session Internet</a>";}
|
127 |
$l_logout = "<a href=\"http://www.google.com\">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 162... |
Line 162... |
162 |
$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>";
|
162 |
$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>";
|
163 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
163 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
164 |
$l_category = "categoria :";
|
164 |
$l_category = "categoria :";
|
165 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
165 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
166 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
166 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
167 |
$l_logout = "<a href=\"http://www.qwant.com\">Abrir uma conexão de Internet</a>";}
|
167 |
$l_logout = "<a href=\"http://www.google.com\">Abrir uma conexão de Internet</a>";}
|
168 |
else {
|
168 |
else {
|
169 |
if ($user[5] != $user[0]) // authentication exception or not
|
169 |
if ($user[5] != $user[0]) // authentication exception or not
|
170 |
{
|
170 |
{
|
171 |
$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";
|
171 |
$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";
|
172 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
172 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
|
Line 202... |
Line 202... |
202 |
$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>";
|
202 |
$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>";
|
203 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
203 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
204 |
$l_category = "category :";
|
204 |
$l_category = "category :";
|
205 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
205 |
if ((isset ($user[4])) && ($user[4] == "0")) {
|
206 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
206 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
207 |
$l_logout = "<a href=\"http://www.qwant.com\">Open an Internet session</a>";}
|
207 |
$l_logout = "<a href=\"http://www.google.com\">Open an Internet session</a>";}
|
208 |
else {
|
208 |
else {
|
209 |
if ($user[5] != $user[0]) // authentication exception or not
|
209 |
if ($user[5] != $user[0]) // authentication exception or not
|
210 |
{
|
210 |
{
|
211 |
$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";
|
211 |
$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";
|
212 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|
212 |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
|