Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: intercept.php 3137 2023-05-21 15:44:02Z rexy $
|
2 |
# $Id: intercept.php 3139 2023-07-02 14:22:12Z rexy $
|
3 |
#
|
3 |
#
|
4 |
# intercept.php for ALCASAR captive portal
|
4 |
# intercept.php for ALCASAR captive portal
|
5 |
# By Mondru AB.
|
5 |
# By Mondru AB.
|
6 |
# Modify by Rexy & steweb57
|
6 |
# Modify by Rexy & steweb57
|
7 |
# UI & css style by Stéphane ERARD & Alexandre VEZIN
|
7 |
# UI & css style by Stéphane ERARD & Alexandre VEZIN
|
Line 88... |
Line 88... |
88 |
$l_loggingin = "Identificación en el portal cautivo";
|
88 |
$l_loggingin = "Identificación en el portal cautivo";
|
89 |
$l_loggedcont = "Control de Acceso";
|
89 |
$l_loggedcont = "Control de Acceso";
|
90 |
$l_loggedout = "Su sesión se cierra";
|
90 |
$l_loggedout = "Su sesión se cierra";
|
91 |
$l_user = "Usuario";
|
91 |
$l_user = "Usuario";
|
92 |
$l_password = "Contraseña";
|
92 |
$l_password = "Contraseña";
|
- |
|
93 |
$l_mandatory = "* Campos requeridos";
|
93 |
$l_wait = "Por favor, espere un momento ...";
|
94 |
$l_wait = "Por favor, espere un momento ...";
|
94 |
$l_onlinetime = "Tiempo de conexión:";
|
95 |
$l_onlinetime = "Tiempo de conexión:";
|
95 |
$l_remainingtime = "Desconexión en:";
|
96 |
$l_remainingtime = "Desconexión en:";
|
96 |
$l_encrypted = "La conexión con el portal apertura debe ser cifrada (https)";
|
97 |
$l_encrypted = "La conexión con el portal apertura debe ser cifrada (https)";
|
97 |
$l_boutonO = "Autenticación";
|
98 |
$l_boutonO = "Autenticación";
|
Line 123... |
Line 124... |
123 |
$l_loggingin = "Identificação do portal cativo";
|
124 |
$l_loggingin = "Identificação do portal cativo";
|
124 |
$l_loggedcont = "Controle de acesso";
|
125 |
$l_loggedcont = "Controle de acesso";
|
125 |
$l_loggedout = "Sua sessão foi fechada";
|
126 |
$l_loggedout = "Sua sessão foi fechada";
|
126 |
$l_user = "Usuário";
|
127 |
$l_user = "Usuário";
|
127 |
$l_password = "Senha";
|
128 |
$l_password = "Senha";
|
- |
|
129 |
$l_mandatory = "* Campos obrigatórios";
|
128 |
$l_wait = "Por favor, aguarde um momento ...";
|
130 |
$l_wait = "Por favor, aguarde um momento ...";
|
129 |
$l_onlinetime = "Tempo de conexão:";
|
131 |
$l_onlinetime = "Tempo de conexão:";
|
130 |
$l_remainingtime = "Desconectado em:";
|
132 |
$l_remainingtime = "Desconectado em:";
|
131 |
$l_encrypted = "A conexão com o portal deve ser criptografada (https)";
|
133 |
$l_encrypted = "A conexão com o portal deve ser criptografada (https)";
|
132 |
$l_boutonO = "Autenticação";
|
134 |
$l_boutonO = "Autenticação";
|
Line 158... |
Line 160... |
158 |
$l_loggingin = "强制门户身份识别";
|
160 |
$l_loggingin = "强制门户身份识别";
|
159 |
$l_loggedcont = "访问控制";
|
161 |
$l_loggedcont = "访问控制";
|
160 |
$l_loggedout = "您的连接已关闭";
|
162 |
$l_loggedout = "您的连接已关闭";
|
161 |
$l_user = "用户名";
|
163 |
$l_user = "用户名";
|
162 |
$l_password = "密码";
|
164 |
$l_password = "密码";
|
- |
|
165 |
$l_mandatory = "* 必须填写";
|
163 |
$l_wait = "请等待 ...";
|
166 |
$l_wait = "请等待 ...";
|
164 |
$l_onlinetime = "连接时间";
|
167 |
$l_onlinetime = "连接时间";
|
165 |
$l_remainingtime = "断开连接于";
|
168 |
$l_remainingtime = "断开连接于";
|
166 |
$l_encrypted = "与门户的连接必须加密 (https)";
|
169 |
$l_encrypted = "与门户的连接必须加密 (https)";
|
167 |
$l_boutonO = "验证";
|
170 |
$l_boutonO = "验证";
|
Line 193... |
Line 196... |
193 |
$l_loggingin = "التعريف على البوابة الأسيرة";
|
196 |
$l_loggingin = "التعريف على البوابة الأسيرة";
|
194 |
$l_loggedcont = "مراقبة الدخول";
|
197 |
$l_loggedcont = "مراقبة الدخول";
|
195 |
$l_loggedout = "دورتكَ مغلقة";
|
198 |
$l_loggedout = "دورتكَ مغلقة";
|
196 |
$l_user = "التعريف";
|
199 |
$l_user = "التعريف";
|
197 |
$l_password = "كلمة السر";
|
200 |
$l_password = "كلمة السر";
|
- |
|
201 |
$l_mandatory ="* الحقول المطلوبة";
|
198 |
$l_wait = "...إنتظر بعض اللحظات";
|
202 |
$l_wait = "...إنتظر بعض اللحظات";
|
199 |
$l_onlinetime = ":مدة الإتصال";
|
203 |
$l_onlinetime = ":مدة الإتصال";
|
200 |
$l_remainingtime = ":انقطاع الإتصال في";
|
204 |
$l_remainingtime = ":انقطاع الإتصال في";
|
201 |
$l_encrypted = "يجب تشفير الإتصال بالبوابة (https)";
|
205 |
$l_encrypted = "يجب تشفير الإتصال بالبوابة (https)";
|
202 |
$l_boutonO = "مصادقة";
|
206 |
$l_boutonO = "مصادقة";
|
Line 228... |
Line 232... |
228 |
$l_loggingin = "Authentifizierung auf dem Portal";
|
232 |
$l_loggingin = "Authentifizierung auf dem Portal";
|
229 |
$l_loggedcont = "Zugangskontrolle";
|
233 |
$l_loggedcont = "Zugangskontrolle";
|
230 |
$l_loggedout = "Ihre Sitzung wurde geschlossen";
|
234 |
$l_loggedout = "Ihre Sitzung wurde geschlossen";
|
231 |
$l_user = "Benutzer";
|
235 |
$l_user = "Benutzer";
|
232 |
$l_password = "Passwort";
|
236 |
$l_password = "Passwort";
|
- |
|
237 |
$l_mandatory = "* Benötigte Felder";
|
233 |
$l_wait = "Bitte warten Sie einen Moment ...";
|
238 |
$l_wait = "Bitte warten Sie einen Moment ...";
|
234 |
$l_onlinetime = "Online-Zeit:";
|
239 |
$l_onlinetime = "Online-Zeit:";
|
235 |
$l_remainingtime = "Abmelden:";
|
240 |
$l_remainingtime = "Abmelden:";
|
236 |
$l_encrypted = "Die Verbindung muss verschlüsselt sein (https)";
|
241 |
$l_encrypted = "Die Verbindung muss verschlüsselt sein (https)";
|
237 |
$l_boutonO = "Authentifizierung";
|
242 |
$l_boutonO = "Authentifizierung";
|
Line 263... |
Line 268... |
263 |
$l_loggingin = "Identificatie van de captive-portaal";
|
268 |
$l_loggingin = "Identificatie van de captive-portaal";
|
264 |
$l_loggedcont = "toegangscontrole";
|
269 |
$l_loggedcont = "toegangscontrole";
|
265 |
$l_loggedout = "Uw sessie is gesloten";
|
270 |
$l_loggedout = "Uw sessie is gesloten";
|
266 |
$l_user = "Gebruiker";
|
271 |
$l_user = "Gebruiker";
|
267 |
$l_password = "Wachtwoord";
|
272 |
$l_password = "Wachtwoord";
|
- |
|
273 |
$l_mandatory = "* Verplichte velden";
|
268 |
$l_wait = "Wacht een moment ...";
|
274 |
$l_wait = "Wacht een moment ...";
|
269 |
$l_onlinetime = "Sluit tijd:";
|
275 |
$l_onlinetime = "Sluit tijd:";
|
270 |
$l_remainingtime = "Verbreking in:";
|
276 |
$l_remainingtime = "Verbreking in:";
|
271 |
$l_encrypted = "De opening moet gebruiken gecodeerde verbinding (https)";
|
277 |
$l_encrypted = "De opening moet gebruiken gecodeerde verbinding (https)";
|
272 |
$l_boutonO = "Authenticatie";
|
278 |
$l_boutonO = "Authenticatie";
|
Line 298... |
Line 304... |
298 |
$l_loggingin = "Identification sur le portail captif";
|
304 |
$l_loggingin = "Identification sur le portail captif";
|
299 |
$l_loggedcont = "Contrôle d'accès";
|
305 |
$l_loggedcont = "Contrôle d'accès";
|
300 |
$l_loggedout = "Votre session est fermée";
|
306 |
$l_loggedout = "Votre session est fermée";
|
301 |
$l_user = "Identifiant";
|
307 |
$l_user = "Identifiant";
|
302 |
$l_password = "Mot de passe";
|
308 |
$l_password = "Mot de passe";
|
- |
|
309 |
$l_mandatory = "* champs requis";
|
303 |
$l_wait = "Patientez un instant ...";
|
310 |
$l_wait = "Patientez un instant ...";
|
304 |
$l_onlinetime = "Temps de connexion:";
|
311 |
$l_onlinetime = "Temps de connexion:";
|
305 |
$l_remainingtime = "Deconnexion dans :";
|
312 |
$l_remainingtime = "Deconnexion dans :";
|
306 |
$l_encrypted = "La connexion avec le portail doit être chiffrée (https)";
|
313 |
$l_encrypted = "La connexion avec le portail doit être chiffrée (https)";
|
307 |
$l_boutonO = "Authentification";
|
314 |
$l_boutonO = "Authentification";
|
Line 333... |
Line 340... |
333 |
$l_loggingin = "Identification on the captive portal";
|
340 |
$l_loggingin = "Identification on the captive portal";
|
334 |
$l_loggedcont = "Access Control";
|
341 |
$l_loggedcont = "Access Control";
|
335 |
$l_loggedout = "Your session is closed";
|
342 |
$l_loggedout = "Your session is closed";
|
336 |
$l_user = "User";
|
343 |
$l_user = "User";
|
337 |
$l_password = "Password";
|
344 |
$l_password = "Password";
|
- |
|
345 |
$l_mandatory = "* field required";
|
338 |
$l_wait = "Please wait a moment ...";
|
346 |
$l_wait = "Please wait a moment ...";
|
339 |
$l_onlinetime = "Connect time:";
|
347 |
$l_onlinetime = "Connect time:";
|
340 |
$l_remainingtime = "Disconnection in:";
|
348 |
$l_remainingtime = "Disconnection in:";
|
341 |
$l_encrypted = "The connection with the portal must be encrypted (https)";
|
349 |
$l_encrypted = "The connection with the portal must be encrypted (https)";
|
342 |
$l_boutonO = "Authentication";
|
350 |
$l_boutonO = "Authentication";
|
Line 494... |
Line 502... |
494 |
}
|
502 |
}
|
495 |
|
503 |
|
496 |
//////////////////////////////////////////////
|
504 |
//////////////////////////////////////////////
|
497 |
///////////// TEST VARIABLES /////////////////
|
505 |
///////////// TEST VARIABLES /////////////////
|
498 |
//////////////////////////////////////////////////////////////////
|
506 |
//////////////////////////////////////////////////////////////////
|
499 |
//$result = 5; // = 1/2/3/4/5 (reply is a displayed sentence)
|
507 |
//$result = 5; // = 1/2/3/4/5
|
- |
|
508 |
//$reply is a displayed sentence
|
500 |
//$reply = 'dsfsdfsdfdsf'; // = ''/'Incorrect user/password'
|
509 |
//$reply = 'dsfsdfsdfdsf'; // = ''/'Incorrect user/password'
|
501 |
//$service_SMS_status = true; // = true/false
|
510 |
//$service_SMS_status = true; // = true/false
|
502 |
//$service_Email_status = true; // = true/false
|
511 |
//$service_Email_status = true; // = true/false
|
503 |
//$service_wifi4eu_status = true; // = true/false
|
512 |
//$service_wifi4eu_status = true; // = true/false
|
504 |
// test of domain Allowed
|
513 |
// test of domain Allowed
|
Line 539... |
Line 548... |
539 |
} else if (userurl !== '') {
|
548 |
} else if (userurl !== '') {
|
540 |
url = userurl;
|
549 |
url = userurl;
|
541 |
}
|
550 |
}
|
542 |
if (typeof url !== 'undefined') {
|
551 |
if (typeof url !== 'undefined') {
|
543 |
var win = window.open('<?= $statuspath ?>', '_blank');
|
552 |
var win = window.open('<?= $statuspath ?>', '_blank');
|
544 |
|
- |
|
545 |
if ((win === null) || (typeof win === 'undefined')) { // Pop-up blocked
|
553 |
if ((win === null) || (typeof win === 'undefined')) { // Pop-up blocked
|
546 |
window.location = '<?= $statuspath ?>';
|
554 |
window.location = '<?= $statuspath ?>';
|
547 |
} else {
|
555 |
} else {
|
548 |
window.location = url;
|
556 |
window.location = url;
|
549 |
}
|
557 |
}
|
Line 554... |
Line 562... |
554 |
if ((result === 2) || (result === 3) || result === 5) { // failed or logoff or notyet
|
562 |
if ((result === 2) || (result === 3) || result === 5) { // failed or logoff or notyet
|
555 |
document.form1.username.focus();
|
563 |
document.form1.username.focus();
|
556 |
}
|
564 |
}
|
557 |
}
|
565 |
}
|
558 |
</script>
|
566 |
</script>
|
- |
|
567 |
<script type="text/javascript" src="js/bootstrap.min.js"></script>
|
- |
|
568 |
<script type="text/javascript" src="/js/jquery.min.js"></script>
|
- |
|
569 |
<script>jQuery(document).ready(function($){$("input").focus(function(){$("#status").fadeOut(1000);});});</script>
|
559 |
</head>
|
570 |
</head>
|
560 |
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')">
|
571 |
<body onLoad="javascript:doOnLoad(<?= $result ?>,'<?= $userurl ?>','<?= $redirurl ?>','<?= $adminurl ?>','<?= $timeleft ?>')">
|
561 |
<div class="col-12">
|
572 |
<div class="col-12">
|
562 |
<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
|
573 |
<?php if ($result === 2 || $result === 3 || $result === 5): // failed or logoff or notyet ?>
|
563 |
<div class ="row">
|
574 |
<div class ="row">
|
Line 616... |
Line 627... |
616 |
</div>
|
627 |
</div>
|
617 |
<div class="col-12 col-md-8">
|
628 |
<div class="col-12 col-md-8">
|
618 |
<input type="hidden" name="challenge" value="<?= $challenge ?>">
|
629 |
<input type="hidden" name="challenge" value="<?= $challenge ?>">
|
619 |
<input type="hidden" name="userurl" value="<?= $userurl ?>">
|
630 |
<input type="hidden" name="userurl" value="<?= $userurl ?>">
|
620 |
<div class="form-group row">
|
631 |
<div class="form-group row">
|
621 |
<div class="col-2 col-md-2 control-label">
|
632 |
<div class="col-2 col-md-3 control-label">
|
622 |
<p class="boite-info-text"><?= $l_user ?></p>
|
633 |
<p class="boite-info-text"><?= $l_user ?> *</p>
|
623 |
</div>
|
634 |
</div>
|
624 |
<div class="col-8 col-md-8" id="input_username">
|
635 |
<div class="col-8 col-md-8" id="input_username">
|
625 |
<input type="text" class="form-control boite-info-text" name="username" placeholder="<?= $l_user ?>">
|
636 |
<input type="text" class="form-control boite-info-text" name="username" placeholder="<?= $l_user ?>">
|
626 |
</div>
|
637 |
</div>
|
627 |
</div>
|
638 |
</div>
|
628 |
<div class="form-group row">
|
639 |
<div class="form-group row">
|
629 |
<div class="col-2 col-md-2 control-label">
|
640 |
<div class="col-2 col-md-3 control-label">
|
630 |
<p class="boite-info-text"><?= $l_password ?></p>
|
641 |
<p class="boite-info-text"><?= $l_password ?> *</p>
|
631 |
</div>
|
642 |
</div>
|
632 |
<div class="col-8 col-md-8" id="input_password">
|
643 |
<div class="col-8 col-md-8" id="input_password">
|
633 |
<input type="password" class="form-control boite-info-text" name="password" placeholder="<?= $l_password ?>">
|
644 |
<input type="password" class="form-control boite-info-text" name="password" placeholder="<?= $l_password ?>">
|
634 |
</div>
|
645 |
</div>
|
635 |
</div>
|
646 |
</div>
|
- |
|
647 |
<div id="status"><?=$l_mandatory?></div>
|
636 |
</div>
|
648 |
</div>
|
637 |
<div class="d-none d-md-block col-md-2">
|
649 |
<div class="d-none d-md-block col-md-2">
|
638 |
</div>
|
650 |
</div>
|
639 |
</div>
|
651 |
</div>
|
640 |
<div class="row row_button">
|
652 |
<div class="row row_button">
|
- |
|
653 |
<div class="col-5 offset-xs-12 col-md-4 offset-md-3 text-center">
|
- |
|
654 |
<input id="button" class="btn btn-default" value="Annuler" onclick="window.location.href = 'index.php';">
|
- |
|
655 |
</div>
|
641 |
<div class="col-12 text-center">
|
656 |
<div class="col-6 col-md-4">
|
642 |
<input value="<?= $l_boutonO ?>" class="btn btn-primary button" type="submit" name="button">
|
657 |
<input value="<?= $l_boutonO ?>" class="btn btn-primary button" type="submit" name="button">
|
643 |
</div>
|
658 |
</div>
|
644 |
</div>
|
659 |
</div>
|
645 |
<?php if ($service_SMS_status): ?>
|
660 |
<?php if ($service_SMS_status): ?>
|
646 |
<div class= "row sms_registration">
|
661 |
<div class= "row sms_registration">
|
Line 681... |
Line 696... |
681 |
</div>
|
696 |
</div>
|
682 |
<div class="row">
|
697 |
<div class="row">
|
683 |
<div class="col-6 col-md-12 d-md-none d-sm-none d-lg-none">
|
698 |
<div class="col-6 col-md-12 d-md-none d-sm-none d-lg-none">
|
684 |
<img id="logo-alcasar" class="img-fluid img-xs-bottom" src="/images/logo-alcasar.png">
|
699 |
<img id="logo-alcasar" class="img-fluid img-xs-bottom" src="/images/logo-alcasar.png">
|
685 |
</div>
|
700 |
</div>
|
686 |
|
- |
|
687 |
<div class="col-6 d-sm-none d-md-none d-lg-none">
|
701 |
<div class="col-6 d-sm-none d-md-none d-lg-none">
|
688 |
<img id="logo-organ" class="img-fluid img-xs-bottom" src="/images/organisme.png">
|
702 |
<img id="logo-organ" class="img-fluid img-xs-bottom" src="/images/organisme.png">
|
689 |
</div>
|
703 |
</div>
|
690 |
</div>
|
704 |
</div>
|
691 |
<div class="row" style="text-align: center">
|
705 |
<div class="row" style="text-align: center">
|