Subversion Repositories ALCASAR

Rev

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

Rev 1346 Rev 1349
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 1346 2014-05-10 11:05:39Z richard $
2
# $Id: intercept.php 1349 2014-05-14 14:52:19Z richard $
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 104... Line 104...
104
  $l_reply_4		= "your account expired";
104
  $l_reply_4		= "your account expired";
105
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
105
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
106
  $l_reply_6		= "Your authorized connexion time has been reached";
106
  $l_reply_6		= "Your authorized connexion time has been reached";
107
  $l_online_time	= "Tiempo en linea";
107
  $l_online_time	= "Tiempo en linea";
108
  $l_remaining_time	= "Tiempo restante";
108
  $l_remaining_time	= "Tiempo restante";
109
  $l_uam_domain		= "Sitios web autorizados : ";}
109
  $l_uam_domain		= "Sitios web autorizados : ";
-
 
110
  $l_autoregistration   = "Registo autom&aacute;tico";}
110
else if ($Language == 'pt'){
111
else if ($Language == 'pt'){
111
  $l_ChilliError	= "A autenticação precisa ser bem sucedida através do portal.";
112
  $l_ChilliError	= "A autenticação precisa ser bem sucedida através do portal.";
112
  $l_login		= "Sucesso na autenticação.<HR>Matenha esse pop-up apenas minimizado para não interromper a conexão";
113
  $l_login		= "Sucesso na autenticação.<HR>Matenha esse pop-up apenas minimizado para não interromper a conexão";
113
  $l_logout		= "Encerrar conexão";
114
  $l_logout		= "Encerrar conexão";
114
  $l_loginfailed	= "Falha na autenticação";
115
  $l_loginfailed	= "Falha na autenticação";
Line 136... Line 137...
136
  $l_reply_4		= "Sua conta expirou";
137
  $l_reply_4		= "Sua conta expirou";
137
  $l_reply_5		= "Você atingiu o número máximo de logins simultâneos";
138
  $l_reply_5		= "Você atingiu o número máximo de logins simultâneos";
138
  $l_reply_6		= "Seu tempo de conexão autorizada finalizou";
139
  $l_reply_6		= "Seu tempo de conexão autorizada finalizou";
139
  $l_online_time	= "Tempo Online";
140
  $l_online_time	= "Tempo Online";
140
  $l_remaining_time	= "Tempo restante";
141
  $l_remaining_time	= "Tempo restante";
141
  $l_uam_domain		= "Sites autorizados : ";}
142
  $l_uam_domain		= "Sites autorizados : ";
-
 
143
  $l_autoregistration   = "Registo autom&aacute;tico";}
142
else if($Language == 'de'){
144
else if($Language == 'de'){
143
  $l_ChilliError	= "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
145
  $l_ChilliError	= "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
144
  //$l_login		= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
146
  $l_login		= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
145
  $l_login		= "Anmeldung erfolgreich.<HR>Das Schließen dieses Fensters trennt die Verbindung";
-
 
146
  //$l_logout		= "Beenden der Verbindung";
147
  $l_logout		= "Beenden der Verbindung";
147
  $l_logout		= "Verbindung beenden";
-
 
148
  $l_loginfailed	= "Anmeldung fehlgeschlagen";
148
  $l_loginfailed	= "Authentifizierungsfehler Eigenverbrauch";
149
  $l_loggingin		= "Sie sind Angemeldet";
149
  $l_loggingin		= "Kennzeichnung auf dem Eigenverbrauch";
150
  $l_loggedcont		= "Zutrittskontrolle";
150
  $l_loggedcont		= "Zutrittskontrolle";
151
  //$l_loggedout		= "Ihre Sitzung ist geschlossen";
151
  $l_loggedout		= "Ihre Sitzung ist geschlossen";
152
  $l_loggedout		= "Ihre Sitzung wurde beendet";
-
 
153
  $l_user		= "Benutzer";
152
  $l_user		= "Benutzer";
154
  $l_password		= "Passwort";
153
  $l_password		= "Passwort";
155
  $l_wait		= "Bitte warten Sie einen Moment ...";
154
  $l_wait		= "Bitte warten Sie einen Moment ...";
156
  $l_onlinetime		= "Online-Zeit:";
155
  $l_onlinetime		= "Online-Zeit:";
157
  $l_remainingtime	= "Restzeit:"; // (NON UTILSE ?)
156
  $l_remainingtime	= "Abmelden:";
158
  $l_encrypted		= "Die Verbindung muss verschlüsselt sein";
157
  $l_encrypted		= "Die Öffnung muß der Anschluß Zahlen";
159
  $l_boutonO		= "Anmelden";
158
  $l_boutonO		= "Authentifizierung";
160
  $l_boutonF		= "Schließen";
159
  $l_boutonF		= "Schließen";
161
  $l_loggedin_stringl1	= "Information System Security";
160
  $l_loggedin_stringl1	= "Information System Security";
162
  //$l_loggedin_stringl2	= "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, der Zurechenbarkeit und der Nicht-Anerkennung der Verbindungen.";
161
  $l_loggedin_stringl2	= "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, der Zurechenbarkeit und der Nicht-Anerkennung der Verbindungen.";
163
  $l_loggedin_stringl2	= "Dieses Portal wurde eingerichtet, um jeglichen Missbrauch durch den, eindeutig identifizierbaren, Benutzer zurückverfolgen zu können.";
-
 
164
  $l_loggedin_stringl3	= "Ihre Aktivität wird unter Beachtung der Privatsphäre aufgezeichnet."; #statt "Aktivitaet" kann auch "Sitzung" benutzt werden
-
 
165
  $l_loggedin_stringl4	= "Die gespeicherten Daten können nur im Falle einer Ermittlung von der Justiz genutzt werden.";
162
  $l_loggedin_stringl3	= "Ihre Tätigkeit im Netzwerk registriert ist nach Schutz der Privatsphäre.";
166
  //$l_loggedin_stringl4	= "Die gespeicherten Daten werden im Falle einer Ermittlung an die Justiz weitergegeben.";
163
  $l_loggedin_stringl4	= "Die gespeicherten Daten nicht pouront genutzt werden, dass von einer Justizbehörde im Rahmen einer Untersuchung.";
167
  $l_loggedin_stringl5	= "Diese Daten werden nach einem Jahr automatisch geloescht.";
164
  $l_loggedin_stringl5	= "Diese Daten werden automatisch gelöscht nach einem Jahr.";
168
  $l_loggedin_stringl6	= "Klicken Sie <a href='$alcasarpath'>hier</a> um ihre Passwort zu ändern, oder um das Sicherheitszertifikat in ihren Browser zu integrieren";
165
  $l_loggedin_stringl6	= "Click <a href='$alcasarpath'>here</a> to change your password or to integrate the security certificate in your browser";
169
  $l_loggedout_string	= "Trennung des Portals erfolgt !"; // à modifier
166
  $l_loggedout_string	= "Trennung des Portals erfolgt Gefangener!";
170
  $l_reply_1		= "Ihr Tages Limit ist aufgebraucht";
167
  $l_reply_1		= "Your daily connexion time has been reached";
171
  $l_reply_2		= "Ihr Monats Limit ist aufgebraucht";
168
  $l_reply_2		= "Your monthly connexion time has been reached";
172
  $l_reply_3		= "Sie versuchen sich ausserhalb des erlaubten Zeitraumes anzumelden";
169
  $l_reply_3		= "You try to connect outside of your allowed timespan";
173
  $l_reply_4		= "Ihr Benutzerkonto ist abgelaufen";
170
  $l_reply_4		= "your account expired";
174
  $l_reply_5		= "Sie haben die maximale Anzahl an gleichzeitigen Anmeldungen erreicht";
171
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
175
  $l_reply_6		= "Ihr Zeit-Guthaben ist aufgebraucht";
172
  $l_reply_6		= "Your authorized connexion time has been reached";
176
  $l_online_time	= "Online-zeit";
173
  $l_online_time	= "Online-zeit";
177
  $l_remaining_time	= "Restzeit";
174
  $l_remaining_time	= "Restzeit";
178
  $l_uam_domain		= "Autorisierten websites : ";}
175
  $l_uam_domain		= "Autorisierten websites : ";
-
 
176
  $l_autoregistration   = "Automatische registrierung";}
179
else if($Language == 'nl'){
177
else if($Language == 'nl'){
180
  $l_ChilliError	= "De authenticatie moet een succes worden via de captive portal dienst.";
178
  $l_ChilliError	= "De authenticatie moet een succes worden via de captive portal dienst.";
181
  $l_login		= "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
179
  $l_login		= "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
182
  $l_logout		= "Slotkoers verbinding";
180
  $l_logout		= "Slotkoers verbinding";
183
  $l_loginfailed	= "Authenticatie mislukt";
181
  $l_loginfailed	= "Authenticatie mislukt";
Line 205... Line 203...
205
  $l_reply_4		= "your account expired";
203
  $l_reply_4		= "your account expired";
206
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
204
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
207
  $l_reply_6		= "Your authorized connexion time has been reached";
205
  $l_reply_6		= "Your authorized connexion time has been reached";
208
  $l_online_time	= "Online tijd";
206
  $l_online_time	= "Online tijd";
209
  $l_remaining_time	= "Reterende tijd";
207
  $l_remaining_time	= "Reterende tijd";
210
  $l_uam_domain		= "Geautoriseerde website : ";}
208
  $l_uam_domain		= "Geautoriseerde website : ";
-
 
209
  $l_autoregistration   = "Automatische registratie";}
211
else if($Language == 'fr'){
210
else if($Language == 'fr'){
212
  $l_ChilliError	= "L'authentification doit être réussie sur le portail captif.";
211
  $l_ChilliError	= "L'authentification doit être réussie sur le portail captif.";
213
  $l_login		= "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
212
  $l_login		= "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
214
  $l_logout		= "Fermeture de la session";
213
  $l_logout		= "Fermeture de la session";
215
  $l_loginfailed	= "Echec d'authentification";
214
  $l_loginfailed	= "Echec d'authentification";
Line 237... Line 236...
237
  $l_reply_4		= "Votre compte a expiré";
236
  $l_reply_4		= "Votre compte a expiré";
238
  $l_reply_5		= "Vous avez atteint le nombre maximum de connexions simultanées";
237
  $l_reply_5		= "Vous avez atteint le nombre maximum de connexions simultanées";
239
  $l_reply_6		= "Votre durée de connexion autorisée a été atteinte";
238
  $l_reply_6		= "Votre durée de connexion autorisée a été atteinte";
240
  $l_online_time	= "Temps de connexion";
239
  $l_online_time	= "Temps de connexion";
241
  $l_remaining_time	= "Temps restant";
240
  $l_remaining_time	= "Temps restant";
242
  $l_uam_domain		= "Sites autorisés : ";}
241
  $l_uam_domain		= "Sites autorisés : ";
-
 
242
  $l_autoregistration   = "Auto enregistrement";}
243
else{
243
else{
244
  $l_ChilliError	= "The authentication must be successful through the captive portal service.";
244
  $l_ChilliError	= "The authentication must be successful through the captive portal service.";
245
  $l_login		= "Successful authentication.<HR>Closing this window interrupts your session";
245
  $l_login		= "Successful authentication.<HR>Closing this window interrupts your session";
246
  $l_logout		= "Closing connection";
246
  $l_logout		= "Closing connection";
247
  $l_loginfailed	= "Authentication Failed";
247
  $l_loginfailed	= "Authentication Failed";
Line 269... Line 269...
269
  $l_reply_4		= "your account expired";
269
  $l_reply_4		= "your account expired";
270
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
270
  $l_reply_5		= "You have reached the maximum number of simultaneous logins";
271
  $l_reply_6		= "Your authorized connexion time has been reached";
271
  $l_reply_6		= "Your authorized connexion time has been reached";
272
  $l_online_time	= "Online time";
272
  $l_online_time	= "Online time";
273
  $l_remaining_time	= "Remaining time";
273
  $l_remaining_time	= "Remaining time";
274
  $l_uam_domain		= "Authorized websites : ";}
274
  $l_uam_domain		= "Authorized websites : ";
-
 
275
  $l_autoregistration   = "Auto registration";}
275
 
276
 
276
# If https not use, tell it's wrong
277
# If https not use, tell it's wrong
277
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
278
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
278
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
279
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
279
<html>
280
<html>
Line 387... Line 388...
387
# Generate the output
388
# Generate the output
388
echo "<!DOCTYPE html>
389
echo "<!DOCTYPE html>
389
<html>
390
<html>
390
<head>
391
<head>
391
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
392
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
392
<title>$l_loggingin</title>
393
  <title>$l_loggingin</title>
393
<meta http-equiv=\"Cache-control\" content=\"no-cache\">
394
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
394
<meta http-equiv=\"Pragma\" content=\"no-cache\">
395
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
395
<script type=\"text/javascript\" language=\"JavaScript\">
396
  <script type=\"text/javascript\" language=\"JavaScript\">
396
	alcasar_popup = null;
397
	alcasar_popup = null;
397
	function popUp(URL) {
398
	function popUp(URL) {
398
		if (self.name != \"alcasar_popup\") {
399
		if (self.name != \"alcasar_popup\") {
399
			alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=460,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no');
400
			alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=460,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no');
400
		}
401
		}
Line 444... Line 445...
444
	<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
445
	<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
445
	<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
446
	<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
446
	<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
447
	<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
447
	<table id=\"boite-logon\">
448
	<table id=\"boite-logon\">
448
		<tr>
449
		<tr>
449
			<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
450
			<td width=\"20%\" rowspan=\"4\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
450
			<td width=\"30%\" align=\"right\">$l_user</td>
451
			<td width=\"30%\" align=\"right\">$l_user</td>
451
			<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
452
			<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
452
		</tr>
453
		</tr>
453
		<tr>
454
		<tr>
454
			<td align=\"right\">$l_password</td>
455
			<td align=\"right\">$l_password</td>
455
			<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
456
			<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
456
		</tr>
457
		</tr>
457
		<tr>
458
		<tr>";
-
 
459
 
458
			<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
460
	echo "</td><td height=\"23\"  align=\"left\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
459
		</tr>
461
		";
-
 
462
 
-
 
463
 
-
 
464
	$gammu_smsd=exec("pidof gammu-smsd");
-
 
465
	if ($gammu_smsd != "")
-
 
466
	{
-
 
467
		echo "<td height=\"23\" align=\"left\"><a target=\"_blank\"  href=\"autoregistrationinfo.php\">$l_autoregistration</a></td></tr>";
-
 
468
		
-
 
469
	}
-
 
470
 
460
	</table>
471
	echo "</table>
461
	</form>
472
	</form>
462
	<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
473
	<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"80%\">
463
		<tr>
474
		<tr>
464
			<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
475
			<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
465
		</tr>
476
		</tr>
466
		<tr>
477
		<tr>
467
			<td align=\"left\">
478
			<td align=\"left\">