Subversion Repositories ALCASAR

Rev

Rev 2935 | Rev 2992 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2935 Rev 2956
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2935 2021-03-28 22:14:58Z rexy $
2
# $Id: intercept.php 2956 2021-05-24 19:57:17Z 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 109... Line 109...
109
	$l_reply_4			= "su cuenta expiró";
109
	$l_reply_4			= "su cuenta expiró";
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 web autorizados : ";
114
	$l_uam_domain			= "Sitios de libre acceso : ";
115
	$l_autoregistration 		= "Registo autom&aacute;tico";
115
	$l_autoregistration 		= "Registo autom&aacute;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";
Line 143... Line 143...
143
	$l_reply_4			= "Sua conta expirou";
143
	$l_reply_4			= "Sua conta expirou";
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			= "Sites autorizados : ";
148
	$l_uam_domain			= "Sítios de acesso livre : ";
149
	$l_autoregistration 		= "Registo autom&aacute;tico";
149
	$l_autoregistration 		= "Registo autom&aacute;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			= "关闭连接";
Line 177... Line 177...
177
	$l_reply_4			= "您的账号已过期";
177
	$l_reply_4			= "您的账号已过期";
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_autoregistration		= "短信注册";
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			= "إغلاق الدورة";
Line 211... Line 211...
211
	$l_reply_4			= "انتهت مدة صلاحية حسابك";
211
	$l_reply_4			= "انتهت مدة صلاحية حسابك";
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_autoregistration		= "تسجيل ذاتي (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";
Line 245... Line 245...
245
	$l_reply_4			= "Ihr Account ist abgelaufen";
245
	$l_reply_4			= "Ihr Account ist abgelaufen";
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			= "Authorisierte Webseiten : ";
250
	$l_uam_domain			= "Offen zugängliche Seiten : ";
251
	$l_autoregistration		= "Automatische Registrierung";
251
	$l_autoregistration		= "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";
Line 279... Line 279...
279
	$l_reply_4			= "your account expired";
279
	$l_reply_4			= "your account expired";
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			= "Geautoriseerde website : ";
284
	$l_uam_domain			= "Sites met open toegang : ";
285
	$l_autoregistration		= "Automatische registratie";
285
	$l_autoregistration		= "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";
Line 313... Line 313...
313
	$l_reply_4			= "Votre compte a expiré";
313
	$l_reply_4			= "Votre compte a expiré";
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 autorisés : ";
318
	$l_uam_domain			= "Sites en accès libre : ";
319
	$l_autoregistration		= "Auto enregistrement (sms)";
319
	$l_autoregistration		= "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";
Line 347... Line 347...
347
	$l_reply_4			= "your account expired";
347
	$l_reply_4			= "your account expired";
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			= "Authorized websites : ";
352
	$l_uam_domain			= "Open access websites : ";
353
	$l_autoregistration		= "Auto registration (sms)";
353
	$l_autoregistration		= "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'))) {