Subversion Repositories ALCASAR

Rev

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

Rev 523 Rev 528
Line 1... Line 1...
1
<?php
1
<?php
2
#
2
#
3
# intercept.php for Alcasar captive portal
3
# intercept.php for Alcasar captive portal
4
# Copyright (C) 2003, 2004 Mondru AB.
4
# Copyright (C) 2003, 2004 Mondru AB.
5
# Modify by REXY & steweb57
5
# Modify by REXY & steweb57
-
 
6
# UI & css style by stephane ERARD
6
# Help for language translation by B. AUBARD (thanks)
7
# Help for language translation by B. AUBARD (thanks)
7
 
8
 
8
# The contents of this file may be used under the terms of the GNU
9
# The contents of this file may be used under the terms of the GNU
9
# General Public License Version 2, provided that the above copyright
10
# General Public License Version 2, provided that the above copyright
10
# notice and this permission notice is included in all copies or
11
# notice and this permission notice is included in all copies or
Line 16... Line 17...
16
  # success :	if login successful
17
  # success :	if login successful
17
  # failed :	if login failed
18
  # failed :	if login failed
18
  # logoff :	if logout successful
19
  # logoff :	if logout successful
19
  # already :	if tried to login while already logged in
20
  # already :	if tried to login while already logged in
20
  # notyet :	if not logged in yet
21
  # notyet :	if not logged in yet
21
  # smartclient :if login from smart client
-
 
22
  # popup1 :	if requested a logging in pop up window
-
 
23
  # popup2 :	if requested a success pop up window
-
 
24
  # popup3 :	if requested a logout pop up window
-
 
25
  # Default :	it was not a form request
22
  # Default :	it was not a form request -> client go to login form
26
 
23
 
27
# Shared secret used to encrypt challenge with radius.
24
# Shared secret used to encrypt challenge with radius.
28
$uamsecret = "";
25
$uamsecret = "";
29
 
26
 
30
# URL loaded after success authenticates (let blank for browser defaults)
27
# URL loaded after success authenticates (let blank for browser defaults)
Line 40... Line 37...
40
$Language = 'en';
37
$Language = 'en';
41
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
38
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
42
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
39
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
43
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
40
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
44
if($Language == 'es'){
41
if($Language == 'es'){
45
  $R_ChilliError	= "La autenticación debe ser un éxito a través del servicio de portal cautivo.";
42
  $l_ChilliError	= "La autenticación debe ser un éxito a través del servicio de portal cautivo.";
46
  $R_login		= "El éxito de la autenticación.<HR>Cierre esta ventana interrumpte la sesion.";
43
  $l_login		= "El éxito de la autenticación.<HR>Cierre esta ventana interrumpte la sesion.";
47
  $R_logout		= "Conexión de cierre";
44
  $l_logout		= "Conexión de cierre";
48
  $R_loginfailed	= "Error de autenticación";
45
  $l_loginfailed	= "Error de autenticación";
49
  $R_loggingin		= "Identificación en el portal cautivo";
46
  $l_loggingin		= "Identificación en el portal cautivo";
50
  $R_loggedcont		= "Red de Control de Acceso";
47
  $l_loggedcont		= "Red de Control de Acceso";
51
  $R_loggedout		= "Su sesión se cierra";
48
  $l_loggedout		= "Su sesión se cierra";
52
  $R_user		= "Usuario";
49
  $l_user		= "Usuario";
53
  $R_password		= "Contraseña";
50
  $l_password		= "Contraseña";
54
  $R_wait		= "Por favor, espere un momento ...";
51
  $l_wait		= "Por favor, espere un momento ...";
55
  $R_onlinetime		= "Tiempo de conexión:";
52
  $l_onlinetime		= "Tiempo de conexión:";
56
  $R_remainingtime	= "Desconexión en:";
53
  $l_remainingtime	= "Desconexión en:";
57
  $R_encrypted		= "La apertura debe usar conexión cifrada";
54
  $l_encrypted		= "La apertura debe usar conexión cifrada";
58
  $R_boutonO		= "Autenticación";
55
  $l_boutonO		= "Autenticación";
59
  $R_boutonF		= "Cerrar";
56
  $l_boutonF		= "Cerrar";
60
  $R_loggedin_stringl1 = "Information System Security";
57
  $l_loggedin_stringl1 = "Information System Security";
61
  $R_loggedin_stringl2 = "El portal fue creado reglamentos para garantizar la trazabilidad, la rendición de cuentas y el no repudio de las conexiones.";
58
  $l_loggedin_stringl2 = "El portal fue creado reglamentos para garantizar la trazabilidad, la rendición de cuentas y el no repudio de las conexiones.";
62
  $R_loggedin_stringl3 = "Su actividad en la red es registrada, de conformidad con la privacidad.";
59
  $l_loggedin_stringl3 = "Su actividad en la red es registrada, de conformidad con la privacidad.";
63
  $R_loggedin_stringl4 = "Los datos registrados pueden ser capaces de ser operado por una autoridad judicial en el curso de una investigación.";
60
  $l_loggedin_stringl4 = "Los datos registrados pueden ser capaces de ser operado por una autoridad judicial en el curso de una investigación.";
64
  $R_loggedin_stringl5 = "Estos datos se eliminan automáticamente después de un año.";
61
  $l_loggedin_stringl5 = "Estos datos se eliminan automáticamente después de un año.";
65
  $R_loggedin_stringl6 = "Click <a href=$alcasarpath>here</a> to change your password or to integrate the security certificate in your browser";
62
  $l_loggedin_stringl6 = "Click <a href='$alcasarpath'>here</a> to change your password or to integrate the security certificate in your browser";
66
  $R_loggedout_string = "Cerrar sesión hizo portal cautivo!";
63
  $l_loggedout_string = "Cerrar sesión hizo portal cautivo!";
67
  $R_reply_1 = "Your daily connexion time has been reached";
64
  $l_reply_1 = "Your daily connexion time has been reached";
68
  $R_reply_2 = "Your monthly connexion time has been reached";
65
  $l_reply_2 = "Your monthly connexion time has been reached";
69
  $R_reply_3 = "You try to connect outside of your allowed timespan";
66
  $l_reply_3 = "You try to connect outside of your allowed timespan";
70
  $R_reply_4 = "your account expired";
67
  $l_reply_4 = "your account expired";
71
  $R_reply_5 = "You have reached the maximum number of simultaneous logins";
68
  $l_reply_5 = "You have reached the maximum number of simultaneous logins";
72
  $R_online_time = "Tiempo en linea";
69
  $l_online_time = "Tiempo en linea";
73
  $R_remaining_time = "Tiempo restante";
70
  $l_remaining_time = "Tiempo restante";
74
}
71
}
75
else if($Language == 'de'){
72
else if($Language == 'de'){
76
  $R_ChilliError	= "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
73
  $l_ChilliError	= "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
77
  $R_login		= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
74
  $l_login		= "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
78
  $R_logout		= "Beenden der Verbindung";
75
  $l_logout		= "Beenden der Verbindung";
79
  $R_loginfailed	= "Authentifizierungsfehler Eigenverbrauch";
76
  $l_loginfailed	= "Authentifizierungsfehler Eigenverbrauch";
80
  $R_loggingin		= "Kennzeichnung auf dem Eigenverbrauch";
77
  $l_loggingin		= "Kennzeichnung auf dem Eigenverbrauch";
81
  $R_loggedcont		= "Network Access Control";
78
  $l_loggedcont		= "Network Access Control";
82
  $R_loggedout		= "Ihre Sitzung ist geschlossen";
79
  $l_loggedout		= "Ihre Sitzung ist geschlossen";
83
  $R_user		= "Benutzer";
80
  $l_user		= "Benutzer";
84
  $R_password		= "Passwort";
81
  $l_password		= "Passwort";
85
  $R_wait		= "Bitte warten Sie einen Moment ...";
82
  $l_wait		= "Bitte warten Sie einen Moment ...";
86
  $R_onlinetime		= "Online-Zeit:";
83
  $l_onlinetime		= "Online-Zeit:";
87
  $R_remainingtime	= "Abmelden:";
84
  $l_remainingtime	= "Abmelden:";
88
  $R_encrypted		= "Die Öffnung muß der Anschluß Zahlen";
85
  $l_encrypted		= "Die Öffnung muß der Anschluß Zahlen";
89
  $R_boutonO		= "Authentifizierung";
86
  $l_boutonO		= "Authentifizierung";
90
  $R_boutonF		= "Schließen";
87
  $l_boutonF		= "Schließen";
91
  $R_loggedin_stringl1 = "Information System Security";
88
  $l_loggedin_stringl1 = "Information System Security";
92
  $R_loggedin_stringl2 = "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, der Zurechenbarkeit und der Nicht-Anerkennung der Verbindungen.";
89
  $l_loggedin_stringl2 = "Dieses Portal wurde eingerichtet, um ordnungsgemäß die Rückverfolgbarkeit, der Zurechenbarkeit und der Nicht-Anerkennung der Verbindungen.";
93
  $R_loggedin_stringl3 = "Ihre Tätigkeit im Netzwerk registriert ist nach Schutz der Privatsphäre.";
90
  $l_loggedin_stringl3 = "Ihre Tätigkeit im Netzwerk registriert ist nach Schutz der Privatsphäre.";
94
  $R_loggedin_stringl4 = "Die gespeicherten Daten nicht pouront genutzt werden, dass von einer Justizbehörde im Rahmen einer Untersuchung.";
91
  $l_loggedin_stringl4 = "Die gespeicherten Daten nicht pouront genutzt werden, dass von einer Justizbehörde im Rahmen einer Untersuchung.";
95
  $R_loggedin_stringl5 = "Diese Daten werden automatisch gelöscht nach einem Jahr.";
92
  $l_loggedin_stringl5 = "Diese Daten werden automatisch gelöscht nach einem Jahr.";
96
  $R_loggedin_stringl6 = "Click <a href=$alcasarpath>here</a> to change your password or to integrate the security certificate in your browser";
93
  $l_loggedin_stringl6 = "Click <a href='$alcasarpath'>here</a> to change your password or to integrate the security certificate in your browser";
97
  $R_loggedout_string = "Trennung des Portals erfolgt Gefangener!";
94
  $l_loggedout_string = "Trennung des Portals erfolgt Gefangener!";
98
  $R_reply_1 = "Your daily connexion time has been reached";
95
  $l_reply_1 = "Your daily connexion time has been reached";
99
  $R_reply_2 = "Your monthly connexion time has been reached";
96
  $l_reply_2 = "Your monthly connexion time has been reached";
100
  $R_reply_3 = "You try to connect outside of your allowed timespan";
97
  $l_reply_3 = "You try to connect outside of your allowed timespan";
101
  $R_reply_4 = "your account expired";
98
  $l_reply_4 = "your account expired";
102
  $R_reply_5 = "You have reached the maximum number of simultaneous logins";
99
  $l_reply_5 = "You have reached the maximum number of simultaneous logins";
103
  $R_online_time = "Online-zeit";
100
  $l_online_time = "Online-zeit";
104
  $R_remaining_time = "Restzeit";
101
  $l_remaining_time = "Restzeit";
105
 
102
 
106
}
103
}
107
else if($Language == 'nl'){
104
else if($Language == 'nl'){
108
  $R_ChilliError	= "De authenticatie moet een succes worden via de captive portal dienst.";
105
  $l_ChilliError	= "De authenticatie moet een succes worden via de captive portal dienst.";
109
  $R_login		= "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
106
  $l_login		= "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
110
  $R_logout		= "Slotkoers verbinding";
107
  $l_logout		= "Slotkoers verbinding";
111
  $R_loginfailed	= "Authenticatie mislukt";
108
  $l_loginfailed	= "Authenticatie mislukt";
112
  $R_loggingin		= "Identificatie van de captive-portaal";
109
  $l_loggingin		= "Identificatie van de captive-portaal";
113
  $R_loggedcont		= "Network Access Control";
110
  $l_loggedcont		= "Network Access Control";
114
  $R_loggedout		= "Uw sessie is gesloten";
111
  $l_loggedout		= "Uw sessie is gesloten";
115
  $R_user		= "Gebruiker";
112
  $l_user		= "Gebruiker";
116
  $R_password		= "Wachtwoord";
113
  $l_password		= "Wachtwoord";
117
  $R_wait		= "Wacht een moment ...";
114
  $l_wait		= "Wacht een moment ...";
118
  $R_onlinetime		= "Sluit tijd:";
115
  $l_onlinetime		= "Sluit tijd:";
119
  $R_remainingtime	= "Verbreking in:";
116
  $l_remainingtime	= "Verbreking in:";
120
  $R_encrypted		= "De opening moet gebruiken gecodeerde verbinding";
117
  $l_encrypted		= "De opening moet gebruiken gecodeerde verbinding";
121
  $R_boutonO		= "Authenticatie";
118
  $l_boutonO		= "Authenticatie";
122
  $R_boutonF		= "Sluiten";
119
  $l_boutonF		= "Sluiten";
123
  $R_loggedin_stringl1 = "Information System Security";
120
  $l_loggedin_stringl1 = "Information System Security";
124
  $R_loggedin_stringl2 = "Het portaal werd opgericht verordeningen om de traceerbaarheid, verantwoordelijkheid en onloochenbaarheid van de verbindingen.";
121
  $l_loggedin_stringl2 = "Het portaal werd opgericht verordeningen om de traceerbaarheid, verantwoordelijkheid en onloochenbaarheid van de verbindingen.";
125
  $R_loggedin_stringl3 = "Uw activiteit op het netwerk is geregistreerd in overeenstemming met de persoonlijke levenssfeer.";
122
  $l_loggedin_stringl3 = "Uw activiteit op het netwerk is geregistreerd in overeenstemming met de persoonlijke levenssfeer.";
126
  $R_loggedin_stringl4 = "De geregistreerde gegevens kunnen worden kunnen worden bediend door een rechterlijke instantie in de loop van een onderzoek.";
123
  $l_loggedin_stringl4 = "De geregistreerde gegevens kunnen worden kunnen worden bediend door een rechterlijke instantie in de loop van een onderzoek.";
127
  $R_loggedin_stringl5 = "Deze gegevens worden automatisch verwijderd na een jaar.";
124
  $l_loggedin_stringl5 = "Deze gegevens worden automatisch verwijderd na een jaar.";
128
  $R_loggedin_stringl6 = "Click <a href=$alcasarpath>here</a> to change your password or to integrate the security certificate in your browser";
125
  $l_loggedin_stringl6 = "Click <a href='$alcasarpath'>here</a> to change your password or to integrate the security certificate in your browser";
129
  $R_loggedout_string = "Logout gemaakt intern portaal!";
126
  $l_loggedout_string = "Logout gemaakt intern portaal!";
130
  $R_reply_1 = "Your daily connexion time has been reached";
127
  $l_reply_1 = "Your daily connexion time has been reached";
131
  $R_reply_2 = "Your monthly connexion time has been reached";
128
  $l_reply_2 = "Your monthly connexion time has been reached";
132
  $R_reply_3 = "You try to connect outside of your allowed timespan";
129
  $l_reply_3 = "You try to connect outside of your allowed timespan";
133
  $R_reply_4 = "your account expired";
130
  $l_reply_4 = "your account expired";
134
  $R_reply_5 = "You have reached the maximum number of simultaneous logins";
131
  $l_reply_5 = "You have reached the maximum number of simultaneous logins";
135
  $R_online_time = "Online tijd";
132
  $l_online_time = "Online tijd";
136
  $R_remaining_time = "Reterende tijd";
133
  $l_remaining_time = "Reterende tijd";
137
}
134
}
138
else if($Language == 'fr'){
135
else if($Language == 'fr'){
139
  $R_ChilliError	= "L'authentification doit &ecirc;tre r&eacute;ussie au travers du service du portail captif.";
136
  $l_ChilliError	= "L'authentification doit &ecirc;tre r&eacute;ussie au travers du service du portail captif.";
140
  $R_login		= "Authentification r&eacute;ussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
137
  $l_login		= "Authentification r&eacute;ussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
141
  $R_logout		= "Fermeture de la session";
138
  $l_logout		= "Fermeture de la session";
142
  $R_loginfailed	= "Echec d'authentification";
139
  $l_loginfailed	= "Echec d'authentification";
143
  $R_loggingin		= "Identification sur le portail captif";
140
  $l_loggingin		= "Identification sur le portail captif";
144
  $R_loggedcont		= "Contr&ocirc;le d'acc&egrave;s au r&eacute;seau";
141
  $l_loggedcont		= "Contr&ocirc;le d'acc&egrave;s au r&eacute;seau";
145
  $R_loggedout		= "Votre session est fermée";
142
  $l_loggedout		= "Votre session est fermée";
146
  $R_user		= "Identifiant";
143
  $l_user		= "Identifiant";
147
  $R_password		= "Mot de passe";
144
  $l_password		= "Mot de passe";
148
  $R_wait		= "Patientez un instant ...";
145
  $l_wait		= "Patientez un instant ...";
149
  $R_onlinetime		= "Temps de connexion:";
146
  $l_onlinetime		= "Temps de connexion:";
150
  $R_remainingtime	= "Deconnexion dans :";
147
  $l_remainingtime	= "Deconnexion dans :";
151
  $R_encrypted		= "La connexion avec le portail doit &ecirc;tre chiffr&eacute;e";
148
  $l_encrypted		= "La connexion avec le portail doit &ecirc;tre chiffr&eacute;e";
152
  $R_boutonO		= "Authentification";
149
  $l_boutonO		= "Authentification";
153
  $R_boutonF		= "Fermer";
150
  $l_boutonF		= "Fermer";
154
  $R_loggedin_stringl1 = "S&eacute;curit&eacute; des Syst&egrave;mes d'Information";
151
  $l_loggedin_stringl1 = "S&eacute;curit&eacute; des Syst&egrave;mes d'Information";
155
  $R_loggedin_stringl2 = "Ce contr&ocirc;le a &eacute;t&eacute; mis en place pour assurer r&eacute;glementairement la tra&ccedil;abilit&eacute;, l'imputabilit&eacute; et la non-r&eacute;pudiation des connexions.";
152
  $l_loggedin_stringl2 = "Ce contr&ocirc;le a &eacute;t&eacute; mis en place pour assurer r&eacute;glementairement la tra&ccedil;abilit&eacute;, l'imputabilit&eacute; et la non-r&eacute;pudiation des connexions.";
156
  $R_loggedin_stringl3 = "Votre activit&eacute; sur le r&eacute;seau est enregistr&eacute;e conform&eacute;ment au respect de la vie priv&eacute;e.";
153
  $l_loggedin_stringl3 = "Votre activit&eacute; sur le r&eacute;seau est enregistr&eacute;e conform&eacute;ment au respect de la vie priv&eacute;e.";
157
  $R_loggedin_stringl4 = "Les donn&eacute;es enregistr&eacute;es ne pourront &ecirc;tre exploit&eacute;es que par une autorit&eacute judiciaire dans le cadre d'une enqu&ecirc;te.";
154
  $l_loggedin_stringl4 = "Les donn&eacute;es enregistr&eacute;es ne pourront &ecirc;tre exploit&eacute;es que par une autorit&eacute judiciaire dans le cadre d'une enqu&ecirc;te.";
158
  $R_loggedin_stringl5 = "Ces donn&eacute;es seront automatiquement supprim&eacute;es au bout d'un an.";
155
  $l_loggedin_stringl5 = "Ces donn&eacute;es seront automatiquement supprim&eacute;es au bout d'un an.";
159
  $R_loggedin_stringl6 = "Cliquez <a href=$alcasarpath>ici</a> pour changer votre mot de passe ou pour intégrer le certificat de sécurité à votre navigateur";
156
  $l_loggedin_stringl6 = "Cliquez <a href='$alcasarpath'>ici</a> pour changer votre mot de passe ou pour intégrer le certificat de sécurité à votre navigateur";
160
  $R_loggedout_string = "D&eacute;connexion du portail captif effectu&eacute;e !";
157
  $l_loggedout_string = "D&eacute;connexion du portail captif effectu&eacute;e !";
161
  $R_reply_1 = "Votre dur&eacute;e de connexion journali&egrave;re a &eacute;t&eacute; atteinte";
158
  $l_reply_1 = "Votre dur&eacute;e de connexion journali&egrave;re a &eacute;t&eacute; atteinte";
162
  $R_reply_2 = "Votre dur&eacute;e de connexion mensuelle a &eacute;t&eacute; atteinte";
159
  $l_reply_2 = "Votre dur&eacute;e de connexion mensuelle a &eacute;t&eacute; atteinte";
163
  $R_reply_3 = "Vous tentez de vous connecter en dehors de votre p&eacute;riode autoris&eacute;e";
160
  $l_reply_3 = "Vous tentez de vous connecter en dehors de votre p&eacute;riode autoris&eacute;e";
164
  $R_reply_4 = "Votre compte a expir&eacute";
161
  $l_reply_4 = "Votre compte a expir&eacute";
165
  $R_reply_5 = "Vous avez atteint le nombre maximum de connexions simultan&eacute;es";
162
  $l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultan&eacute;es";
166
  $R_online_time = "Temps de connexion";
163
  $l_online_time = "Temps de connexion";
167
  $R_remaining_time = "Temps restant";
164
  $l_remaining_time = "Temps restant";
168
}
165
}
169
else{
166
else{
170
  $R_ChilliError	= "The authentication must be successful through the captive portal service.";
167
  $l_ChilliError	= "The authentication must be successful through the captive portal service.";
171
  $R_login		= "Successful authentication.<HR>Closing this window interrupts your session";
168
  $l_login		= "Successful authentication.<HR>Closing this window interrupts your session";
172
  $R_logout		= "Closing connection";
169
  $l_logout		= "Closing connection";
173
  $R_loginfailed	= "Authentication Failed";
170
  $l_loginfailed	= "Authentication Failed";
174
  $R_loggingin		= "Identification on the captive portal";
171
  $l_loggingin		= "Identification on the captive portal";
175
  $R_loggedcont		= "Network Access Control";
172
  $l_loggedcont		= "Network Access Control";
176
  $R_loggedout		= "Your session is closed";
173
  $l_loggedout		= "Your session is closed";
177
  $R_user		= "User";
174
  $l_user		= "User";
178
  $R_password		= "Password";
175
  $l_password		= "Password";
179
  $R_wait		= "Please wait a moment ...";
176
  $l_wait		= "Please wait a moment ...";
180
  $R_onlinetime		= "Connect time:";
177
  $l_onlinetime		= "Connect time:";
181
  $R_remainingtime	= "Disconnection in:";
178
  $l_remainingtime	= "Disconnection in:";
182
  $R_encrypted		= "The opening must use encrypted connection";
179
  $l_encrypted		= "The opening must use encrypted connection";
183
  $R_boutonO		= "Authentication";
180
  $l_boutonO		= "Authentication";
184
  $R_boutonF		= "Close";
181
  $l_boutonF		= "Close";
185
  $R_loggedin_stringl1 = "Information System Security";
182
  $l_loggedin_stringl1 = "Information System Security";
186
  $R_loggedin_stringl2 = "That control was set up regulations to ensure traceability, accountability and non-repudiation of connections.";
183
  $l_loggedin_stringl2 = "That control was set up regulations to ensure traceability, accountability and non-repudiation of connections.";
187
  $R_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy.";
184
  $l_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy.";
188
  $R_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation.";
185
  $l_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation.";
189
  $R_loggedin_stringl5 = "These data will be automatically deleted after one year.";
186
  $l_loggedin_stringl5 = "These data will be automatically deleted after one year.";
190
  $R_loggedin_stringl6 = "Click <a href=$alcasarpath>here</a> to change your password or to integrate the security certificate in your browser";
187
  $l_loggedin_stringl6 = "Click <a href='$alcasarpath'>here</a> to change your password or to integrate the security certificate in your browser";
191
  $R_loggedout_string = "Logout made captive portal!";
188
  $l_loggedout_string = "Logout made captive portal!";
192
  $R_reply_1 = "Your daily connexion time has been reached";
189
  $l_reply_1 = "Your daily connexion time has been reached";
193
  $R_reply_2 = "Your monthly connexion time has been reached";
190
  $l_reply_2 = "Your monthly connexion time has been reached";
194
  $R_reply_3 = "You try to connect outside of your allowed timespan";
191
  $l_reply_3 = "You try to connect outside of your allowed timespan";
195
  $R_reply_4 = "your account expired";
192
  $l_reply_4 = "your account expired";
196
  $R_reply_5 = "You have reached the maximum number of simultaneous logins";
193
  $l_reply_5 = "You have reached the maximum number of simultaneous logins";
197
  $R_online_time = "Online time";
194
  $l_online_time = "Online time";
198
  $R_remaining_time = "Remaining time";
195
  $l_remaining_time = "Remaining time";
199
}
196
}
200
 
-
 
201
# Make sure that the form parameters are clean
-
 
202
#$OK_CHARS='-a-zA-Z0-9_.@&=%!';
-
 
203
#$_ = $input = <STDIN>;
-
 
204
#s/[^$OK_CHARS]/_/go;
-
 
205
#$input = $_;
-
 
206
 
-
 
207
# Make sure that the get query parameters are clean
-
 
208
#$OK_CHARS='-a-zA-Z0-9_.@&=%!';
-
 
209
#$_ = $query=$ENV{QUERY_STRING};
-
 
210
#s/[^$OK_CHARS]/_/go;
-
 
211
#$query = $_;
-
 
212
 
197
 
213
# If https not use, tell it's wrong
198
# If https not use, tell it's wrong
214
if (!($_SERVER['HTTPS'] == 'on')) {
199
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
215
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
200
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
216
<html>
201
<html>
217
<head>
202
<head>
218
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
203
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
219
  <title>$R_loggedcont</title>
204
  <title>$l_loggedcont</title>
220
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
205
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
221
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
206
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
222
</head>
207
</head>
223
<body bgColor = 'white'>
208
<body bgColor = 'white'>
224
  <h1 style=\"text-align: center;\">$R_loginfailed</h1>
209
  <h1 style=\"text-align: center;\">$l_loginfailed</h1>
225
  <center>$R_encrypted</center>
210
  <center>$l_encrypted</center>
226
</body>
211
</body>
227
</html>";
212
</html>";
228
    exit(0);
213
    exit(0);
229
}
214
}
230
 
215
 
231
# Read form parameters which we care about
216
# Read form parameters which we care about
232
if (isset($_POST['UserName'])){	$username	= $_POST['UserName'];} else {$username="";}
217
if (isset($_POST['UserName'])){	$username	= $_POST['UserName'];} else {$username="";}
233
if (isset($_POST['Password'])){	$password	= $_POST['Password'];} else {$password="";}
218
if (isset($_POST['Password'])){	$password	= $_POST['Password'];} else {$password="";}
234
if (isset($_POST['challenge'])){$challenge	= $_POST['challenge'];} else {$challenge="";}
219
if (isset($_POST['challenge'])){$challenge	= $_POST['challenge'];} else {$challenge="";}
235
if (isset($_POST['button'])){	$button		= $_POST['button'];} else { $button="";}
220
if (isset($_POST['button'])){	$button		= $_POST['button'];} else { $button="";}
236
if (isset($_POST['logout'])){	$logout		= $_POST['logout'];} else {$logout="";}
221
//if (isset($_POST['logout'])){	$logout		= $_POST['logout'];} else {$logout="";}
237
if (isset($_POST['prelogin'])){	$prelogin	= $_POST['prelogin'];} else {$prelogin="";}
222
//if (isset($_POST['prelogin'])){	$prelogin	= $_POST['prelogin'];} else {$prelogin="";}
238
if (isset($_POST['res'])){	$res		= $_POST['res'];} else {$res="";}
223
if (isset($_POST['res'])){		$res		= $_POST['res'];} else {$res="";}
239
if (isset($_POST['uamip'])){	$uamip		= $_POST['uamip'];} else {$uamip="";}
224
if (isset($_POST['uamip'])){	$uamip		= $_POST['uamip'];} else {$uamip="";}
240
if (isset($_POST['uamport'])){	$uamport	= $_POST['uamport'];} else {$uamport="";}
225
if (isset($_POST['uamport'])){	$uamport	= $_POST['uamport'];} else {$uamport="";}
241
if (isset($_POST['userurl'])){	$userurl	= $_POST['userurl'];} else {$userurl="";}
226
if (isset($_POST['userurl'])){	$userurl	= $_POST['userurl'];} else {$userurl="";}
242
if (isset($_POST['timeleft'])){	$timeleft	= $_POST['timeleft'];} else {$timeleft="";}
227
if (isset($_POST['timeleft'])){	$timeleft	= $_POST['timeleft'];} else {$timeleft="";}
243
if (isset($_POST['redirurl'])){	$redirurl	= $_POST['redirurl'];} else {$redirurl="";}
228
if (isset($_POST['redirurl'])){	$redirurl	= $_POST['redirurl'];} else {$redirurl="";}
244
 
229
 
245
# Read query parameters which we care about
230
# Read query parameters which we care about
246
if (isset($_GET['res']))	$res		= $_GET['res'];
231
if (isset($_GET['res']))		$res		= $_GET['res'];
247
if (isset($_GET['challenge']))	$challenge	= $_GET['challenge'];
232
if (isset($_GET['challenge']))	$challenge	= $_GET['challenge'];
248
if (isset($_GET['uamip']))	$uamip		= $_GET['uamip'];
233
if (isset($_GET['uamip']))		$uamip		= $_GET['uamip'];
249
if (isset($_GET['uamport']))	$uamport	= $_GET['uamport'];
234
if (isset($_GET['uamport']))	$uamport	= $_GET['uamport'];
250
if (isset($_GET['reply'])){	$reply		= $_GET['reply'];} else {$reply="";}
235
if (isset($_GET['reply'])){		$reply		= $_GET['reply'];} else {$reply="";}
251
if (isset($_GET['userurl']))	$userurl	= $_GET['userurl'];
236
if (isset($_GET['userurl']))	$userurl	= $_GET['userurl'];
252
if (isset($_GET['timeleft']))	$timeleft	= $_GET['timeleft'];
237
if (isset($_GET['timeleft']))	$timeleft	= $_GET['timeleft'];
253
if (isset($_GET['redirurl']))	$redirurl	= $_GET['redirurl'];
238
if (isset($_GET['redirurl']))	$redirurl	= $_GET['redirurl'];
254
 
239
 
255
# translation of radius replies
240
# translation of radius replies
256
if (isset($reply)){
241
if (isset($reply)){
257
	switch(trim ($reply)) {
242
	switch(trim ($reply)) {
258
  case 'Your maximum daily usage time has been reached' : $reply = $R_reply_1 ; break;
243
  case 'Your maximum daily usage time has been reached' : $reply = $l_reply_1 ; break;
259
  case 'Your maximum monthly usage time has been reached' : $reply = $R_reply_2 ; break;
244
  case 'Your maximum monthly usage time has been reached' : $reply = $l_reply_2 ; break;
260
  case 'You are calling outside your allowed timespan' : $reply = $R_reply_3 ; break;
245
  case 'You are calling outside your allowed timespan' : $reply = $l_reply_3 ; break;
261
  case 'Password Has Expired' : $reply =  $R_reply_4 ; break;
246
  case 'Password Has Expired' : $reply =  $l_reply_4 ; break;
262
  case 'You are already logged in - access denied' : $reply = $R_reply_5 ; break;
247
  case 'You are already logged in - access denied' : $reply = $l_reply_5 ; break;
263
  }}
248
  }}
264
 
249
 
265
# If attempt to login
250
# If attempt to login
266
if ("$button" == "$R_boutonO") {
251
if ("$button" == "$l_boutonO") {
267
  $hexchal = pack ("H32", $challenge);
252
  $hexchal = pack ("H32", $challenge);
268
  $newchal = pack ("H*", md5($hexchal . $uamsecret));
253
  $newchal = pack ("H*", md5($hexchal . $uamsecret));
269
  $response = md5("\0" . $password . $newchal);
254
  $response = md5("\0" . $password . $newchal);
270
  $newpwd = pack("a32", $password);
255
  $newpwd = pack("a32", $password);
271
  $pappassword = implode ("", unpack("H32", ($newpwd ^ $newchal)));
256
  $pappassword = implode ("", unpack("H32", ($newpwd ^ $newchal)));
272
  echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
257
  echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
273
<html>
258
<html>
274
<head>
259
<head>
275
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
260
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
276
  <title>$R_loggingin</title>
261
  <title>$l_loggingin</title>
277
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
262
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
278
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
263
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
279
  <meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl\">
264
  <meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl\">
280
  </head>
265
  </head>
281
<body bgColor = 'white'>
266
<body bgColor = 'white'>
282
<h1 style=\"text-align: center;\">$R_loggingin</h1>
267
<h1 style=\"text-align: center;\">$l_loggingin</h1>
283
  <center>
268
  <center>
284
    $R_wait
269
    $l_wait
285
  </center>
270
  </center>
286
</body>
271
</body>
287
</html>";
272
</html>";
288
    exit(0);
273
    exit(0);
289
}
274
}
Line 292... Line 277...
292
  case 'success':     $result =  1; break; // If login successful
277
  case 'success':     $result =  1; break; // If login successful
293
  case 'failed':      $result =  2; break; // If login failed
278
  case 'failed':      $result =  2; break; // If login failed
294
  case 'logoff':      $result =  3; break; // If logout successful
279
  case 'logoff':      $result =  3; break; // If logout successful
295
  case 'already':     $result =  4; break; // If tried to login while already logged in
280
  case 'already':     $result =  4; break; // If tried to login while already logged in
296
  case 'notyet':      $result =  5; break; // If not logged in yet
281
  case 'notyet':      $result =  5; break; // If not logged in yet
297
  case 'smartclient': $result =  6; break; // If login from smart client
-
 
298
  case 'popup1':      $result = 11; break; // If requested a logging in pop up window
-
 
299
  case 'popup2':      $result = 12; break; // If requested a success pop up window
-
 
300
  case 'popup3':      $result = 13; break; // If requested a logout pop up window
-
 
301
  default: $result = 0; // Default: It was not a form request
282
  default: $result = 0; // Default: It was not a form request -> client go to login form
302
}
283
}
303
 
284
 
304
# Otherwise it was not a form request
285
# Otherwise it was not a form request
305
# Send out an error message
286
# Send out an error message
306
if ($result == 0) {	//erreur
287
if ($result == 0) {	//erreur
307
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
288
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
308
<html>
289
<html>
309
<head>
290
<head>
310
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
291
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
311
  <title>$R_loginfailed</title>
292
  <title>$l_loggingin</title>
312
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
293
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
313
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
294
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
-
 
295
  <meta http-equiv=\"refresh\" content=\"0;url=http://$uamip:$uamport/prelogin\">
314
</head>
296
  </head>
315
<body bgColor = 'white'>
297
<body bgColor = 'white'>
316
  <h1 style=\"text-align: center;\">$R_loginfailed</h1>
298
<h1 style=\"text-align: center;\">$l_loggingin</h1>
317
  <center>
299
  <center>
318
    $R_ChilliError
300
    $l_wait
319
  </center>
301
  </center>
320
</body>
302
</body>
321
</html>";
303
</html>";
322
    exit(0);
304
    exit(0);
323
}
305
}
Line 325... Line 307...
325
# Generate the output
307
# Generate the output
326
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
308
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
327
<html>
309
<html>
328
<head>
310
<head>
329
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
311
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
330
  <title>$R_loggingin</title>
312
  <title>$l_loggingin</title>
331
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
313
  <meta http-equiv=\"Cache-control\" content=\"no-cache\">
332
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
314
  <meta http-equiv=\"Pragma\" content=\"no-cache\">
333
  <script type=\"text/javascript\" language=\"JavaScript\">
315
  <script type=\"text/javascript\" language=\"JavaScript\">
334
    var blur = 0; // not un use
316
    var blur = 0; // not un use
335
	var mytimeleft = 0; // not un use
317
	var mytimeleft = 0; // not un use
336
	alcasar_popup = null;
318
	alcasar_popup = null;
337
	
319
 
338
    function popUp(URL) {
320
    function popUp(URL) {
339
      if (self.name != \"alcasar_popup\") {
321
      if (self.name != \"alcasar_popup\") {
340
        alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=400,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no');
322
        alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=400,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no');
341
      }
323
      }
342
    }
324
    }
343
 
325
 
344
    function doOnLoad(result, userurl, redirurl, timeleft) {    
326
    function doOnLoad(result, userurl, redirurl, adminurl, timeleft) {
345
      if (timeleft) { // not in use
327
	    if (timeleft) { // not in use
346
        mytimeleft = timeleft;
328
        mytimeleft = timeleft;
347
      }
329
      }
348
      if (result == 1) {	//success
330
      if ((result == 1)||(reslut == 4)) {	//success or already
349
	      //window.location = userurl;
331
	      //window.location = userurl;
350
		  if (alcasar_popup != null) alcasar_popup.focus();
332
		  if (alcasar_popup != null) alcasar_popup.focus();
351
		  ";
333
		  
-
 
334
		  if (adminurl != ''){
352
if ($adminurl) { echo "window.location = \"$adminurl\";";}
335
			  window.location = adminurl;
-
 
336
		  } else if (redirurl != '') {
353
else if	($redirurl) { echo "window.location = \"$redirurl\";";}
337
			  window.location = redirurl;
-
 
338
		  } else if (userurl != '') {
354
else if ($userurl) { echo "window.location = \"$userurl\";";}
339
			  window.location = userurl;
-
 
340
		  } else {
355
else echo "window.home();";
341
			  window.home();
356
        echo "
342
		  }
357
      }
343
      }
358
      if ((result == 2) || (result == 3) || result == 5) { //failed or logoff or notyet
344
      if ((result == 2) || (result == 3) || result == 5) { //failed or logoff or notyet
359
		if (alcasar_popup != null) alcasar_popup.close();
345
		if (alcasar_popup != null) alcasar_popup.close();
360
		document.form1.UserName.focus();
346
			document.form1.UserName.focus();
361
      }
347
      }
362
    }
348
    }
363
  </script>
349
  </script>
364
<link rel=\"stylesheet\" href=\"/css/style_intercept.css\" type=\"text/css\">
350
<link rel=\"stylesheet\" href=\"/css/style_intercept.css\" type=\"text/css\">
365
</head>
351
</head>
366
<body onLoad=\"javascript:doOnLoad($result,'$userurl','$redirurl','$timeleft')\">
352
<body onLoad=\"javascript:doOnLoad($result,'$userurl','$redirurl','$adminurl','$timeleft')\">
367
  <center>";
353
  <center>";
368
#Modifications par stephane ERARD le 30 11 2010
-
 
369
#Modifications par steweb57 le 06 02 2011
-
 
370
if ($debug){
-
 
371
# begin debugging
-
 
372
	print "<center>THE INPUT by GET method (for debugging):<br>";
-
 
373
	foreach ($_GET as $key => $value) {
-
 
374
		print $key . "=" . $value . "<br>";
-
 
375
	}
-
 
376
	print "<br>";
-
 
377
	print "<center>THE INPUT by POST method (for debugging):<br>";
-
 
378
	foreach ($_POST as $key => $value) {
-
 
379
		print $key . "=" . $value . "<br>";
-
 
380
	}
-
 
381
	print "<br></center>";
-
 
382
# end debugging
-
 
383
}
-
 
384
 
354
 
385
if ($result == 2) { //failed
-
 
386
    echo "
-
 
387
	<DIV id=\"logon\">
-
 
388
	<h2>$R_loginfailed</h2>";
-
 
389
    if ($reply) {
-
 
390
#traitement du reply ...
-
 
391
    echo "<center> $reply </BR></BR></center>";
-
 
392
    }
-
 
393
}
-
 
394
 
-
 
395
if ($result == 3 || $result == 5) { //logoff or notyet
-
 
396
    echo "
-
 
397
	<DIV id=\"logon\">
-
 
398
	<h1>$organisme</h1>
-
 
399
	<h2>$R_loggedcont</h2>";
-
 
400
}
-
 
401
  
-
 
402
if ($result == 2 || $result == 3 || $result == 5) { //failed or logoff or notyet
355
if ($result == 2 || $result == 3 || $result == 5) { //failed or logoff or notyet
403
  echo "
356
  echo "
-
 
357
	<div id=\"logon\">
-
 
358
	<h1>$organisme</h1>
-
 
359
	<h2>$l_loggedcont</h2>";
-
 
360
	if ($result == 2) { //failed
-
 
361
		echo "	
-
 
362
		<h3>$l_loginfailed</h3>";
-
 
363
		if ($reply) {
-
 
364
		#traitement du reply ...
-
 
365
		echo "<center> $reply <br /><br /></center>";
-
 
366
		}
-
 
367
	}
-
 
368
	echo "
404
	<IMG id=\"logo-alcasar\" src=\"/images/logo-alcasar.png\">
369
	<img id=\"logo-alcasar\" src=\"/images/logo-alcasar.png\">
405
	<form name=\"form1\" method=\"post\" action=\"$loginpath\">
370
	<form name=\"form1\" method=\"post\" action=\"$loginpath\">
406
	<input type=\"hidden\" name=\"challenge\" value=\"$challenge\">
371
	<input type=\"hidden\" name=\"challenge\" value=\"$challenge\">
407
	<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
372
	<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
408
	<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
373
	<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
409
	<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
374
	<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
410
		<TABLE id=\"boite-logon\">
375
		<table id=\"boite-logon\">
411
			<TR>
376
			<tr>
412
				<TD width=\"20%\" rowspan=\"3\"><IMG id=\"logo-organ\" src=\"/images/organisme.png\"></TD>
377
				<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
413
				<TD width=\"30%\" align=\"right\">$R_user</TD>
378
				<td width=\"30%\" align=\"right\">$l_user</td>
414
				<TD width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\"></TD>
379
				<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\"></td>
415
			</TR>
380
			</tr>
416
			<TR>
381
			<tr>
417
				<TD align=\"right\">$R_password</TD>
382
				<td align=\"right\">$l_password</td>
418
				<TD align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\"></TD>
383
				<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\"></td>
419
			</TR>
384
			</tr>
420
			<TR>
385
			<tr>
421
				<TD height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$R_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></TD>
386
				<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
422
			</TR>
387
			</tr>
423
		</TABLE>
388
		</table>
424
		<TABLE id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
389
		<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
425
			<TR>
390
			<tr>
426
				<TD align=\"center\"><FONT color=\"red\"><B>$R_loggedin_stringl1</B></FONT></TD>
391
				<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
427
			</TR>
392
			</tr>
428
			<TR>
393
			<tr>
429
				<TD align=\"left\">
394
				<td align=\"left\">
430
					<UL>
395
					<ul>
431
						<LI>$R_loggedin_stringl2</LI>
396
						<LI>$l_loggedin_stringl2</LI>
432
						<LI>$R_loggedin_stringl4</LI>
397
						<LI>$l_loggedin_stringl4</LI>
433
						<LI>$R_loggedin_stringl3</LI> 
398
						<LI>$l_loggedin_stringl3</LI>
434
						<LI>$R_loggedin_stringl5</LI>
399
						<LI>$l_loggedin_stringl5</LI>
435
						<LI>$R_loggedin_stringl6</LI>
400
						<LI>$l_loggedin_stringl6</LI>
436
					</UL>
401
					</ul>
437
				</TD>
402
				</td>
438
			</TR>
403
			</tr>
439
		</TABLE>
404
		</table>
440
	
-
 
441
  </center>
-
 
442
  </form>
405
  </form>
443
  </DIV>
406
  </div>
444
</body>
-
 
445
</html>";
-
 
446
}
-
 
447
#Fin des modifications
-
 
448
if ($result == 1) { //sucess
-
 
449
  echo "
-
 
450
  <table id=\"auth_reussi\">
-
 
451
  <tr>
-
 
452
  <td>
-
 
453
  <img height=\"150\" src=\"/images/logo-alcasar.png\">
-
 
454
  </td>
-
 
455
  <td>
-
 
456
  <p class=\"text_auth\">$R_login</p>
-
 
457
  </td>
-
 
458
  </tr>
-
 
459
  <tr>
-
 
460
  <td></td>
-
 
461
  <td>";
-
 
462
  if ($reply) { 
-
 
463
 ## traitement reply
-
 
464
     echo "$reply</br></br>";
-
 
465
  }
-
 
466
  echo "
-
 
467
  <a href=\"http://$uamip:$uamport/logoff\">$R_logout</a>
-
 
468
  </td>
-
 
469
  </tr>
407
  </center>
470
  </table>
-
 
471
</body>
-
 
472
</html>";
-
 
473
}
-
 
474
if ($result == 11) { //popup 1 (login)
-
 
475
  echo "
-
 
476
  <h2 style=\"text-align: center;\">$R_loggingin</h2>
-
 
477
  <center>$R_wait</center>
-
 
478
</body>
408
</body>
479
</html>";
409
</html>";
480
}
410
}
481
exit(0);
411
exit(0);
482
?>
412
?>