Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 2809 2020-04-12 17:35:46Z rexy $
|
2 |
# $Id: index.php 2818 2020-05-10 21:53:28Z rexy $
|
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
|
Line 53... |
Line 53... |
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 |
|
- |
|
59 |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
|
58 |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
|
60 |
|
59 |
|
61 |
// Check if the SMS service is enable
|
60 |
// Check if the SMS service is enable
|
62 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
61 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
63 |
|
62 |
|
Line 170... |
Line 169... |
170 |
$l_logout = "Information des connexions";
|
169 |
$l_logout = "Information des connexions";
|
171 |
}
|
170 |
}
|
172 |
}
|
171 |
}
|
173 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
|
172 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Changer votre mot de passe</a>";
|
174 |
$l_password_change_explain = "Vous devez avoir un compte internet valide.";
|
173 |
$l_password_change_explain = "Vous devez avoir un compte internet valide.";
|
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";
|
- |
|
176 |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
|
174 |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
|
177 |
$l_service_sms = "Service SMS actif";
|
- |
|
178 |
$l_service_sms_n = "Service SMS non actif";
|
- |
|
179 |
$l_acc_sms = "Auto enregistrement par SMS";
|
- |
|
180 |
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
|
175 |
$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
|
181 |
if (isset($_GET['url'])) {
|
176 |
if (isset($_GET['url'])) {
|
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>";
|
177 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
183 |
} else {
|
178 |
} else {
|
184 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
179 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Je comprends et je souhaite continuer ma navigation.</a>";
|
Line 217... |
Line 212... |
217 |
$l_logout = "Informações de conexões";
|
212 |
$l_logout = "Informações de conexões";
|
218 |
}
|
213 |
}
|
219 |
}
|
214 |
}
|
220 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
|
215 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Mudar sua senha</a>";
|
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.";
|
216 |
$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.";
|
222 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
- |
|
223 |
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
|
217 |
$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
|
224 |
$l_service_sms = "SMS service enable";
|
- |
|
225 |
$l_service_sms_n = "SMS service disable";
|
- |
|
226 |
$l_acc_sms = "Auto registration by SMS";
|
- |
|
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.";
|
218 |
$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.";
|
228 |
if (isset($_GET['url'])) {
|
219 |
if (isset($_GET['url'])) {
|
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>";
|
220 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
230 |
} else {
|
221 |
} else {
|
231 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
222 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Lo comprendo y deseo continuar mi navegación.</a>";
|
Line 264... |
Line 255... |
264 |
$l_logout = "连接信息";
|
255 |
$l_logout = "连接信息";
|
265 |
}
|
256 |
}
|
266 |
}
|
257 |
}
|
267 |
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
|
258 |
$l_password_change = "<a href=\"https://$hostname/password.php\">更改您的密码</a>";
|
268 |
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
|
259 |
$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
|
269 |
$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
|
- |
|
270 |
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
|
260 |
$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
|
271 |
$l_service_sms = "短信服务可用";
|
- |
|
272 |
$l_service_sms_n = "短信服务禁用";
|
- |
|
273 |
$l_acc_sms = "短信自动注册";
|
- |
|
274 |
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
|
261 |
$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
|
275 |
if (isset($_GET['url'])) {
|
262 |
if (isset($_GET['url'])) {
|
276 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
|
263 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">我明白并希望继续浏览。</a>";
|
277 |
} else {
|
264 |
} else {
|
278 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">我明白并希望继续浏览。</a>";
|
265 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">我明白并希望继续浏览。</a>";
|
Line 330... |
Line 317... |
330 |
$redirect_sms_text = "يوجهك على الصفحة التفسيرية للتسجيل الذاتي بطريقة";
|
317 |
$redirect_sms_text = "يوجهك على الصفحة التفسيرية للتسجيل الذاتي بطريقة";
|
331 |
$login_text = "تسجيل الدخول";
|
318 |
$login_text = "تسجيل الدخول";
|
332 |
$your_phone_text = "رقم الهاتف الخاص بك";
|
319 |
$your_phone_text = "رقم الهاتف الخاص بك";
|
333 |
$pass_text = "كلمة السر";
|
320 |
$pass_text = "كلمة السر";
|
334 |
$your_message_text = "رسالتك";
|
321 |
$your_message_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";
|
- |
|
336 |
$previous_text = "الصفحة السابقة";
|
322 |
$previous_text = "الصفحة السابقة";
|
337 |
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
|
323 |
$l_back_page = "<a href=\"javascript:history.back()\">$previous_text</a>";
|
338 |
$l_service_sms = "نشطة SMS خدمة";
|
- |
|
339 |
$l_service_sms_n = "غير نشطة SMS خدمة";
|
- |
|
340 |
$l_acc_sms = "تسجيل ذاتي عن طريق SMS";
|
- |
|
341 |
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
|
324 |
$l_explain_warn = "المسؤول أنشأ أرشيفاً تحتوي على سجلات الاتصال في إطار تحقيق قضائي";
|
342 |
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
|
325 |
$understand_text = "أنا متفهم و أريد ان أواصل التصفح";
|
343 |
if (isset($_GET['url'])) {
|
326 |
if (isset($_GET['url'])) {
|
344 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">$understand_text</a>";
|
327 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">$understand_text</a>";
|
345 |
} else {
|
328 |
} else {
|
Line 379... |
Line 362... |
379 |
$l_logout = "Informationen zur Verbindung";
|
362 |
$l_logout = "Informationen zur Verbindung";
|
380 |
}
|
363 |
}
|
381 |
}
|
364 |
}
|
382 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Passwort ändern</a>";
|
365 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Passwort ändern</a>";
|
383 |
$l_password_change_explain = "Leitet Sie auf die Seite der Passwortänderung weiter.<br><br> Sie sollten bereits einen Account für den Internetzugriff haben.";
|
366 |
$l_password_change_explain = "Leitet Sie auf die Seite der Passwortänderung weiter.<br><br> Sie sollten bereits einen Account für den Internetzugriff haben.";
|
384 |
$l_sms_explain = "Leitet Sie auf die automatische Registrierungsseite weiter.<br><br><strong>Login:</strong> Ihre Telefonnummer<br><strong>Passwort:</strong> SMS content";
|
- |
|
385 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
367 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
386 |
$l_service_sms = "SMS-Service aktivieren";
|
- |
|
387 |
$l_service_sms_n = "SMS-Service deaktivieren";
|
- |
|
388 |
$l_acc_sms = "Automatische Registrierung per SMS";
|
- |
|
389 |
$l_explain_warn = "Der Administrator wird ein Archiv erstellen, welches Ihre Logdaten für den Fall einer gerichtlichen Untersuchung beinhaltet.";
|
368 |
$l_explain_warn = "Der Administrator wird ein Archiv erstellen, welches Ihre Logdaten für den Fall einer gerichtlichen Untersuchung beinhaltet.";
|
390 |
if (isset($_GET['url'])) {
|
369 |
if (isset($_GET['url'])) {
|
391 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
|
370 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
|
392 |
} else {
|
371 |
} else {
|
393 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
|
372 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">Ich verstehe und möchte fortfahren.</a>";
|
Line 427... |
Line 406... |
427 |
$l_logout = "Connections information";
|
406 |
$l_logout = "Connections information";
|
428 |
}
|
407 |
}
|
429 |
}
|
408 |
}
|
430 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
|
409 |
$l_password_change = "<a href=\"https://$hostname/password.php\">Change your password</a>";
|
431 |
$l_password_change_explain = "You should already have an Internet access account.";
|
410 |
$l_password_change_explain = "You should already have an Internet access account.";
|
432 |
$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
|
- |
|
433 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
411 |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
|
434 |
$l_service_sms = "SMS service enable";
|
- |
|
435 |
$l_service_sms_n = "SMS service disable";
|
- |
|
436 |
$l_acc_sms = "Auto registration by SMS";
|
- |
|
437 |
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
|
412 |
$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
|
438 |
if (isset($_GET['url'])) {
|
413 |
if (isset($_GET['url'])) {
|
439 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
|
414 |
$l_continue_link = "<a href=\"index.php?redirect=1&url=".urlencode($_GET['url'])."\" class=\"button\">I understand and I wish to continue.</a>";
|
440 |
} else {
|
415 |
} else {
|
441 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">I understand and I wish to continue.</a>";
|
416 |
$l_continue_link = "<a href=\"index.php\" class=\"button\">I understand and I wish to continue.</a>";
|
Line 517... |
Line 492... |
517 |
$filteredUrlHtml .= "<br>$l_category ".implode(', ', $categories);
|
492 |
$filteredUrlHtml .= "<br>$l_category ".implode(', ', $categories);
|
518 |
}
|
493 |
}
|
519 |
}
|
494 |
}
|
520 |
////////////////////////////////////////////////////////////////////////
|
495 |
////////////////////////////////////////////////////////////////////////
|
521 |
/////////////////////////// TEST VARIABLES /////////////////////////////
|
496 |
/////////////////////////// TEST VARIABLES /////////////////////////////
|
522 |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
497 |
////////////////////////////////////////////////////////////////////////
|
523 |
//$service_SMS_status = true;
|
498 |
//$service_SMS_status = true;
|
524 |
//$direct_access = true;
|
499 |
//$direct_access = true;
|
525 |
//$network_pb = false;
|
500 |
//$network_pb = false;
|
526 |
//$domainsAllowed[] = (object) [
|
501 |
//$domainsAllowed[] = (object) [
|
527 |
// 'name' => 'name_test',
|
502 |
// 'name' => 'name_test',
|
528 |
// 'domain' => 'domain_test'
|
503 |
// 'domain' => 'domain_test'
|
529 |
//];
|
504 |
//];
|
530 |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
505 |
/////////////////////////////////////////////////////////////////////////
|
531 |
|
- |
|
532 |
|
- |
|
533 |
|
506 |
|
534 |
// Cleaning the cache
|
507 |
// Cleaning the cache
|
535 |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
|
508 |
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
|
536 |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
509 |
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
537 |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
510 |
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
Line 545... |
Line 518... |
545 |
<meta charset="UTF-8">
|
518 |
<meta charset="UTF-8">
|
546 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
519 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
547 |
<title>ALCASAR - <?= $l_title ?></title>
|
520 |
<title>ALCASAR - <?= $l_title ?></title>
|
548 |
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/bootstrap.min.css" rel="stylesheet">
|
521 |
<link type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/bootstrap.min.css" rel="stylesheet">
|
549 |
<link type="text/css" href="/css/index.css" rel="stylesheet">
|
522 |
<link type="text/css" href="/css/index.css" rel="stylesheet">
|
550 |
|
- |
|
551 |
</head>
|
523 |
</head>
|
552 |
<body>
|
524 |
<body>
|
553 |
|
- |
|
554 |
<div class="col-xs-12 col-md-10 col-md-offset-1" id="gui">
|
525 |
<div class="col-xs-12 col-md-10 col-md-offset-1" id="gui">
|
555 |
|
526 |
|
556 |
<!-- HeaderBox -->
|
527 |
<!-- HeaderBox -->
|
557 |
<div class="row banner">
|
528 |
<div class="row banner">
|
558 |
<!-- Logo box -->
|
529 |
<!-- Logo box -->
|
Line 560... |
Line 531... |
560 |
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
531 |
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
561 |
</div>
|
532 |
</div>
|
562 |
|
533 |
|
563 |
<!-- Title -->
|
534 |
<!-- Title -->
|
564 |
<div id="cadre_titre" class="col-xs-12 col-sm-8">
|
535 |
<div id="cadre_titre" class="col-xs-12 col-sm-8">
|
565 |
|
- |
|
566 |
<?php if ($direct_access): ?>
|
536 |
<?php if ($direct_access): ?>
|
567 |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
|
537 |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
|
568 |
<?php if ($network_pb): ?>
|
538 |
<?php if ($network_pb): ?>
|
569 |
<div class="explanation_net_pb"><?= $l_explain_net_pb ?></div>
|
539 |
<div class="explanation_net_pb"><?= $l_explain_net_pb ?></div>
|
570 |
<?php endif; ?>
|
540 |
<?php endif; ?>
|
571 |
<?php else: // the user is intercepted ?>
|
541 |
<?php else: // the user is intercepted ?>
|
572 |
|
- |
|
573 |
<?php // if user need to be warned that someone reads his logs ?>
|
- |
|
574 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): ?>
|
542 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] == '1'): // if user need to be warm that someone reads his log ?>
|
575 |
<div id="cadre_titre" class="titre_refus">
|
543 |
<div id="cadre_titre" class="titre_refus">
|
576 |
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
|
544 |
<p id="acces_controle" class="titre_refus"><?= $l_title_warn ?></p>
|
577 |
</div>
|
545 |
</div>
|
578 |
|
- |
|
579 |
<?php else: // the user is blacklisted (or whitelisted) ?>
|
546 |
<?php else: // the user is blacklisted (or whitelisted) ?>
|
580 |
<div id="cadre_titre" class="titre_refus">
|
547 |
<div id="cadre_titre" class="titre_refus">
|
581 |
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
|
548 |
<p id="acces_controle" class="titre_refus"><?= $l_title ?></p>
|
582 |
</div>
|
549 |
</div>
|
583 |
<?php endif; ?>
|
550 |
<?php endif; ?>
|
Line 586... |
Line 553... |
586 |
</div>
|
553 |
</div>
|
587 |
|
554 |
|
588 |
<!-- Main content box -->
|
555 |
<!-- Main content box -->
|
589 |
<div class="row">
|
556 |
<div class="row">
|
590 |
<div id="contenu_acces" class="col-xs-12 col-lg-offset-1 col-lg-10">
|
557 |
<div id="contenu_acces" class="col-xs-12 col-lg-offset-1 col-lg-10">
|
- |
|
558 |
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): // print blacklist categories ?>
|
591 |
<div id="box_url">
|
559 |
<div id="box_url">
|
592 |
<?php // Print blacklist categories ?>
|
- |
|
593 |
<?php if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))): ?>
|
- |
|
594 |
<?= $filteredUrlHtml ?>
|
560 |
<?= $filteredUrlHtml ?>
|
595 |
<?php endif; ?>
|
- |
|
596 |
</div>
|
561 |
</div>
|
597 |
|
- |
|
- |
|
562 |
<?php endif; ?>
|
598 |
|
563 |
|
599 |
<!-- Menu -->
|
564 |
<!-- Menu -->
|
600 |
<div class="menu-container container col_xs_12 col-sm-7">
|
565 |
<div class="menu-container container col_xs_12 col-sm-7">
|
601 |
<?php if ($direct_access): ?>
|
566 |
<?php if ($direct_access): ?>
|
602 |
<div class="box_menu<?= (!$network_pb) ? '' : ' box-menu-disabled' ?>" id="box_conn" <?= (!$network_pb) ? '' : 'title=\'Not available\'' ?>>
|
567 |
<div class="box_menu<?= (!$network_pb) ? '' : ' box-menu-disabled' ?>" id="box_conn" <?= (!$network_pb) ? '' : 'title=\'Not available\'' ?>>
|
Line 619... |
Line 584... |
619 |
</div>
|
584 |
</div>
|
620 |
<span><?= $l_password_change ?></span>
|
585 |
<span><?= $l_password_change ?></span>
|
621 |
</div>
|
586 |
</div>
|
622 |
|
587 |
|
623 |
<?php if ($service_SMS_status === true): ?>
|
588 |
<?php if ($service_SMS_status === true): ?>
|
624 |
<div class="box_menu_right box_menu" id="box_acc">
|
589 |
<div class="box_menu_right box_menu" id="box_acc">
|
625 |
<span><?= $l_sms_access ?></span>
|
590 |
<span><?= $l_sms_access ?></span>
|
626 |
<div class="menu-image">
|
591 |
<div class="menu-image">
|
627 |
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
|
592 |
<img class="img-responsive menu-image" src="<?= $img_rep.$img_sms ?>">
|
628 |
</div>
|
- |
|
629 |
</div>
|
593 |
</div>
|
- |
|
594 |
</div>
|
630 |
<?php endif; ?>
|
595 |
<?php endif; ?>
|
631 |
</div>
|
596 |
</div>
|
632 |
|
- |
|
633 |
|
597 |
|
634 |
<!-- Info Box -->
|
598 |
<!-- Info Box -->
|
635 |
<div class="info-box-container col-sm-5">
|
599 |
<div class="info-box-container col-sm-5">
|
636 |
<div id="box_infos">
|
600 |
<div id="box_infos">
|
637 |
<h2 class="box_infos_titles"><?= $l_logout ?></h2>
|
601 |
<h2 class="box_infos_titles"><?= $l_logout ?></h2>
|
Line 649... |
Line 613... |
649 |
<h2 class="box_infos_titles"><?= $l_install_certif_more ?></a></h2>
|
613 |
<h2 class="box_infos_titles"><?= $l_install_certif_more ?></a></h2>
|
650 |
<p class="box_infos_explanations"><?= "$l_certif_explain $l_certif_explain_help" ?></p>
|
614 |
<p class="box_infos_explanations"><?= "$l_certif_explain $l_certif_explain_help" ?></p>
|
651 |
<h2 class="box_infos_titles"><?= $l_password_change ?></h2>
|
615 |
<h2 class="box_infos_titles"><?= $l_password_change ?></h2>
|
652 |
<p class="box_infos_explanations"><?= $l_password_change_explain ?></p>
|
616 |
<p class="box_infos_explanations"><?= $l_password_change_explain ?></p>
|
653 |
|
617 |
|
654 |
<?php if ($service_SMS_status === true): ?>
|
- |
|
655 |
<h2 class="box_infos_titles"><?= $l_sms_access ?></h2>
|
- |
|
656 |
<p class="box_infos_explanations"><?= $l_sms_explain ?></p>
|
- |
|
657 |
<p style="color: green; text-align: center;"><?= $l_service_sms ?></p>
|
- |
|
658 |
<?php endif; ?>
|
- |
|
659 |
<?php else: // the user is intercepted ?>
|
618 |
<?php else: // the user is intercepted ?>
|
660 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
|
619 |
<?php if (isset($_GET['warn']) && isset($_GET['url']) && $_GET['warn'] === '1'): // user need to be warned that someone reads his logs ?>
|
661 |
<div id="box_refuse">
|
620 |
<div id="box_refuse">
|
662 |
<img src="//<?= $hostname.$img_rep.$img_warning ?>">
|
621 |
<img src="//<?= $hostname.$img_rep.$img_warning ?>">
|
663 |
<p><?= $l_explain_warn ?></p>
|
622 |
<p><?= $l_explain_warn ?></p>
|
Line 679... |
Line 638... |
679 |
</div>
|
638 |
</div>
|
680 |
<?php if (($network_pb) && (!$direct_access)): ?>
|
639 |
<?php if (($network_pb) && (!$direct_access)): ?>
|
681 |
<span>Diagnostic : <?= $diagnostic ?></span>
|
640 |
<span>Diagnostic : <?= $diagnostic ?></span>
|
682 |
<?php endif; ?>
|
641 |
<?php endif; ?>
|
683 |
</div>
|
642 |
</div>
|
684 |
|
- |
|
685 |
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
|
643 |
<?php if ($direct_access): // display the admin logo (wheel) at the bottom right ?>
|
686 |
<div id="corner">
|
644 |
<div id="corner">
|
687 |
<div id="adm" class="corn">
|
645 |
<div id="adm" class="corn">
|
688 |
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
|
646 |
<a href="<?= "https://$hostname/acc/" ?>"><img src="<?= $img_rep.$img_adm ?>"></a>
|
689 |
</div>
|
647 |
</div>
|
690 |
|
- |
|
691 |
</div>
|
648 |
</div>
|
692 |
</div>
|
649 |
</div>
|
693 |
<?php endif; ?>
|
650 |
<?php endif; ?>
|
694 |
</div>
|
651 |
</div>
|
695 |
<div class="row col-xs-12">
|
652 |
<div class="row col-xs-12">
|
696 |
<div id="boite_logo" class="col-xs-12 hidden-sm hidden-md hidden-lg">
|
653 |
<div id="boite_logo" class="col-xs-12 hidden-sm hidden-md hidden-lg">
|
697 |
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
654 |
<img class="img-responsive img-organisme" src="<?= ((!$direct_access) ? "//$hostname" : '') ?><?= $img_rep.$img_organisme ?>">
|
698 |
</div>
|
655 |
</div>
|
699 |
</div>
|
656 |
</div>
|
700 |
|
- |
|
701 |
|
- |
|
702 |
</body>
|
657 |
</body>
|
703 |
</html>
|
658 |
</html>
|