Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: intercept.php 2956 2021-05-24 19:57:17Z rexy $
|
2 |
# $Id: intercept.php 2992 2022-02-24 23:23:41Z rexy $
|
3 |
#
|
3 |
#
|
4 |
# intercept.php for ALCASAR captive portal
|
4 |
# intercept.php for ALCASAR captive portal
|
5 |
# Copyright (C) 2003, 2004 Mondru AB.
|
5 |
# Copyright (C) 2003, 2004 Mondru AB.
|
6 |
# Modify by REXY & steweb57
|
6 |
# Modify by REXY & steweb57
|
7 |
# UI & css style by stephane ERARD
|
7 |
# UI & css style by stephane ERARD
|
Line 110... |
Line 110... |
110 |
$l_reply_5 = "Ha alcanzado el número máximo de inicios de sesión simultáneos";
|
110 |
$l_reply_5 = "Ha alcanzado el número máximo de inicios de sesión simultáneos";
|
111 |
$l_reply_6 = "Se ha alcanzado su tiempo de conexión autorizado";
|
111 |
$l_reply_6 = "Se ha alcanzado su tiempo de conexión autorizado";
|
112 |
$l_online_time = "Tiempo en linea";
|
112 |
$l_online_time = "Tiempo en linea";
|
113 |
$l_remaining_time = "Tiempo restante";
|
113 |
$l_remaining_time = "Tiempo restante";
|
114 |
$l_uam_domain = "Sitios de libre acceso : ";
|
114 |
$l_uam_domain = "Sitios de libre acceso : ";
|
115 |
$l_autoregistration = "Registo automático";
|
115 |
$l_sms_registration = "Registo automático";
|
116 |
} else if ($Language === 'pt') { // Portuguese
|
116 |
} else if ($Language === 'pt') { // Portuguese
|
117 |
$l_ChilliError = "A autenticação precisa ser bem sucedida através do portal.";
|
117 |
$l_ChilliError = "A autenticação precisa ser bem sucedida através do portal.";
|
118 |
$l_login = "Sucesso na autenticação.<HR>Matenha esse pop-up apenas minimizado para não interromper a conexão";
|
118 |
$l_login = "Sucesso na autenticação.<HR>Matenha esse pop-up apenas minimizado para não interromper a conexão";
|
119 |
$l_logout = "Encerrar conexão";
|
119 |
$l_logout = "Encerrar conexão";
|
120 |
$l_loginfailed = "Falha na autenticação";
|
120 |
$l_loginfailed = "Falha na autenticação";
|
Line 144... |
Line 144... |
144 |
$l_reply_5 = "Você atingiu o número máximo de logins simultâneos";
|
144 |
$l_reply_5 = "Você atingiu o número máximo de logins simultâneos";
|
145 |
$l_reply_6 = "Seu tempo de conexão autorizada finalizou";
|
145 |
$l_reply_6 = "Seu tempo de conexão autorizada finalizou";
|
146 |
$l_online_time = "Tempo Online";
|
146 |
$l_online_time = "Tempo Online";
|
147 |
$l_remaining_time = "Tempo restante";
|
147 |
$l_remaining_time = "Tempo restante";
|
148 |
$l_uam_domain = "Sítios de acesso livre : ";
|
148 |
$l_uam_domain = "Sítios de acesso livre : ";
|
149 |
$l_autoregistration = "Registo automático";
|
149 |
$l_sms_registration = "Registo automático";
|
150 |
} else if ($Language === 'zh') { // Chinese
|
150 |
} else if ($Language === 'zh') { // Chinese
|
151 |
$l_ChilliError = "验证必须通过强制门户服务";
|
151 |
$l_ChilliError = "验证必须通过强制门户服务";
|
152 |
$l_login = "验证成功<HR>关闭此窗口中断连接";
|
152 |
$l_login = "验证成功<HR>关闭此窗口中断连接";
|
153 |
$l_logout = "关闭连接";
|
153 |
$l_logout = "关闭连接";
|
154 |
$l_loginfailed = "验证失败";
|
154 |
$l_loginfailed = "验证失败";
|
Line 178... |
Line 178... |
178 |
$l_reply_5 = "您已经达到同时连接的最大数量";
|
178 |
$l_reply_5 = "您已经达到同时连接的最大数量";
|
179 |
$l_reply_6 = "已经到达您的允许连接时间";
|
179 |
$l_reply_6 = "已经到达您的允许连接时间";
|
180 |
$l_online_time = "在线时间";
|
180 |
$l_online_time = "在线时间";
|
181 |
$l_remaining_time = "剩余时间";
|
181 |
$l_remaining_time = "剩余时间";
|
182 |
$l_uam_domain = " : ";
|
182 |
$l_uam_domain = " : ";
|
183 |
$l_autoregistration = "短信注册";
|
183 |
$l_sms_registration = "短信注册";
|
184 |
} else if ($Language === 'ar') { // Arabic
|
184 |
} else if ($Language === 'ar') { // Arabic
|
185 |
$l_ChilliError = "يجب نجاح المصادقة على البوابة الأسيرة";
|
185 |
$l_ChilliError = "يجب نجاح المصادقة على البوابة الأسيرة";
|
186 |
$l_login = "إغلاق هذه النافذة يقطع دورة عملك";
|
186 |
$l_login = "إغلاق هذه النافذة يقطع دورة عملك";
|
187 |
$l_logout = "إغلاق الدورة";
|
187 |
$l_logout = "إغلاق الدورة";
|
188 |
$l_loginfailed = "فشل المصادقة";
|
188 |
$l_loginfailed = "فشل المصادقة";
|
Line 212... |
Line 212... |
212 |
$l_reply_5 = "لقد استكملت العدد الأقصى للإتصالات المتزامنة";
|
212 |
$l_reply_5 = "لقد استكملت العدد الأقصى للإتصالات المتزامنة";
|
213 |
$l_reply_6 = "استكملت مذة الإتصال المسموحة";
|
213 |
$l_reply_6 = "استكملت مذة الإتصال المسموحة";
|
214 |
$l_online_time = "مذة الإتصال";
|
214 |
$l_online_time = "مذة الإتصال";
|
215 |
$l_remaining_time = "الوقت المتبق";
|
215 |
$l_remaining_time = "الوقت المتبق";
|
216 |
$l_uam_domain = "مواقع الوصول المجاني";
|
216 |
$l_uam_domain = "مواقع الوصول المجاني";
|
217 |
$l_autoregistration = "تسجيل ذاتي (SMS)";
|
217 |
$l_sms_registration = "تسجيل ذاتي (SMS)";
|
218 |
} else if ($Language === 'de') { // German
|
218 |
} else if ($Language === 'de') { // German
|
219 |
$l_ChilliError = "Sie wurden erfolgreich durch das Portal authentifiziert.";
|
219 |
$l_ChilliError = "Sie wurden erfolgreich durch das Portal authentifiziert.";
|
220 |
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die Sitzung";
|
220 |
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die Sitzung";
|
221 |
$l_logout = "Beenden der Verbindung";
|
221 |
$l_logout = "Beenden der Verbindung";
|
222 |
$l_loginfailed = "Authentifizierungsfehler";
|
222 |
$l_loginfailed = "Authentifizierungsfehler";
|
Line 246... |
Line 246... |
246 |
$l_reply_5 = "Sie haben die maximale Anzahl an simultanen Verbindungen erreicht";
|
246 |
$l_reply_5 = "Sie haben die maximale Anzahl an simultanen Verbindungen erreicht";
|
247 |
$l_reply_6 = "Ihre maximale Verbindungszeit wurde erreicht";
|
247 |
$l_reply_6 = "Ihre maximale Verbindungszeit wurde erreicht";
|
248 |
$l_online_time = "Online-Zeit";
|
248 |
$l_online_time = "Online-Zeit";
|
249 |
$l_remaining_time = "Verbleibende Zeit";
|
249 |
$l_remaining_time = "Verbleibende Zeit";
|
250 |
$l_uam_domain = "Offen zugängliche Seiten : ";
|
250 |
$l_uam_domain = "Offen zugängliche Seiten : ";
|
251 |
$l_autoregistration = "Automatische Registrierung";
|
251 |
$l_sms_registration = "Automatische Registrierung";
|
252 |
} else if ($Language === 'nl') { // Dutch
|
252 |
} else if ($Language === 'nl') { // Dutch
|
253 |
$l_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
|
253 |
$l_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
|
254 |
$l_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
|
254 |
$l_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
|
255 |
$l_logout = "Slotkoers verbinding";
|
255 |
$l_logout = "Slotkoers verbinding";
|
256 |
$l_loginfailed = "Authenticatie mislukt";
|
256 |
$l_loginfailed = "Authenticatie mislukt";
|
Line 280... |
Line 280... |
280 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
280 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
281 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
281 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
282 |
$l_online_time = "Online tijd";
|
282 |
$l_online_time = "Online tijd";
|
283 |
$l_remaining_time = "Reterende tijd";
|
283 |
$l_remaining_time = "Reterende tijd";
|
284 |
$l_uam_domain = "Sites met open toegang : ";
|
284 |
$l_uam_domain = "Sites met open toegang : ";
|
285 |
$l_autoregistration = "Automatische registratie";
|
285 |
$l_sms_registration = "Automatische registratie";
|
286 |
} else if ($Language === 'fr') { // French
|
286 |
} else if ($Language === 'fr') { // French
|
287 |
$l_ChilliError = "L'authentification doit être réussie sur le portail captif.";
|
287 |
$l_ChilliError = "L'authentification doit être réussie sur le portail captif.";
|
288 |
$l_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
|
288 |
$l_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
|
289 |
$l_logout = "Fermeture de la session";
|
289 |
$l_logout = "Fermeture de la session";
|
290 |
$l_loginfailed = "Echec d'authentification";
|
290 |
$l_loginfailed = "Echec d'authentification";
|
Line 314... |
Line 314... |
314 |
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
314 |
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
315 |
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
|
315 |
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
|
316 |
$l_online_time = "Temps de connexion";
|
316 |
$l_online_time = "Temps de connexion";
|
317 |
$l_remaining_time = "Temps restant";
|
317 |
$l_remaining_time = "Temps restant";
|
318 |
$l_uam_domain = "Sites en accès libre : ";
|
318 |
$l_uam_domain = "Sites en accès libre : ";
|
319 |
$l_autoregistration = "Auto enregistrement (sms)";
|
319 |
$l_sms_registration = "Auto enregistrement (sms)";
|
320 |
} else { // English
|
320 |
} else { // English
|
321 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
321 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
322 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
322 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
323 |
$l_logout = "Closing connection";
|
323 |
$l_logout = "Closing connection";
|
324 |
$l_loginfailed = "Authentication Failed";
|
324 |
$l_loginfailed = "Authentication Failed";
|
Line 348... |
Line 348... |
348 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
348 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
349 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
349 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
350 |
$l_online_time = "Online time";
|
350 |
$l_online_time = "Online time";
|
351 |
$l_remaining_time = "Remaining time";
|
351 |
$l_remaining_time = "Remaining time";
|
352 |
$l_uam_domain = "Open access websites : ";
|
352 |
$l_uam_domain = "Open access websites : ";
|
353 |
$l_autoregistration = "Auto registration (sms)";
|
353 |
$l_sms_registration = "Auto registration (sms)";
|
354 |
}
|
354 |
}
|
355 |
|
355 |
|
356 |
# If HTTPS not use, tell it's wrong
|
356 |
# If HTTPS not use, tell it's wrong
|
357 |
if (($conf['HTTPS_LOGIN'] === 'on') && ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off'))) {
|
357 |
if (($conf['HTTPS_LOGIN'] === 'on') && ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off'))) {
|
358 |
// Cleaning the cache
|
358 |
// Cleaning the cache
|
Line 639... |
Line 639... |
639 |
<div class="col-xs-12 text-center">
|
639 |
<div class="col-xs-12 text-center">
|
640 |
<input value="<?= $l_boutonO ?>" class="btn btn-primary button" type="submit" name="button">
|
640 |
<input value="<?= $l_boutonO ?>" class="btn btn-primary button" type="submit" name="button">
|
641 |
</div>
|
641 |
</div>
|
642 |
</div>
|
642 |
</div>
|
643 |
<?php if ($service_SMS_status): ?>
|
643 |
<?php if ($service_SMS_status): ?>
|
644 |
<div class= "row autoregistration_sms">
|
644 |
<div class= "row sms_registration">
|
645 |
<a href="autoregistrationinfo.php"><?= $l_autoregistration ?></a>
|
645 |
<a href="sms_registration.php"><?= $l_sms_registration ?></a>
|
646 |
</div>
|
646 |
</div>
|
647 |
<?php endif; ?>
|
647 |
<?php endif; ?>
|
648 |
</form>
|
648 |
</form>
|
649 |
</div>
|
649 |
</div>
|
650 |
</div>
|
650 |
</div>
|