Subversion Repositories ALCASAR

Rev

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

Rev 2992 Rev 2993
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2992 2022-02-24 23:23:41Z rexy $
2
# $Id: intercept.php 2993 2022-03-06 23:02:08Z 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 55... Line 55...
55
}
55
}
56
fclose($file_conf);
56
fclose($file_conf);
57
 
57
 
58
$organisme = $conf["ORGANISM"];
58
$organisme = $conf["ORGANISM"];
59
$service_SMS_status = ($conf['SMS'] === 'on');
59
$service_SMS_status = ($conf['SMS'] === 'on');
-
 
60
$service_Email_status = ($conf['Email'] === 'on');
60
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
61
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
61
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
62
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
62
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
63
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
63
 
64
 
64
// Shared secret used to encrypt password with coova.
65
// Shared secret used to encrypt password with coova.
Line 110... Line 111...
110
	$l_reply_5			= "Ha alcanzado el número máximo de inicios de sesión simultáneos";
111
	$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";
112
	$l_reply_6			= "Se ha alcanzado su tiempo de conexión autorizado";
112
	$l_online_time			= "Tiempo en linea";
113
	$l_online_time			= "Tiempo en linea";
113
	$l_remaining_time		= "Tiempo restante";
114
	$l_remaining_time		= "Tiempo restante";
114
	$l_uam_domain			= "Sitios de libre acceso : ";
115
	$l_uam_domain			= "Sitios de libre acceso : ";
115
	$l_sms_registration 		= "Registo autom&aacute;tico";
116
	$l_sms_registration 	= "Registro por SMS";
-
 
117
	$l_email_registration 	= "Registro por E-mail";
116
} else if ($Language === 'pt') {	// Portuguese
118
} else if ($Language === 'pt') {	// Portuguese
117
	$l_ChilliError			= "A autenticação precisa ser bem sucedida através do portal.";
119
	$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";
120
	$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";
121
	$l_logout			= "Encerrar conexão";
120
	$l_loginfailed			= "Falha na autenticação";
122
	$l_loginfailed			= "Falha na autenticação";
Line 144... Line 146...
144
	$l_reply_5			= "Você atingiu o número máximo de logins simultâneos";
146
	$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";
147
	$l_reply_6			= "Seu tempo de conexão autorizada finalizou";
146
	$l_online_time			= "Tempo Online";
148
	$l_online_time			= "Tempo Online";
147
	$l_remaining_time		= "Tempo restante";
149
	$l_remaining_time		= "Tempo restante";
148
	$l_uam_domain			= "Sítios de acesso livre : ";
150
	$l_uam_domain			= "Sítios de acesso livre : ";
149
	$l_sms_registration 		= "Registo autom&aacute;tico";
151
	$l_sms_registration 	= "Registo por SMS";
-
 
152
	$l_email_registration 	= "Registro por E-mail";
150
} else if ($Language === 'zh') {	// Chinese
153
} else if ($Language === 'zh') {	// Chinese
151
	$l_ChilliError			= "验证必须通过强制门户服务";
154
	$l_ChilliError			= "验证必须通过强制门户服务";
152
	$l_login			= "验证成功<HR>关闭此窗口中断连接";
155
	$l_login			= "验证成功<HR>关闭此窗口中断连接";
153
	$l_logout			= "关闭连接";
156
	$l_logout			= "关闭连接";
154
	$l_loginfailed			= "验证失败";
157
	$l_loginfailed			= "验证失败";
Line 178... Line 181...
178
	$l_reply_5			= "您已经达到同时连接的最大数量";
181
	$l_reply_5			= "您已经达到同时连接的最大数量";
179
	$l_reply_6			= "已经到达您的允许连接时间";
182
	$l_reply_6			= "已经到达您的允许连接时间";
180
	$l_online_time			= "在线时间";
183
	$l_online_time			= "在线时间";
181
	$l_remaining_time		= "剩余时间";
184
	$l_remaining_time		= "剩余时间";
182
	$l_uam_domain			= " : ";
185
	$l_uam_domain			= " : ";
183
	$l_sms_registration		= "短信注册";
186
	$l_sms_registration		= "SMSで登録する";
-
 
187
	$l_email_registration 	= "メールでの登録";
184
} else if ($Language === 'ar') {	// Arabic
188
} else if ($Language === 'ar') {	// Arabic
185
	$l_ChilliError			= "يجب نجاح المصادقة على البوابة الأسيرة";
189
	$l_ChilliError			= "يجب نجاح المصادقة على البوابة الأسيرة";
186
	$l_login			= "إغلاق هذه النافذة يقطع دورة عملك";
190
	$l_login			= "إغلاق هذه النافذة يقطع دورة عملك";
187
	$l_logout			= "إغلاق الدورة";
191
	$l_logout			= "إغلاق الدورة";
188
	$l_loginfailed			= "فشل المصادقة";
192
	$l_loginfailed			= "فشل المصادقة";
Line 212... Line 216...
212
	$l_reply_5			= "لقد استكملت العدد الأقصى للإتصالات المتزامنة";
216
	$l_reply_5			= "لقد استكملت العدد الأقصى للإتصالات المتزامنة";
213
	$l_reply_6			= "استكملت مذة الإتصال المسموحة";
217
	$l_reply_6			= "استكملت مذة الإتصال المسموحة";
214
	$l_online_time			= "مذة الإتصال";
218
	$l_online_time			= "مذة الإتصال";
215
	$l_remaining_time		= "الوقت المتبق";
219
	$l_remaining_time		= "الوقت المتبق";
216
	$l_uam_domain			= "مواقع الوصول المجاني";
220
	$l_uam_domain			= "مواقع الوصول المجاني";
217
	$l_sms_registration		= "تسجيل ذاتي (SMS)";
221
	$l_sms_registration		= "التسجيل عن طريق الرسائل القصيرة";
-
 
222
	$l_email_registration 	= "التسجيل عن طريق البريد الإلكتروني";
218
} else if ($Language === 'de') {	// German
223
} else if ($Language === 'de') {	// German
219
	$l_ChilliError			= "Sie wurden erfolgreich durch das Portal authentifiziert.";
224
	$l_ChilliError			= "Sie wurden erfolgreich durch das Portal authentifiziert.";
220
	$l_login			= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die Sitzung";
225
	$l_login			= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die Sitzung";
221
	$l_logout			= "Beenden der Verbindung";
226
	$l_logout			= "Beenden der Verbindung";
222
	$l_loginfailed			= "Authentifizierungsfehler";
227
	$l_loginfailed			= "Authentifizierungsfehler";
Line 246... Line 251...
246
	$l_reply_5			= "Sie haben die maximale Anzahl an simultanen Verbindungen erreicht";
251
	$l_reply_5			= "Sie haben die maximale Anzahl an simultanen Verbindungen erreicht";
247
	$l_reply_6			= "Ihre maximale Verbindungszeit wurde erreicht";
252
	$l_reply_6			= "Ihre maximale Verbindungszeit wurde erreicht";
248
	$l_online_time			= "Online-Zeit";
253
	$l_online_time			= "Online-Zeit";
249
	$l_remaining_time		= "Verbleibende Zeit";
254
	$l_remaining_time		= "Verbleibende Zeit";
250
	$l_uam_domain			= "Offen zugängliche Seiten : ";
255
	$l_uam_domain			= "Offen zugängliche Seiten : ";
251
	$l_sms_registration		= "Automatische Registrierung";
256
	$l_sms_registration		= "Per SMS anmelden";
-
 
257
	$l_email_registration 	= "Per E-Mail anmelden";
252
} else if ($Language === 'nl') {	// Dutch
258
} else if ($Language === 'nl') {	// Dutch
253
	$l_ChilliError			= "De authenticatie moet een succes worden via de captive portal dienst.";
259
	$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.";
260
	$l_login			= "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
255
	$l_logout			= "Slotkoers verbinding";
261
	$l_logout			= "Slotkoers verbinding";
256
	$l_loginfailed			= "Authenticatie mislukt";
262
	$l_loginfailed			= "Authenticatie mislukt";
Line 280... Line 286...
280
	$l_reply_5			= "You have reached the maximum number of simultaneous logins";
286
	$l_reply_5			= "You have reached the maximum number of simultaneous logins";
281
	$l_reply_6			= "Your authorized connexion time has been reached";
287
	$l_reply_6			= "Your authorized connexion time has been reached";
282
	$l_online_time			= "Online tijd";
288
	$l_online_time			= "Online tijd";
283
	$l_remaining_time		= "Reterende tijd";
289
	$l_remaining_time		= "Reterende tijd";
284
	$l_uam_domain			= "Sites met open toegang : ";
290
	$l_uam_domain			= "Sites met open toegang : ";
285
	$l_sms_registration		= "Automatische registratie";
291
	$l_sms_registration		= "Registreren per SMS";
-
 
292
	$l_email_registration 	= "Registreer per E-mail";
286
} else if ($Language === 'fr') {	// French
293
} else if ($Language === 'fr') {	// French
287
	$l_ChilliError			= "L'authentification doit être réussie sur le portail captif.";
294
	$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.";
295
	$l_login			= "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
289
	$l_logout			= "Fermeture de la session";
296
	$l_logout			= "Fermeture de la session";
290
	$l_loginfailed			= "Echec d'authentification";
297
	$l_loginfailed			= "Echec d'authentification";
Line 314... Line 321...
314
	$l_reply_5			= "Vous avez atteint le nombre maximum de connexions simultanées";
321
	$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";
322
	$l_reply_6			= "Votre durée de connexion autorisée a été atteinte";
316
	$l_online_time			= "Temps de connexion";
323
	$l_online_time			= "Temps de connexion";
317
	$l_remaining_time		= "Temps restant";
324
	$l_remaining_time		= "Temps restant";
318
	$l_uam_domain			= "Sites en accès libre : ";
325
	$l_uam_domain			= "Sites en accès libre : ";
319
	$l_sms_registration		= "Auto enregistrement (sms)";
326
	$l_sms_registration		= "S'inscrire par SMS";
-
 
327
	$l_email_registration 	= "S'incrire pae E-mail";
320
} else {				// English
328
} else {				// English
321
	$l_ChilliError			= "The authentication must be successful through the captive portal service.";
329
	$l_ChilliError			= "The authentication must be successful through the captive portal service.";
322
	$l_login			= "Successful authentication.<HR>Closing this window interrupts your session";
330
	$l_login			= "Successful authentication.<HR>Closing this window interrupts your session";
323
	$l_logout			= "Closing connection";
331
	$l_logout			= "Closing connection";
324
	$l_loginfailed			= "Authentication Failed";
332
	$l_loginfailed			= "Authentication Failed";
Line 348... Line 356...
348
	$l_reply_5			= "You have reached the maximum number of simultaneous logins";
356
	$l_reply_5			= "You have reached the maximum number of simultaneous logins";
349
	$l_reply_6			= "Your authorized connexion time has been reached";
357
	$l_reply_6			= "Your authorized connexion time has been reached";
350
	$l_online_time			= "Online time";
358
	$l_online_time			= "Online time";
351
	$l_remaining_time		= "Remaining time";
359
	$l_remaining_time		= "Remaining time";
352
	$l_uam_domain			= "Open access websites : ";
360
	$l_uam_domain			= "Open access websites : ";
353
	$l_sms_registration		= "Auto registration (sms)";
361
	$l_sms_registration		= "Register by SMS";
-
 
362
	$l_email_registration 	= "Register by E-mail";
354
}
363
}
355
 
364
 
356
# If HTTPS not use, tell it's wrong
365
# If HTTPS not use, tell it's wrong
357
if (($conf['HTTPS_LOGIN'] === 'on') && ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off'))) {
366
if (($conf['HTTPS_LOGIN'] === 'on') && ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off'))) {
358
	// Cleaning the cache
367
	// Cleaning the cache