1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 2609 2018-08-22 07:55:28Z rexy $
|
2 |
# $Id: index.php 2612 2018-08-22 16:37:28Z tom.houdayer $
|
3 |
#
|
3 |
#
|
4 |
# index.php for ALCASAR by Rexy
|
4 |
# index.php for ALCASAR by Rexy
|
5 |
# UI & css style by stephane ERARD
|
5 |
# UI & css style by stephane ERARD
|
6 |
# The contents of this file may be used under the terms of the GNU
|
6 |
# The contents of this file may be used under the terms of the GNU
|
7 |
# General Public License Version 2, provided that the above copyright
|
7 |
# General Public License Version 2, provided that the above copyright
|
8 |
# notice and this permission notice is included in all copies or
|
8 |
# notice and this permission notice is included in all copies or
|
9 |
# substantial portions of the software.
|
9 |
# substantial portions of the software.
|
10 |
|
10 |
|
11 |
/****************************************************************
|
11 |
/****************************************************************
|
12 |
* GLOBAL FILE PATHS *
|
12 |
* GLOBAL FILE PATHS *
|
13 |
*****************************************************************/
|
13 |
*****************************************************************/
|
14 |
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
|
14 |
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
|
15 |
define('DOMAIN_ALLOWED_LIST', '/usr/local/etc/alcasar-uamdomain');
|
15 |
define('DOMAIN_ALLOWED_LIST', '/usr/local/etc/alcasar-uamdomain');
|
16 |
|
16 |
|
17 |
/****************************************************************
|
17 |
/****************************************************************
|
18 |
* FILE reading test *
|
18 |
* FILE reading test *
|
19 |
*****************************************************************/
|
19 |
*****************************************************************/
|
20 |
$conf_files = array(CONF_FILE, DOMAIN_ALLOWED_LIST);
|
20 |
$conf_files = array(CONF_FILE, DOMAIN_ALLOWED_LIST);
|
21 |
foreach ($conf_files as $file) {
|
21 |
foreach ($conf_files as $file) {
|
22 |
if (!file_exists($file)) {
|
22 |
if (!file_exists($file)) {
|
23 |
exit("Fichier $file non présent");
|
23 |
exit("Fichier $file non présent");
|
24 |
}
|
24 |
}
|
25 |
if (!is_readable($file)) {
|
25 |
if (!is_readable($file)) {
|
26 |
exit("Vous n'avez pas les droits de lecture sur le fichier $file");
|
26 |
exit("Vous n'avez pas les droits de lecture sur le fichier $file");
|
27 |
}
|
27 |
}
|
28 |
}
|
28 |
}
|
29 |
|
29 |
|
30 |
/****************************************************************
|
30 |
/****************************************************************
|
31 |
* Read CONF_FILE *
|
31 |
* Read CONF_FILE *
|
32 |
*****************************************************************/
|
32 |
*****************************************************************/
|
33 |
$file_conf = fopen(CONF_FILE, 'r');
|
33 |
$file_conf = fopen(CONF_FILE, 'r');
|
34 |
if (!$file_conf) {
|
34 |
if (!$file_conf) {
|
35 |
exit('Error opening the file '.CONF_FILE);
|
35 |
exit('Error opening the file '.CONF_FILE);
|
36 |
}
|
36 |
}
|
37 |
while (!feof($file_conf)) {
|
37 |
while (!feof($file_conf)) {
|
38 |
$buffer = fgets($file_conf, 4096);
|
38 |
$buffer = fgets($file_conf, 4096);
|
39 |
if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
|
39 |
if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
|
40 |
$tmp = explode('=', $buffer, 2);
|
40 |
$tmp = explode('=', $buffer, 2);
|
41 |
$conf[trim($tmp[0])] = trim($tmp[1]);
|
41 |
$conf[trim($tmp[0])] = trim($tmp[1]);
|
42 |
}
|
42 |
}
|
43 |
}
|
43 |
}
|
44 |
fclose($file_conf);
|
44 |
fclose($file_conf);
|
45 |
|
45 |
|
46 |
$organisme = $conf["ORGANISM"];
|
46 |
$organisme = $conf["ORGANISM"];
|
47 |
$hostname = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
|
47 |
$hostname = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
|
48 |
$ssl_enable = $conf["HTTPS_LOGIN"];
|
48 |
$ssl_enable = ($conf['HTTPS_LOGIN'] === 'on');
|
49 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
49 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
50 |
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
50 |
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
51 |
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
51 |
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
52 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
52 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
53 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
53 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
54 |
$direct_access = false;
|
54 |
$direct_access = false;
|
55 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
|
55 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
|
56 |
$connection_history = '';
|
56 |
$connection_history = '';
|
57 |
$nb_connection_history = 3;
|
57 |
$nb_connection_history = 3;
|
58 |
|
58 |
|
59 |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
|
59 |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
|
60 |
|
60 |
|
61 |
// Check if the SMS service is enable
|
61 |
// Check if the SMS service is enable
|
62 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
62 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
63 |
|
63 |
|
64 |
// Retrieve the user info behind the remote ip
|
64 |
// Retrieve the user info behind the remote ip
|
65 |
$output = [];
|
65 |
$output = [];
|
66 |
exec('sudo /usr/sbin/chilli_query list | grep -Ew '.escapeshellarg($remote_ip), $output);
|
66 |
exec('sudo /usr/sbin/chilli_query list ip '.escapeshellarg($remote_ip), $output);
|
67 |
if (!empty($output)) {
|
67 |
if (!empty($output)) {
|
68 |
$userRaw = explode(' ', $output[0]);
|
68 |
$userRaw = explode(' ', $output[0]);
|
69 |
$user = (object) [
|
69 |
$user = (object) [
|
70 |
'mac' => $userRaw[0],
|
70 |
'mac' => $userRaw[0],
|
71 |
'connected' => ($userRaw[4] === '1'),
|
71 |
'connected' => ($userRaw[4] === '1'),
|
72 |
'username' => $userRaw[5]
|
72 |
'username' => $userRaw[5]
|
73 |
];
|
73 |
];
|
74 |
} else {
|
74 |
} else {
|
75 |
// CoovaChilli does not know the user
|
75 |
// CoovaChilli does not know the user
|
76 |
// TODO: useless?
|
- |
|
77 |
$user = (object) [
|
76 |
$user = (object) [
|
78 |
'mac' => '',
|
77 |
'mac' => '',
|
79 |
'connected' => false,
|
78 |
'connected' => false,
|
80 |
'username' => ''
|
79 |
'username' => ''
|
81 |
];
|
80 |
];
|
82 |
}
|
81 |
}
|
83 |
|
82 |
|
84 |
// Test if it's a direct connexion to ALCASAR
|
83 |
// Test if it's a direct connexion to ALCASAR
|
85 |
if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] === $_SERVER['SERVER_ADDR']) || ($_SERVER['HTTP_HOST'] === 'alcasar') || ($_SERVER['HTTP_HOST'] === $hostname) || ($_SERVER['HTTP_HOST'] === $organisme))) {
|
84 |
if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] === $_SERVER['SERVER_ADDR']) || ($_SERVER['HTTP_HOST'] === 'alcasar') || ($_SERVER['HTTP_HOST'] === $hostname) || ($_SERVER['HTTP_HOST'] === $organisme))) {
|
86 |
$direct_access = true;
|
85 |
$direct_access = true;
|
87 |
}
|
86 |
}
|
88 |
|
87 |
|
89 |
// Function to adapt time connexion in seconds to H,M,S
|
88 |
// Function to adapt time connexion in seconds to H,M,S
|
90 |
function secondsToDuration($seconds = null){
|
89 |
function secondsToDuration($seconds = null){
|
91 |
if ($seconds == null) return "";
|
90 |
if ($seconds == null) return "";
|
92 |
$temp = $seconds % 3600;
|
91 |
$temp = $seconds % 3600;
|
93 |
$time[0] = ( $seconds - $temp ) / 3600 ; // hours
|
92 |
$time[0] = ( $seconds - $temp ) / 3600 ; // hours
|
94 |
$time[2] = $temp % 60 ; // seconds
|
93 |
$time[2] = $temp % 60 ; // seconds
|
95 |
$time[1] = ( $temp - $time[2] ) / 60; // minutes
|
94 |
$time[1] = ( $temp - $time[2] ) / 60; // minutes
|
96 |
return $time[0].' h '.$time[1].' m '.$time[2].' s';
|
95 |
return $time[0].' h '.$time[1].' m '.$time[2].' s';
|
97 |
}
|
96 |
}
|
98 |
|
97 |
|
99 |
// if user need to be warned
|
98 |
// if user need to be warned
|
100 |
if (isset($_GET['warn']) && isset($_GET['url'])) {
|
99 |
if (isset($_GET['warn']) && isset($_GET['url'])) {
|
101 |
$direct_access = false;
|
100 |
$direct_access = false;
|
102 |
}
|
101 |
}
|
103 |
|
102 |
|
104 |
if ($user->connected) { // the user is authenticated
|
103 |
if ($user->connected) { // the user is authenticated
|
105 |
if (isset($_GET['redirect'])) { // if user has been warned, we redirect him to his website
|
104 |
if (isset($_GET['redirect'])) { // if user has been warned, we redirect him to his website
|
106 |
header('Location: '.$_GET['url'], true, 307);
|
105 |
header('Location: '.$_GET['url'], true, 307);
|
107 |
exit();
|
106 |
exit();
|
108 |
}
|
107 |
}
|
109 |
|
108 |
|
110 |
// We retrieve his three last connections
|
109 |
// We retrieve his three last connections
|
111 |
if ((is_file('./acc/manager/lib/sql/drivers/mysql/functions.php'))&&(is_file('/etc/freeradius-web/config.php'))){
|
110 |
if ((is_file('./acc/manager/lib/sql/drivers/mysql/functions.php'))&&(is_file('/etc/freeradius-web/config.php'))){
|
112 |
include_once('/etc/freeradius-web/config.php');
|
111 |
include_once('/etc/freeradius-web/config.php');
|
113 |
include_once('./acc/manager/lib/sql/drivers/mysql/functions.php');
|
112 |
include_once('./acc/manager/lib/sql/drivers/mysql/functions.php');
|
114 |
$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user->username' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
|
113 |
$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user->username' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
|
115 |
$link = @da_sql_pconnect($config);
|
114 |
$link = @da_sql_pconnect($config);
|
116 |
if ($link) {
|
115 |
if ($link) {
|
117 |
$res = @da_sql_query($link,$config,$sql);
|
116 |
$res = @da_sql_query($link,$config,$sql);
|
118 |
if ($res) {
|
117 |
if ($res) {
|
119 |
$connection_history .= '<ul>';
|
118 |
$connection_history .= '<ul>';
|
120 |
while (($row = @da_sql_fetch_array($res,$config))) {
|
119 |
while (($row = @da_sql_fetch_array($res,$config))) {
|
121 |
$connected = '';
|
120 |
$connected = '';
|
122 |
if ($row['acctstoptime'] === '') {
|
121 |
if ($row['acctstoptime'] === '') {
|
123 |
$connected = ' (active)';
|
122 |
$connected = ' (active)';
|
124 |
}
|
123 |
}
|
125 |
$sessionTimeFormated = secondsToDuration($row['acctsessiontime']);
|
124 |
$sessionTimeFormated = secondsToDuration($row['acctsessiontime']);
|
126 |
$connection_history .= "<li title=\"$row[username] $row[acctstarttime] $row[acctstoptime] ($sessionTimeFormated)\">$row[acctstarttime] ($sessionTimeFormated) $connected</li>";
|
125 |
$connection_history .= "<li title=\"$row[username] $row[acctstarttime] $row[acctstoptime] ($sessionTimeFormated)\">$row[acctstarttime] ($sessionTimeFormated) $connected</li>";
|
127 |
}
|
126 |
}
|
128 |
$connection_history .= '</ul>';
|
127 |
$connection_history .= '</ul>';
|
129 |
}
|
128 |
}
|
130 |
}
|
129 |
}
|
131 |
}
|
130 |
}
|
132 |
} else { // the user isn't authenticated
|
131 |
} else { // the user isn't authenticated
|
133 |
if (isset($_GET['url'])) { // it's the second stage (when user has clicked on the button "open a connection")
|
132 |
if (isset($_GET['url'])) { // it's the second stage (when user has clicked on the button "open a connection")
|
134 |
$redir = 'http://'.$_GET['url'];
|
133 |
$redir = 'http://'.$_GET['url'];
|
135 |
header("Location: $redir", true, 307);
|
134 |
header("Location: $redir", true, 307);
|
136 |
exit();
|
135 |
exit();
|
137 |
}
|
136 |
}
|
138 |
}
|
137 |
}
|
139 |
|
138 |
|
140 |
// Choice of language
|
139 |
// Choice of language
|
141 |
$Language = 'en';
|
140 |
$Language = 'en';
|
142 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
141 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
143 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
142 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
144 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
143 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
145 |
}
|
144 |
}
|
146 |
if ($Language === 'fr') { // French
|
145 |
if ($Language === 'fr') { // French
|
147 |
$l_access_denied = "Contrôle d'accès";
|
146 |
$l_access_denied = "Contrôle d'accès";
|
148 |
$l_access_welcome = "Bienvenue sur ALCASAR";
|
147 |
$l_access_welcome = "Bienvenue sur ALCASAR";
|
149 |
$l_access_unavailable = "ACCÈS INDISPONIBLE";
|
148 |
$l_access_unavailable = "ACCÈS INDISPONIBLE";
|
150 |
$l_required_domain = "Site WEB demandé";
|
149 |
$l_required_domain = "Site WEB demandé";
|
151 |
$l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez posséder un compte d'administration ou de gestion pour y accéder.";
|
150 |
$l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez posséder un compte d'administration ou de gestion pour y accéder.";
|
152 |
$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
|
151 |
$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
|
153 |
$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
|
152 |
$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
|
154 |
$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
|
153 |
$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
|
155 |
$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
|
154 |
$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
|
156 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
|
155 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
|
157 |
$l_install_certif = "Installer le certificat racine";
|
156 |
$l_install_certif = "Installer le certificat racine";
|
158 |
$l_install_certif_more = "Installation du certificat de l'autorité racine d'ALCASAR";
|
157 |
$l_install_certif_more = "Installation du certificat de l'autorité racine d'ALCASAR";
|
159 |
$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é soient émises par votre navigateur.<br><br>";
|
158 |
$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é soient émises par votre navigateur.<br><br>";
|
160 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
159 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
|
161 |
$l_category = "catégorie :";
|
160 |
$l_category = "catégorie :";
|
162 |
if (!$user->connected) {
|
161 |
if (!$user->connected) {
|
163 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
162 |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
|
164 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
|
163 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
|
165 |
} else {
|
164 |
} else {
|
166 |
if ($user->username != $user->mac) { // authentication exception or not
|
165 |
if ($user->username != $user->mac) { // authentication exception or not
|
167 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
166 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
168 |
$l_logout = "<a href=\"$logout_link\">Se déconnecter d'internet</a>";
|
167 |
$l_logout = "<a href=\"$logout_link\">Se déconnecter d'internet</a>";
|
169 |
} else {
|
168 |
} else {
|
170 |
$l_logout_explain = "Votre système ($user->username) est en exception d'authentication.<br><br>$nb_connection_history dernières connexions :$connection_history";
|
169 |
$l_logout_explain = "Votre système ($user->username) est en exception d'authentication.<br><br>$nb_connection_history dernières connexions :$connection_history";
|
171 |
$l_logout = "Information des connexions";
|
170 |
$l_logout = "Information des connexions";
|
172 |
}
|
171 |
}
|
173 |
}
|
172 |
}
|
174 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
|
173 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
|
175 |
$l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'accès à Internet.<br><br>Vous devez avoir un compte internet valide.";
|
174 |
$l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'accès à Internet.<br><br>Vous devez avoir un compte internet valide.";
|
176 |
$l_sms_explain = "Vous redirige vers la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
|
175 |
$l_sms_explain = "Vous redirige vers la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
|
177 |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
|
176 |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
|
178 |
$l_service_sms = "Service SMS actif";
|
177 |
$l_service_sms = "Service SMS actif";
|
179 |
$l_service_sms_n = "Service SMS non actif";
|
178 |
$l_service_sms_n = "Service SMS non actif";
|
180 |
$l_acc_sms = "Auto enregistrement par SMS";
|
179 |
$l_acc_sms = "Auto enregistrement par SMS";
|
181 |
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
|
180 |
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
|
182 |
if (isset($_GET['url'])) {
|
181 |
if (isset($_GET['url'])) {
|
183 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
182 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
184 |
} else {
|
183 |
} else {
|
185 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
184 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
186 |
}
|
185 |
}
|
187 |
$l_title_warn="Cher utilisateur, ";
|
186 |
$l_title_warn="Cher utilisateur, ";
|
188 |
$l_explain_warn_name="Une personne sous le nom de ";
|
187 |
$l_explain_warn_name="Une personne sous le nom de ";
|
189 |
$l_explain_warn_ip="sous cette IP : ";
|
188 |
$l_explain_warn_ip="sous cette IP : ";
|
190 |
$l_explain_warn_date="a consulté vos journaux de connexion le ";
|
189 |
$l_explain_warn_date="a consulté vos journaux de connexion le ";
|
191 |
$l_explain_warn_reason="Raison invoquée : ";
|
190 |
$l_explain_warn_reason="Raison invoquée : ";
|
192 |
$l_uam_domain = "Sites autorisés : ";
|
191 |
$l_uam_domain = "Sites autorisés : ";
|
193 |
} else if ($Language === 'pt') { // Portuguese
|
192 |
} else if ($Language === 'pt') { // Portuguese
|
194 |
$l_access_denied = "Controle de acesso";
|
193 |
$l_access_denied = "Controle de acesso";
|
195 |
$l_access_welcome = "Bem-vindo ao Alcasar";
|
194 |
$l_access_welcome = "Bem-vindo ao Alcasar";
|
196 |
$l_access_unavailable = "ACESSO INDISPONÍVEL";
|
195 |
$l_access_unavailable = "ACESSO INDISPONÍVEL";
|
197 |
$l_required_domain = "Site WEB Obrigatório";
|
196 |
$l_required_domain = "Site WEB Obrigatório";
|
198 |
$l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
|
197 |
$l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
|
199 |
$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
|
198 |
$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
|
200 |
$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
|
199 |
$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
|
201 |
$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
|
200 |
$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
|
202 |
$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
|
201 |
$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
|
203 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
|
202 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
|
204 |
$l_install_certif = "Instalar Certificado Alcasar AC";
|
203 |
$l_install_certif = "Instalar Certificado Alcasar AC";
|
205 |
$l_install_certif_more = "Instalar Certificado Alcasar AC";
|
204 |
$l_install_certif_more = "Instalar Certificado Alcasar AC";
|
206 |
$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>";
|
205 |
$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>";
|
207 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
206 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
|
208 |
$l_category = "categoria :";
|
207 |
$l_category = "categoria :";
|
209 |
if (!$user->connected) {
|
208 |
if (!$user->connected) {
|
210 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
209 |
$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
|
211 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
|
210 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
|
212 |
} else {
|
211 |
} else {
|
213 |
if ($user->username != $user->mac) { // authentication exception or not
|
212 |
if ($user->username != $user->mac) { // authentication exception or not
|
214 |
$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history logins últimos :$connection_history";
|
213 |
$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history logins últimos :$connection_history";
|
215 |
$l_logout = "<a href=\"$logout_link\">Sair da Internet</a>";
|
214 |
$l_logout = "<a href=\"$logout_link\">Sair da Internet</a>";
|
216 |
} else {
|
215 |
} else {
|
217 |
$l_logout_explain = "O sistema ($user->username) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
|
216 |
$l_logout_explain = "O sistema ($user->username) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
|
218 |
$l_logout = "Informações de conexões";
|
217 |
$l_logout = "Informações de conexões";
|
219 |
}
|
218 |
}
|
220 |
}
|
219 |
}
|
221 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
|
220 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
|
222 |
$l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
|
221 |
$l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
|
223 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
222 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
224 |
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
|
223 |
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
|
225 |
$l_service_sms = "SMS service enable";
|
224 |
$l_service_sms = "SMS service enable";
|
226 |
$l_service_sms_n = "SMS service disable";
|
225 |
$l_service_sms_n = "SMS service disable";
|
227 |
$l_acc_sms = "Auto registration by SMS";
|
226 |
$l_acc_sms = "Auto registration by SMS";
|
228 |
$l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial.";
|
227 |
$l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial.";
|
229 |
if (isset($_GET['url'])) {
|
228 |
if (isset($_GET['url'])) {
|
230 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
229 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
231 |
} else {
|
230 |
} else {
|
232 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
231 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
233 |
}
|
232 |
}
|
234 |
$l_title_warn="Estimado usuario,";
|
233 |
$l_title_warn="Estimado usuario,";
|
235 |
$l_explain_warn_name="El usario ";
|
234 |
$l_explain_warn_name="El usario ";
|
236 |
$l_explain_warn_ip="con este IP : ";
|
235 |
$l_explain_warn_ip="con este IP : ";
|
237 |
$l_explain_warn_date="consultó a sus registros de conexión el ";
|
236 |
$l_explain_warn_date="consultó a sus registros de conexión el ";
|
238 |
$l_explain_warn_reason="con la siguiente razón : ";
|
237 |
$l_explain_warn_reason="con la siguiente razón : ";
|
239 |
$l_uam_domain = "Sites autorizados : ";
|
238 |
$l_uam_domain = "Sites autorizados : ";
|
240 |
} else if ($Language === 'zn') { // Chinese
|
239 |
} else if ($Language === 'zn') { // Chinese
|
241 |
$l_access_denied = "访问控制";
|
240 |
$l_access_denied = "访问控制";
|
242 |
$l_access_welcome = "欢迎来到ALCASAR";
|
241 |
$l_access_welcome = "欢迎来到ALCASAR";
|
243 |
$l_access_unavailable = "不可访问";
|
242 |
$l_access_unavailable = "不可访问";
|
244 |
$l_required_domain = "访问的网站";
|
243 |
$l_required_domain = "访问的网站";
|
245 |
$l_explain_acc_access = "管理中心能管理门户,您必须通过超级用户或者管理用户来访问。";
|
244 |
$l_explain_acc_access = "管理中心能管理门户,您必须通过超级用户或者管理用户来访问。";
|
246 |
$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
|
245 |
$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
|
247 |
$l_explain_net_pb = "您的门户检测因特网不可用。";
|
246 |
$l_explain_net_pb = "您的门户检测因特网不可用。";
|
248 |
$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
|
247 |
$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
|
249 |
$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
|
248 |
$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
|
250 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
|
249 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
|
251 |
$l_install_certif = "安装根证书";
|
250 |
$l_install_certif = "安装根证书";
|
252 |
$l_install_certif_more = "安装根证书";
|
251 |
$l_install_certif_more = "安装根证书";
|
253 |
$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
|
252 |
$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
|
254 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
|
253 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
|
255 |
$l_category = "类别 :";
|
254 |
$l_category = "类别 :";
|
256 |
if (!$user->connected) {
|
255 |
if (!$user->connected) {
|
257 |
$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
|
256 |
$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
|
258 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">打开一个网络进程</a>";
|
257 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">打开一个网络进程</a>";
|
259 |
} else {
|
258 |
} else {
|
260 |
if ($user->username != $user->mac) { // authentication exception or not
|
259 |
if ($user->username != $user->mac) { // authentication exception or not
|
261 |
$l_logout_explain = "关闭当前连接进程。<br> 已连接用户:<a href=\"$logout_link\" title=\" $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history 最后连接 :$connection_history";
|
260 |
$l_logout_explain = "关闭当前连接进程。<br> 已连接用户:<a href=\"$logout_link\" title=\" $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history 最后连接 :$connection_history";
|
262 |
$l_logout = "<a href=\"$logout_link\">断开网络</a>";
|
261 |
$l_logout = "<a href=\"$logout_link\">断开网络</a>";
|
263 |
} else {
|
262 |
} else {
|
264 |
$l_logout_explain = "您的系统($user->username)验证例外<br><br>$nb_connection_history 最后连接: $connection_history";
|
263 |
$l_logout_explain = "您的系统($user->username)验证例外<br><br>$nb_connection_history 最后连接: $connection_history";
|
265 |
$l_logout = "连接信息";
|
264 |
$l_logout = "连接信息";
|
266 |
}
|
265 |
}
|
267 |
}
|
266 |
}
|
268 |
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
|
267 |
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
|
269 |
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
|
268 |
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
|
270 |
$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
|
269 |
$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
|
271 |
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
|
270 |
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
|
272 |
$l_service_sms = "短信服务可用";
|
271 |
$l_service_sms = "短信服务可用";
|
273 |
$l_service_sms_n = "短信服务禁用";
|
272 |
$l_service_sms_n = "短信服务禁用";
|
274 |
$l_acc_sms = "短信自动注册";
|
273 |
$l_acc_sms = "短信自动注册";
|
275 |
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
|
274 |
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
|
276 |
if (isset($_GET['url'])) {
|
275 |
if (isset($_GET['url'])) {
|
277 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
|
276 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
|
278 |
} else {
|
277 |
} else {
|
279 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">我明白并希望继续浏览。</a>";
|
278 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">我明白并希望继续浏览。</a>";
|
280 |
}
|
279 |
}
|
281 |
$l_title_warn="亲爱的用户,";
|
280 |
$l_title_warn="亲爱的用户,";
|
282 |
$l_explain_warn_name="一人名为";
|
281 |
$l_explain_warn_name="一人名为";
|
283 |
$l_explain_warn_ip="在此IP:";
|
282 |
$l_explain_warn_ip="在此IP:";
|
284 |
$l_explain_warn_date="查看您的连接日志于";
|
283 |
$l_explain_warn_date="查看您的连接日志于";
|
285 |
$l_explain_warn_reason=" 如下原因:";
|
284 |
$l_explain_warn_reason=" 如下原因:";
|
286 |
$l_uam_domain = "授权网站 : ";
|
285 |
$l_uam_domain = "授权网站 : ";
|
287 |
} else if ($Language === 'ar') { // Arabic
|
286 |
} else if ($Language === 'ar') { // Arabic
|
288 |
$l_access_denied = "مراقبة الدخول";
|
287 |
$l_access_denied = "مراقبة الدخول";
|
289 |
$l_access_welcome = "ALCASAR مرحبا بك في";
|
288 |
$l_access_welcome = "ALCASAR مرحبا بك في";
|
290 |
$l_access_unavailable = "الدخول غير متوفر";
|
289 |
$l_access_unavailable = "الدخول غير متوفر";
|
291 |
$l_required_domain = "موقع إنترنيت مطلوب";
|
290 |
$l_required_domain = "موقع إنترنيت مطلوب";
|
292 |
$l_explain_acc_access = "مركز التحكم يمكنك من إدارة البوابة. يلزمك التوفر على حساب الادارة للدخول.";
|
291 |
$l_explain_acc_access = "مركز التحكم يمكنك من إدارة البوابة. يلزمك التوفر على حساب الادارة للدخول.";
|
293 |
$l_explain_access_deny = "محاولة لدخول موارد تحتوي على معلومات غير ملائمة المحتوى";
|
292 |
$l_explain_access_deny = "محاولة لدخول موارد تحتوي على معلومات غير ملائمة المحتوى";
|
294 |
$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
|
293 |
$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
|
295 |
$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
|
294 |
$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
|
296 |
$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
|
295 |
$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
|
297 |
$auto_save_sms_text = "تسجيل ذاتي على";
|
296 |
$auto_save_sms_text = "تسجيل ذاتي على";
|
298 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
|
297 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
|
299 |
$l_install_certif = "ركب جذر الشهادة";
|
298 |
$l_install_certif = "ركب جذر الشهادة";
|
300 |
$l_install_certif_more = "ALCASAR تركيب شهادة السلطة؛ جذر الكزار";
|
299 |
$l_install_certif_more = "ALCASAR تركيب شهادة السلطة؛ جذر الكزار";
|
301 |
$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
|
300 |
$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
|
302 |
$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
|
301 |
$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
|
303 |
$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
|
302 |
$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
|
304 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
|
303 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
|
305 |
$l_category = "فئة :";
|
304 |
$l_category = "فئة :";
|
306 |
if (!$user->connected) {
|
305 |
if (!$user->connected) {
|
307 |
$l_logout_explain = "و لا جلسة استفسار للإنترنت مفتوحة حاليا على نظامك";
|
306 |
$l_logout_explain = "و لا جلسة استفسار للإنترنت مفتوحة حاليا على نظامك";
|
308 |
$close_session_text = "فتح جلسة الإنترنت";
|
307 |
$close_session_text = "فتح جلسة الإنترنت";
|
309 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">$close_session_text</a>";
|
308 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">$close_session_text</a>";
|
310 |
} else {
|
309 |
} else {
|
311 |
if ($user->username != $user->mac) { // authentication exception or not
|
310 |
if ($user->username != $user->mac) { // authentication exception or not
|
312 |
$close_session_text = "إقفال جلسة المستخدم المتصل حاليا";
|
311 |
$close_session_text = "إقفال جلسة المستخدم المتصل حاليا";
|
313 |
$userlogged_text = "المستخدم متصل";
|
312 |
$userlogged_text = "المستخدم متصل";
|
314 |
$disconnect_user_text = "قطع الاتصال على المستخدم";
|
313 |
$disconnect_user_text = "قطع الاتصال على المستخدم";
|
315 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
314 |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
|
316 |
$logout_internet_text = "قطع الاتصال على الإنترنت";
|
315 |
$logout_internet_text = "قطع الاتصال على الإنترنت";
|
317 |
$l_logout = "<a href=\"$logout_link\">$logout_internet_text</a>";
|
316 |
$l_logout = "<a href=\"$logout_link\">$logout_internet_text</a>";
|
318 |
} else {
|
317 |
} else {
|
319 |
$your_system_text = "نظامك";
|
318 |
$your_system_text = "نظامك";
|
320 |
$auth_except_text = "على توثيق استثنائي";
|
319 |
$auth_except_text = "على توثيق استثنائي";
|
321 |
$last_conn_text = "اتصالات مشاركة";
|
320 |
$last_conn_text = "اتصالات مشاركة";
|
322 |
$l_logout_explain = "$connection_history :$last_conn_text $nb_connection_history<br><br>$auth_except_text ($user->username) $your_system_text";
|
321 |
$l_logout_explain = "$connection_history :$last_conn_text $nb_connection_history<br><br>$auth_except_text ($user->username) $your_system_text";
|
323 |
$l_logout = "معلومات على الاتصالات ";
|
322 |
$l_logout = "معلومات على الاتصالات ";
|
324 |
}
|
323 |
}
|
325 |
}
|
324 |
}
|
326 |
$change_pass_text = "غير كلمتك السرية";
|
325 |
$change_pass_text = "غير كلمتك السرية";
|
327 |
$l_password_change = "<a href=\"https://$hostname/password.php\">$change_pass_text</a>";
|
326 |
$l_password_change = "<a href=\"https://$hostname/password.php\">$change_pass_text</a>";
|
328 |
$redirect_pass_text = "يوجهك على صفحة تغيير الكلمة السرية لحساب الإنترنت الخاص بك";
|
327 |
$redirect_pass_text = "يوجهك على صفحة تغيير الكلمة السرية لحساب الإنترنت الخاص بك";
|
329 |
$valid_account_text = "يجب ان يكون حساب الإنترنت الخاص بك صالحاً";
|
328 |
$valid_account_text = "يجب ان يكون حساب الإنترنت الخاص بك صالحاً";
|
330 |
$l_password_change_explain = "$valid_account_text<br><br>.$redirect_text";
|
329 |
$l_password_change_explain = "$valid_account_text<br><br>.$redirect_text";
|
331 |
$redirect_sms_text = "يوجهك على الصفحة التفسيرية للتسجيل الذاتي بطريقة";
|
330 |
$redirect_sms_text = "يوجهك على الصفحة التفسيرية للتسجيل الذاتي بطريقة";
|
332 |
$login_text = "تسجيل الدخول";
|
331 |
$login_text = "تسجيل الدخول";
|
333 |
$your_phone_text = "رقم الهاتف الخاص بك";
|
332 |
$your_phone_text = "رقم الهاتف الخاص بك";
|
334 |
$pass_text = "كلمة السر";
|
333 |
$pass_text = "كلمة السر";
|
335 |
$your_message_text = "رسالتك";
|
334 |
$your_message_text = "رسالتك";
|
336 |
$l_sms_explain = "$your_message_text <strong>$pass_text</strong><br>$your_phone_text <strong>$login_text</strong><br><br>$redirect_sms_text";
|
335 |
$l_sms_explain = "$your_message_text <strong>$pass_text</strong><br>$your_phone_text <strong>$login_text</strong><br><br>$redirect_sms_text";
|
337 |
$previous_text = "الصفحة السابقة";
|
336 |
$previous_text = "الصفحة السابقة";
|
338 |
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
|
337 |
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
|
339 |
$l_service_sms = "نشطة SMS خدمة";
|
338 |
$l_service_sms = "نشطة SMS خدمة";
|
340 |
$l_service_sms_n = "غير نشطة SMS خدمة";
|
339 |
$l_service_sms_n = "غير نشطة SMS خدمة";
|
341 |
$l_acc_sms = "تسجيل ذاتي عن طريق SMS";
|
340 |
$l_acc_sms = "تسجيل ذاتي عن طريق SMS";
|
342 |
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
|
341 |
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
|
343 |
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
|
342 |
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
|
344 |
if (isset($_GET['url'])) {
|
343 |
if (isset($_GET['url'])) {
|
345 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">$understand_text</a>";
|
344 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">$understand_text</a>";
|
346 |
} else {
|
345 |
} else {
|
347 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">$understand_text</a>";
|
346 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">$understand_text</a>";
|
348 |
}
|
347 |
}
|
349 |
$l_title_warn = "عزيزي المستعمل, ";
|
348 |
$l_title_warn = "عزيزي المستعمل, ";
|
350 |
$l_explain_warn_name = "شخص مسمىٰ ";
|
349 |
$l_explain_warn_name = "شخص مسمىٰ ";
|
351 |
$l_explain_warn_ip = "تحت هذا IP: ";
|
350 |
$l_explain_warn_ip = "تحت هذا IP: ";
|
352 |
$l_explain_warn_date = "إطّلع على سجلات الاتصال الخاصة بك في";
|
351 |
$l_explain_warn_date = "إطّلع على سجلات الاتصال الخاصة بك في";
|
353 |
$l_explain_warn_reason = "السبب المسرّح به: ";
|
352 |
$l_explain_warn_reason = "السبب المسرّح به: ";
|
354 |
$l_uam_domain = ":المواقع المسموحة ";
|
353 |
$l_uam_domain = ":المواقع المسموحة ";
|
355 |
} else { // English
|
354 |
} else { // English
|
356 |
$l_access_denied = "Access control";
|
355 |
$l_access_denied = "Access control";
|
357 |
$l_access_welcome = "Welcome on ALCASAR";
|
356 |
$l_access_welcome = "Welcome on ALCASAR";
|
358 |
$l_access_unavailable = "ACCESS UNAVAILABLE";
|
357 |
$l_access_unavailable = "ACCESS UNAVAILABLE";
|
359 |
$l_required_domain = "Required WEB site";
|
358 |
$l_required_domain = "Required WEB site";
|
360 |
$l_explain_acc_access = "This center control the portal. You must have an administrative account.";
|
359 |
$l_explain_acc_access = "This center control the portal. You must have an administrative account.";
|
361 |
$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
|
360 |
$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
|
362 |
$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
|
361 |
$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
|
363 |
$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
|
362 |
$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
|
364 |
$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
|
363 |
$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
|
365 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
|
364 |
$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
|
366 |
$l_install_certif = "Install ALCASAR AC Certificate";
|
365 |
$l_install_certif = "Install ALCASAR AC Certificate";
|
367 |
$l_install_certif_more = "Install ALCASAR AC Certificate";
|
366 |
$l_install_certif_more = "Install ALCASAR AC Certificate";
|
368 |
$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>";
|
367 |
$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>";
|
369 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
368 |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
|
370 |
$l_category = "category :";
|
369 |
$l_category = "category :";
|
371 |
if (!$user->connected) {
|
370 |
if (!$user->connected) {
|
372 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
371 |
$l_logout_explain = "No Internet consultation session is actualy open on your system";
|
373 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
|
372 |
$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
|
374 |
} else {
|
373 |
} else {
|
375 |
if ($user->username != $user->mac) { // authentication exception or not
|
374 |
if ($user->username != $user->mac) { // authentication exception or not
|
376 |
$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
375 |
$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history last connections :$connection_history";
|
377 |
$l_logout = "<a href=\"$logout_link\">Logoff from internet</a>";
|
376 |
$l_logout = "<a href=\"$logout_link\">Logoff from internet</a>";
|
378 |
} else {
|
377 |
} else {
|
379 |
$l_logout_explain = "Your system ($user->username) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
|
378 |
$l_logout_explain = "Your system ($user->username) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
|
380 |
$l_logout = "Connections information";
|
379 |
$l_logout = "Connections information";
|
381 |
}
|
380 |
}
|
382 |
}
|
381 |
}
|
383 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
|
382 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
|
384 |
$l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
|
383 |
$l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
|
385 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
384 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
386 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
385 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
387 |
$l_service_sms = "SMS service enable";
|
386 |
$l_service_sms = "SMS service enable";
|
388 |
$l_service_sms_n = "SMS service disable";
|
387 |
$l_service_sms_n = "SMS service disable";
|
389 |
$l_acc_sms = "Auto registration by SMS";
|
388 |
$l_acc_sms = "Auto registration by SMS";
|
390 |
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
|
389 |
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
|
391 |
if (isset($_GET['url'])) {
|
390 |
if (isset($_GET['url'])) {
|
392 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
|
391 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
|
393 |
} else {
|
392 |
} else {
|
394 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">I understand and I wish to continue.</a>";
|
393 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">I understand and I wish to continue.</a>";
|
395 |
}
|
394 |
}
|
396 |
$l_title_warn="Dear user,";
|
395 |
$l_title_warn="Dear user,";
|
397 |
$l_explain_warn_name="Someone called ";
|
396 |
$l_explain_warn_name="Someone called ";
|
398 |
$l_explain_warn_ip="with this IP : ";
|
397 |
$l_explain_warn_ip="with this IP : ";
|
399 |
$l_explain_warn_date="has read your connexion logs at ";
|
398 |
$l_explain_warn_date="has read your connexion logs at ";
|
400 |
$l_explain_warn_reason="For this reason : ";
|
399 |
$l_explain_warn_reason="For this reason : ";
|
401 |
$l_uam_domain = "Authorized websites : ";
|
400 |
$l_uam_domain = "Authorized websites : ";
|
402 |
}
|
401 |
}
|
403 |
|
402 |
|
404 |
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
|
403 |
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
|
405 |
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
|
404 |
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
|
406 |
|
405 |
|
407 |
// Set the icons
|
406 |
// Set the icons
|
408 |
$img_rep = '/images/';
|
407 |
$img_rep = '/images/';
|
409 |
$img_organisme = 'organisme.png';
|
408 |
$img_organisme = 'organisme.png';
|
410 |
$img_access = 'globe_acces_70.png';
|
409 |
$img_access = 'globe_acces_70.png';
|
411 |
$img_connect = 'globe_70.png';
|
410 |
$img_connect = 'globe_70.png';
|
412 |
$img_warning = 'globe_warning_70.png';
|
411 |
$img_warning = 'globe_warning_70.png';
|
413 |
$img_pwd = 'cle_ombre.png';
|
412 |
$img_pwd = 'cle_ombre.png';
|
414 |
$img_certificate = 'certificat.png';
|
413 |
$img_certificate = 'certificat.png';
|
415 |
$img_acc = 'logo-alcasar_70.png';
|
414 |
$img_acc = 'logo-alcasar_70.png';
|
416 |
$img_sms = 'sms.png';
|
415 |
$img_sms = 'sms.png';
|
417 |
$img_false = 'interdit.png';
|
416 |
$img_false = 'interdit.png';
|
418 |
$img_adm = 'adm.png';
|
417 |
$img_adm = 'adm.png';
|
419 |
|
418 |
|
420 |
$img_internet = (($user->connected) ? $img_connect : ($network_pb ? $img_warning : $img_access));
|
419 |
$img_internet = (($user->connected) ? $img_connect : ($network_pb ? $img_warning : $img_access));
|
421 |
|
420 |
|
422 |
if ($direct_access) {
|
421 |
if ($direct_access) {
|
423 |
// Read the "Domain allowed" file
|
422 |
// Read the "Domain allowed" file
|
424 |
$domainsAllowed = [];
|
423 |
$domainsAllowed = [];
|
425 |
$fileContent = file(DOMAIN_ALLOWED_LIST);
|
424 |
$fileContent = file(DOMAIN_ALLOWED_LIST);
|
426 |
if ($fileContent) { // the file isn't empty
|
425 |
if ($fileContent) { // the file isn't empty
|
427 |
foreach ($fileContent as $line) {
|
426 |
foreach ($fileContent as $line) {
|
428 |
if (!empty(trim($line))) {
|
427 |
if (!empty(trim($line))) {
|
429 |
$domain_fields = explode('#', $line);
|
428 |
$domain_fields = explode('#', $line);
|
430 |
if (!empty(trim($domain_fields[1]))) {
|
429 |
if (!empty(trim($domain_fields[1]))) {
|
431 |
$domain = explode('"', $domain_fields[0]);
|
430 |
$domain = explode('"', $domain_fields[0]);
|
432 |
$domain[1] = ltrim($domain[1], '.'); // remove every '.' from the beginning of domain
|
431 |
$domain[1] = ltrim($domain[1], '.'); // remove every '.' from the beginning of domain
|
433 |
$domainsAllowed[] = (object) [
|
432 |
$domainsAllowed[] = (object) [
|
434 |
'name' => trim($domain_fields[1]),
|
433 |
'name' => trim($domain_fields[1]),
|
435 |
'domain' => trim($domain[1])
|
434 |
'domain' => trim($domain[1])
|
436 |
];
|
435 |
];
|
437 |
}
|
436 |
}
|
438 |
}
|
437 |
}
|
439 |
}
|
438 |
}
|
440 |
}
|
439 |
}
|
441 |
} else {
|
440 |
} else {
|
442 |
if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1') {
|
441 |
if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1') {
|
443 |
// user need to be warned that someone reads his logs
|
442 |
// user need to be warned that someone reads his logs
|
444 |
$filename = '/var/www/html/acc/backup/log_info.txt';
|
443 |
$filename = '/var/www/html/acc/backup/log_info.txt';
|
445 |
if (file_exists($filename)) {
|
444 |
if (file_exists($filename)) {
|
446 |
$fichier = fopen($filename, 'r');
|
445 |
$fichier = fopen($filename, 'r');
|
447 |
$content = file($filename);
|
446 |
$content = file($filename);
|
448 |
foreach ($content as $line) {
|
447 |
foreach ($content as $line) {
|
449 |
$infos = explode('|||', $line);
|
448 |
$infos = explode('|||', $line);
|
450 |
$log_date = $infos[0];
|
449 |
$log_date = $infos[0];
|
451 |
$log_user = $infos[1];
|
450 |
$log_user = $infos[1];
|
452 |
$log_reason = $infos[2];
|
451 |
$log_reason = $infos[2];
|
453 |
$log_ip = $infos[3];
|
452 |
$log_ip = $infos[3];
|
454 |
}
|
453 |
}
|
455 |
$l_explain_warn = "$l_explain_warn_name$log_user ($l_explain_warn_ip$log_ip) $l_explain_warn_date$log_date.<br>$l_explain_warn_reason<br>$log_reason";
|
454 |
$l_explain_warn = "$l_explain_warn_name$log_user ($l_explain_warn_ip$log_ip) $l_explain_warn_date$log_date.<br>$l_explain_warn_reason<br>$log_reason";
|
456 |
} else {
|
455 |
} else {
|
457 |
$l_explain_warn = 'Log error!';
|
456 |
$l_explain_warn = 'Log error!';
|
458 |
}
|
457 |
}
|
459 |
}
|
458 |
}
|
460 |
}
|
459 |
}
|
461 |
|
460 |
|
462 |
// Search blacklist categories
|
461 |
// Search blacklist categories
|
463 |
if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
|
462 |
if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
|
464 |
$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
|
463 |
$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
|
465 |
$output = [];
|
464 |
$output = [];
|
466 |
exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/e2guardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
|
465 |
exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/e2guardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
|
467 |
$lists = [];
|
466 |
$lists = [];
|
468 |
foreach ($output as $line) {
|
467 |
foreach ($output as $line) {
|
469 |
$lists[] = $line;
|
468 |
$lists[] = $line;
|
470 |
}
|
469 |
}
|
471 |
|
470 |
|
472 |
$filteredUrlHtml = $l_required_domain.' : '.htmlspecialchars($_SERVER['HTTP_HOST']);
|
471 |
$filteredUrlHtml = $l_required_domain.' : '.htmlspecialchars($_SERVER['HTTP_HOST']);
|
473 |
if (!empty($lists)) {
|
472 |
if (!empty($lists)) {
|
474 |
$filteredUrlHtml .= "<br>$l_category ".implode(', ', $lists);
|
473 |
$filteredUrlHtml .= "<br>$l_category ".implode(', ', $lists);
|
475 |
}
|
474 |
}
|
476 |
}
|
475 |
}
|
477 |
|
476 |
|
478 |
// Cleaning the cache
|
477 |
// Cleaning the cache
|
479 |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
|
478 |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
|
480 |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
479 |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
481 |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
480 |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
482 |
header('Cache-Control: post-check=0, pre-check=0', false);
|
481 |
header('Cache-Control: post-check=0, pre-check=0', false);
|
483 |
header('Pragma: no-cache');
|
482 |
header('Pragma: no-cache');
|
484 |
?>
|
483 |
?>
|
485 |
<!DOCTYPE html>
|
484 |
<!DOCTYPE html>
|
486 |
<html>
|
485 |
<html>
|
487 |
<head>
|
486 |
<head>
|
488 |
<meta charset="UTF-8">
|
487 |
<meta charset="UTF-8">
|
489 |
<title>ALCASAR - <?= $l_title ?></title>
|
488 |
<title>ALCASAR - <?= $l_title ?></title>
|
490 |
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/style_intercept.css" rel="stylesheet">
|
489 |
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/style_intercept.css" rel="stylesheet">
|
491 |
<?php if ($direct_access): ?>
|
490 |
<?php if ($direct_access): ?>
|
492 |
<script>
|
491 |
<script>
|
493 |
function setBoxInfoContent(param){
|
492 |
function setBoxInfoContent(param){
|
494 |
document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
|
493 |
document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
|
495 |
}
|
494 |
}
|
496 |
</script>
|
495 |
</script>
|
497 |
<?php endif; ?>
|
496 |
<?php endif; ?>
|
498 |
</head>
|
497 |
</head>
|
499 |
<body<?= (($direct_access) ? ' onload="setBoxInfoContent(\'text_conn\');"' : '') ?>>
|
498 |
<body<?= (($direct_access) ? ' onload="setBoxInfoContent(\'text_conn\');"' : '') ?>>
|
500 |
<?php if ($direct_access): ?>
|
499 |
<?php if ($direct_access): ?>
|
501 |
<div id="cadre_titre" class="titre_controle">
|
500 |
<div id="cadre_titre" class="titre_controle">
|
502 |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
|
501 |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
|
503 |
<?php if ($network_pb): ?>
|
502 |
<?php if ($network_pb): ?>
|
504 |
<span><?= $l_explain_net_pb ?></span>
|
503 |
<span><?= $l_explain_net_pb ?></span>
|
505 |
<?php endif; ?>
|
504 |
<?php endif; ?>
|
506 |
<?php else: // the user is intercepted ?>
|
505 |
<?php else: // the user is intercepted ?>
|
507 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): // if user need to be warned that someone reads his logs ?>
|
506 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): // if user need to be warned that someone reads his logs ?>
|
508 |
<div id="cadre_titre" class="titre_refus">
|
507 |
<div id="cadre_titre" class="titre_refus">
|
509 |
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
|
508 |
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
|
510 |
<?php else: // the user is blacklisted (or whitelisted) ?>
|
509 |
<?php else: // the user is blacklisted (or whitelisted) ?>
|
511 |
<div id="cadre_titre" class="titre_refus">
|
510 |
<div id="cadre_titre" class="titre_refus">
|
512 |
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
|
511 |
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
|
513 |
<?php endif; ?>
|
512 |
<?php endif; ?>
|
514 |
<?php endif; ?>
|
513 |
<?php endif; ?>
|
515 |
|
514 |
|
516 |
<div id="boite_logo">
|
515 |
<div id="boite_logo">
|
517 |
<img src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
516 |
<img src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
518 |
</div>
|
517 |
</div>
|
519 |
</div>
|
518 |
</div>
|
520 |
<div id="contenu_acces">
|
519 |
<div id="contenu_acces">
|
521 |
<div id="box_url">
|
520 |
<div id="box_url">
|
522 |
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // Print blacklist categories ?>
|
521 |
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // Print blacklist categories ?>
|
523 |
<?= $filteredUrlHtml ?>
|
522 |
<?= $filteredUrlHtml ?>
|
524 |
<?php endif; ?>
|
523 |
<?php endif; ?>
|
525 |
</div>
|
524 |
</div>
|
526 |
|
525 |
|
527 |
<?php if ($direct_access): ?>
|
526 |
<?php if ($direct_access): ?>
|
528 |
<?php if (!$network_pb): ?>
|
- |
|
529 |
<div class="box_menu" id="box_conn" onmouseover="setBoxInfoContent('text_conn');">
|
527 |
<div class="box_menu<?= (!$network_pb) ? '' : ' box-menu-disabled' ?>" id="box_conn" <?= (!$network_pb) ? 'onmouseover="setBoxInfoContent(\'text_conn\');"' : 'title=\'Not available\'' ?>>
|
530 |
<span><?= $l_logout ?></span>
|
528 |
<span><?= $l_logout ?></span>
|
531 |
<img src="<?= $img_rep.$img_internet ?>">
|
529 |
<img src="<?= $img_rep.$img_internet ?>">
|
532 |
</div>
|
530 |
</div>
|
533 |
<?php endif; ?>
|
- |
|
534 |
|
531 |
|
535 |
<?php if ($ssl_enable == "on"): ?>
|
- |
|
536 |
<div class="box_menu" id="box_certif" onmouseover="setBoxInfoContent('text_certif');">
|
532 |
<div class="box_menu<?= ($ssl_enable) ? '' : ' box-menu-disabled' ?>" id="box_certif" <?= ($ssl_enable) ? 'onmouseover="setBoxInfoContent(\'text_certif\');"' : 'title=\'Not available\'' ?>>
|
537 |
<span><a href="<?= $certCa_link ?>"><?= $l_install_certif ?></a></span>
|
533 |
<span><a href="<?= $certCa_link ?>"><?= $l_install_certif ?></a></span>
|
538 |
<img src="<?= $img_rep.$img_certificate ?>">
|
534 |
<img src="<?= $img_rep.$img_certificate ?>">
|
539 |
</div>
|
535 |
</div>
|
540 |
<?php endif; ?>
|
- |
|
- |
|
536 |
|
541 |
<div class="box_menu" id="box_mdp" onmouseover="setBoxInfoContent('text_mdp');">
|
537 |
<div class="box_menu" id="box_mdp" onmouseover="setBoxInfoContent('text_mdp');">
|
542 |
<img src="<?= $img_rep.$img_pwd ?>">
|
538 |
<img src="<?= $img_rep.$img_pwd ?>">
|
543 |
<span><?= $l_password_change ?></span>
|
539 |
<span><?= $l_password_change ?></span>
|
544 |
</div>
|
540 |
</div>
|
545 |
|
541 |
|
546 |
<?php if ($service_SMS_status === true): ?>
|
542 |
<?php if ($service_SMS_status === true): ?>
|
547 |
<div class="box_menu" id="box_acc" onmouseover="setBoxInfoContent('text_acc');">
|
543 |
<div class="box_menu" id="box_acc" onmouseover="setBoxInfoContent('text_acc');">
|
548 |
<span><?= $l_sms_access ?></span>
|
544 |
<span><?= $l_sms_access ?></span>
|
549 |
<img src="<?= $img_rep.$img_sms ?>">
|
545 |
<img src="<?= $img_rep.$img_sms ?>">
|
550 |
</div>
|
546 |
</div>
|
551 |
<?php endif; ?>
|
547 |
<?php endif; ?>
|
552 |
|
548 |
|
553 |
<div class="div-cache" id="text_conn">
|
549 |
<div class="div-cache" id="text_conn">
|
554 |
<h2><?= $l_logout ?></h2>
|
550 |
<h2><?= $l_logout ?></h2>
|
555 |
<p><?= $l_logout_explain ?></p>
|
551 |
<p><?= $l_logout_explain ?></p>
|
556 |
<?php if (!empty($domainsAllowed)): ?>
|
552 |
<?php if (!empty($domainsAllowed)): ?>
|
557 |
<p><?= $l_uam_domain ?>
|
553 |
<p><?= $l_uam_domain ?>
|
558 |
<ul>
|
554 |
<ul>
|
559 |
<?php foreach ($domainsAllowed as $domainAllowed): ?>
|
555 |
<?php foreach ($domainsAllowed as $domainAllowed): ?>
|
560 |
<li><a href="http://<?= $domainAllowed->domain ?>"><?= $domainAllowed->name ?></a></li>
|
556 |
<li><a href="http://<?= $domainAllowed->domain ?>"><?= $domainAllowed->name ?></a></li>
|
561 |
<?php endforeach; ?>
|
557 |
<?php endforeach; ?>
|
562 |
</ul>
|
558 |
</ul>
|
563 |
</p>
|
559 |
</p>
|
564 |
<?php endif; ?>
|
560 |
<?php endif; ?>
|
565 |
<img src="<?= $img_rep.$img_internet ?>">
|
561 |
<img src="<?= $img_rep.$img_internet ?>">
|
566 |
</div>
|
562 |
</div>
|
567 |
|
563 |
|
568 |
<div class="div-cache" id="text_certif">
|
564 |
<div class="div-cache" id="text_certif">
|
569 |
<h2><a href="<?= $certCa_link ?>"><?= $l_install_certif_more ?></a></h2>
|
565 |
<h2><a href="<?= $certCa_link ?>"><?= $l_install_certif_more ?></a></h2>
|
570 |
<p><?= "$l_certif_explain $l_certif_explain_help" ?></p>
|
566 |
<p><?= "$l_certif_explain $l_certif_explain_help" ?></p>
|
571 |
<img src="<?= $img_rep.$img_certificate ?>">
|
567 |
<img src="<?= $img_rep.$img_certificate ?>">
|
572 |
</div>
|
568 |
</div>
|
573 |
|
569 |
|
574 |
<div class="div-cache" id="text_mdp">
|
570 |
<div class="div-cache" id="text_mdp">
|
575 |
<h2><?= $l_password_change ?></h2>
|
571 |
<h2><?= $l_password_change ?></h2>
|
576 |
<p><?= $l_password_change_explain ?></p>
|
572 |
<p><?= $l_password_change_explain ?></p>
|
577 |
<img src="<?= $img_rep.$img_pwd ?>">
|
573 |
<img src="<?= $img_rep.$img_pwd ?>">
|
578 |
</div>
|
574 |
</div>
|
579 |
|
575 |
|
580 |
<?php if ($service_SMS_status === true): ?>
|
576 |
<?php if ($service_SMS_status === true): ?>
|
581 |
<div class="div-cache" id="text_acc">
|
577 |
<div class="div-cache" id="text_acc">
|
582 |
<h2><?= $l_sms_access ?></h2>
|
578 |
<h2><?= $l_sms_access ?></h2>
|
583 |
<p><?= $l_sms_explain ?></p>
|
579 |
<p><?= $l_sms_explain ?></p>
|
584 |
<p style="color: green; text-align: center;"><?= $l_service_sms ?></p>
|
580 |
<p style="color: green; text-align: center;"><?= $l_service_sms ?></p>
|
585 |
<img src="<?= $img_rep.$img_sms ?>">
|
581 |
<img src="<?= $img_rep.$img_sms ?>">
|
586 |
</div>
|
582 |
</div>
|
587 |
<?php endif; ?>
|
583 |
<?php endif; ?>
|
588 |
|
584 |
|
589 |
<div id="box_info">
|
585 |
<div id="box_info">
|
590 |
</div>
|
586 |
</div>
|
591 |
<?php else: // the user is intercepted ?>
|
587 |
<?php else: // the user is intercepted ?>
|
592 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
|
588 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
|
593 |
<div id="box_refuse">
|
589 |
<div id="box_refuse">
|
594 |
<img src="//<?= $hostname.$img_rep.$img_warning ?>">
|
590 |
<img src="//<?= $hostname.$img_rep.$img_warning ?>">
|
595 |
<p><?= $l_explain_warn ?></p>
|
591 |
<p><?= $l_explain_warn ?></p>
|
596 |
</div>
|
592 |
</div>
|
597 |
<div id="liens_redir">
|
593 |
<div id="liens_redir">
|
598 |
<p><?= $l_continue_link ?></p>
|
594 |
<p><?= $l_continue_link ?></p>
|
599 |
</div>
|
595 |
</div>
|
600 |
<?php else: ?>
|
596 |
<?php else: ?>
|
601 |
<div id="box_refuse">
|
597 |
<div id="box_refuse">
|
602 |
<img src="//<?= $hostname.$img_rep.$img_false ?>">
|
598 |
<img src="//<?= $hostname.$img_rep.$img_false ?>">
|
603 |
<p><?= $l_explain ?></p>
|
599 |
<p><?= $l_explain ?></p>
|
604 |
</div>
|
600 |
</div>
|
605 |
<div id="liens_redir">
|
601 |
<div id="liens_redir">
|
606 |
<p><?= $l_back_page ?></p>
|
602 |
<p><?= $l_back_page ?></p>
|
607 |
</div>
|
603 |
</div>
|
608 |
<?php endif; ?>
|
604 |
<?php endif; ?>
|
609 |
<?php endif; ?>
|
605 |
<?php endif; ?>
|
610 |
|
606 |
|
611 |
<?php if (($network_pb) && (!$direct_access)): ?>
|
607 |
<?php if (($network_pb) && (!$direct_access)): ?>
|
612 |
<span>Diagnostic : <?= $diagnostic ?></span>
|
608 |
<span>Diagnostic : <?= $diagnostic ?></span>
|
613 |
<?php endif; ?>
|
609 |
<?php endif; ?>
|
614 |
</div>
|
610 |
</div>
|
615 |
|
611 |
|
616 |
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
|
612 |
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
|
617 |
<div id="corner">
|
613 |
<div id="corner">
|
618 |
<div id="adm" class="corn">
|
614 |
<div id="adm" class="corn">
|
619 |
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
|
615 |
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
|
620 |
</div>
|
616 |
</div>
|
621 |
</div>
|
617 |
</div>
|
622 |
<?php endif; ?>
|
618 |
<?php endif; ?>
|
623 |
</body>
|
619 |
</body>
|
624 |
</html>
|
620 |
</html>
|
625 |
|
621 |
|