Line 8... |
Line 8... |
8 |
# The contents of this file may be used under the terms of the GNU
|
8 |
# 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
|
9 |
# General Public License Version 2, provided that the above copyright
|
10 |
# notice and this permission notice is included in all copies or
|
10 |
# notice and this permission notice is included in all copies or
|
11 |
# substantial portions of the software.
|
11 |
# substantial portions of the software.
|
12 |
|
12 |
|
13 |
$organisme = "rexy";
|
13 |
$organisme = "etrs-ssic";
|
14 |
# Redirects from CoovaChilli (chilli daemon) :
|
14 |
# Redirects from CoovaChilli (chilli daemon) :
|
15 |
# Response to login:
|
15 |
# Response to login:
|
16 |
# success : if login successful
|
16 |
# success : if login successful
|
17 |
# failed : if login failed
|
17 |
# failed : if login failed
|
18 |
# logoff : if logout successful
|
18 |
# logoff : if logout successful
|
Line 23... |
Line 23... |
23 |
# popup2 : if requested a success pop up window
|
23 |
# popup2 : if requested a success pop up window
|
24 |
# popup3 : if requested a logout pop up window
|
24 |
# popup3 : if requested a logout pop up window
|
25 |
# Default : it was not a form request
|
25 |
# Default : it was not a form request
|
26 |
|
26 |
|
27 |
# Shared secret used to encrypt challenge with radius.
|
27 |
# Shared secret used to encrypt challenge with radius.
|
28 |
$uamsecret = "sfk5D8Yn";
|
28 |
$uamsecret = "UoDkYv7b";
|
29 |
|
29 |
|
30 |
# URL loaded after success authenticates (let blank for browser defaults)
|
30 |
# URL loaded after success authenticates (let blank for browser defaults)
|
31 |
$adminurl = "";
|
31 |
$adminurl = "";
|
32 |
|
32 |
|
33 |
# Our own path
|
33 |
# Our own path
|
34 |
$loginpath = $_SERVER['PHP_SELF'];
|
34 |
$loginpath = $_SERVER['PHP_SELF'];
|
35 |
|
35 |
|
36 |
# Choice of language
|
36 |
# Choice of language
|
37 |
$Language = 'fr';
|
37 |
$Language = 'en';
|
38 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
38 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
39 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
39 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
40 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
40 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
41 |
if($Language == 'es'){
|
41 |
if($Language == 'es'){
|
42 |
$R_ChilliError = "La autenticación debe ser un éxito a través del servicio de portal cautivo.";
|
42 |
$R_ChilliError = "La autenticación debe ser un éxito a través del servicio de portal cautivo.";
|
43 |
$R_login = "El éxito de la autenticación. <BR> La conexión de red está funcionando. <br> Haga clic en Sí para cerrar la conexión a cerrar la sesión!";
|
43 |
$R_login = "El éxito de la autenticación.<HR>Cierre esta ventana interrumpte la sesion.";
|
44 |
$R_logout = "Conexión de cierre";
|
44 |
$R_logout = "Conexión de cierre";
|
45 |
$R_loginfailed = "Error de autenticación";
|
45 |
$R_loginfailed = "Error de autenticación";
|
46 |
$R_loggingin = "Identificación en el portal cautivo";
|
46 |
$R_loggingin = "Identificación en el portal cautivo";
|
47 |
$R_loggedcont = "Red de Control de Acceso";
|
47 |
$R_loggedcont = "Red de Control de Acceso";
|
48 |
$R_loggedout = "Su sesión se cierra";
|
48 |
$R_loggedout = "Su sesión se cierra";
|
49 |
$R_user = "Usuario";
|
49 |
$R_user = "Usuario";
|
50 |
$R_password = "Contraseña";
|
50 |
$R_password = "Contraseña";
|
51 |
$R_passwordchg = "Cambie su contraseña";
|
51 |
$R_passwordchg = "Cambie su contraseña";
|
52 |
$R_wait = "Por favor, espere un momento ...";
|
52 |
$R_wait = "Por favor, espere un momento ...";
|
53 |
$R_onlinetime = "Tiempo de conexión:";
|
53 |
$R_onlinetime = "Tiempo de conexión:";
|
54 |
$R_remainingtime = "Desconexión en:";
|
54 |
$R_remainingtime = "Desconexión en:";
|
55 |
$R_encrypted = "La apertura debe usar conexión cifrada";
|
55 |
$R_encrypted = "La apertura debe usar conexión cifrada";
|
56 |
$R_boutonO = "Autenticación";
|
56 |
$R_boutonO = "Autenticación";
|
57 |
$R_boutonF = "Cerrar";
|
57 |
$R_boutonF = "Cerrar";
|
Line 65... |
Line 65... |
65 |
$R_reply_1 = "Your daily connexion time has been reached";
|
65 |
$R_reply_1 = "Your daily connexion time has been reached";
|
66 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
66 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
67 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
67 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
68 |
$R_reply_4 = "your account expired";
|
68 |
$R_reply_4 = "your account expired";
|
69 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
69 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
70 |
$R_ca_1 = "How integrate the ALCASAR C.A";
|
70 |
$R_ca_1 = "How integrate the ALCASAR";
|
71 |
$R_ca_2 = "certificate";
|
71 |
$R_ca_2 = "certificate";
|
72 |
$R_ca_3 = "in your web browser?";
|
72 |
$R_ca_3 = "in your web browser?";
|
73 |
$R_ca_4 = "<help>";
|
73 |
$R_ca_4 = "-help-";
|
- |
|
74 |
$R_online_time = "Tiempo en linea";
|
- |
|
75 |
$R_remaining_time = "Tiempo restante";
|
74 |
}
|
76 |
}
|
75 |
else if($Language == 'de'){
|
77 |
else if($Language == 'de'){
|
76 |
$R_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
|
78 |
$R_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
|
77 |
$R_login = "Erfolgreiche Authentifizierung. <BR> Die Verbindung zum Netzwerk erfolgt. <br> Klicken Sie auf 'Beenden der Verbindung, um Ihre Tagung!";
|
79 |
$R_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
|
78 |
$R_logout = "Beenden der Verbindung";
|
80 |
$R_logout = "Beenden der Verbindung";
|
79 |
$R_loginfailed = "Authentifizierungsfehler Eigenverbrauch";
|
81 |
$R_loginfailed = "Authentifizierungsfehler Eigenverbrauch";
|
80 |
$R_loggingin = "Kennzeichnung auf dem Eigenverbrauch";
|
82 |
$R_loggingin = "Kennzeichnung auf dem Eigenverbrauch";
|
81 |
$R_loggedcont = "Network Access Control";
|
83 |
$R_loggedcont = "Network Access Control";
|
82 |
$R_loggedout = "Ihre Sitzung ist geschlossen";
|
84 |
$R_loggedout = "Ihre Sitzung ist geschlossen";
|
83 |
$R_user = "Benutzer";
|
85 |
$R_user = "Benutzer";
|
84 |
$R_password = "Passwort";
|
86 |
$R_password = "Passwort";
|
85 |
$R_passwordchg = "Passwort ändern";
|
87 |
$R_passwordchg = "Passwort ändern";
|
86 |
$R_wait = "Bitte warten Sie einen Moment ...";
|
88 |
$R_wait = "Bitte warten Sie einen Moment ...";
|
87 |
$R_onlinetime = "Online-Zeit:";
|
89 |
$R_onlinetime = "Online-Zeit:";
|
88 |
$R_remainingtime = "Abmelden:";
|
90 |
$R_remainingtime = "Abmelden:";
|
89 |
$R_encrypted = "Die Öffnung muß der Anschluß Zahlen";
|
91 |
$R_encrypted = "Die Öffnung muß der Anschluß Zahlen";
|
90 |
$R_boutonO = "Authentifizierung";
|
92 |
$R_boutonO = "Authentifizierung";
|
91 |
$R_boutonF = "Schließen";
|
93 |
$R_boutonF = "Schließen";
|
Line 99... |
Line 101... |
99 |
$R_reply_1 = "Your daily connexion time has been reached";
|
101 |
$R_reply_1 = "Your daily connexion time has been reached";
|
100 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
102 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
101 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
103 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
102 |
$R_reply_4 = "your account expired";
|
104 |
$R_reply_4 = "your account expired";
|
103 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
105 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
104 |
$R_ca_1 = "How integrate the ALCASAR C.A";
|
106 |
$R_ca_1 = "How integrate the ALCASAR";
|
105 |
$R_ca_2 = "certificate";
|
107 |
$R_ca_2 = "certificate";
|
106 |
$R_ca_3 = "in your web browser?";
|
108 |
$R_ca_3 = "in your web browser?";
|
107 |
$R_ca_4 = "<help>";
|
109 |
$R_ca_4 = "-help-";
|
- |
|
110 |
$R_online_time = "Online-zeit";
|
- |
|
111 |
$R_remaining_time = "Restzeit";
|
- |
|
112 |
|
108 |
}
|
113 |
}
|
109 |
else if($Language == 'nl'){
|
114 |
else if($Language == 'nl'){
|
110 |
$R_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
|
115 |
$R_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
|
111 |
$R_login = "Succesvolle authenticatie. <BR> De netwerkverbinding werkt. <br> Klikt u op de afsluiting van de verbinding af te sluiten uw sessie!";
|
116 |
$R_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
|
112 |
$R_logout = "Slotkoers verbinding";
|
117 |
$R_logout = "Slotkoers verbinding";
|
113 |
$R_loginfailed = "Authenticatie mislukt";
|
118 |
$R_loginfailed = "Authenticatie mislukt";
|
114 |
$R_loggingin = "Identificatie van de captive-portaal";
|
119 |
$R_loggingin = "Identificatie van de captive-portaal";
|
115 |
$R_loggedcont = "Network Access Control";
|
120 |
$R_loggedcont = "Network Access Control";
|
116 |
$R_loggedout = "Uw sessie is gesloten";
|
121 |
$R_loggedout = "Uw sessie is gesloten";
|
117 |
$R_user = "Gebruiker";
|
122 |
$R_user = "Gebruiker";
|
118 |
$R_password = "Wachtwoord";
|
123 |
$R_password = "Wachtwoord";
|
119 |
$R_passwordchg = "Wijzig uw wachtwoord";
|
124 |
$R_passwordchg = "Wijzig uw wachtwoord";
|
120 |
$R_wait = "Wacht een moment ...";
|
125 |
$R_wait = "Wacht een moment ...";
|
121 |
$R_onlinetime = "Sluit tijd:";
|
126 |
$R_onlinetime = "Sluit tijd:";
|
122 |
$R_remainingtime = "Verbreking in:";
|
127 |
$R_remainingtime = "Verbreking in:";
|
123 |
$R_encrypted = "De opening moet gebruiken gecodeerde verbinding";
|
128 |
$R_encrypted = "De opening moet gebruiken gecodeerde verbinding";
|
124 |
$R_boutonO = "Authenticatie";
|
129 |
$R_boutonO = "Authenticatie";
|
125 |
$R_boutonF = "Sluiten";
|
130 |
$R_boutonF = "Sluiten";
|
Line 133... |
Line 138... |
133 |
$R_reply_1 = "Your daily connexion time has been reached";
|
138 |
$R_reply_1 = "Your daily connexion time has been reached";
|
134 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
139 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
135 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
140 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
136 |
$R_reply_4 = "your account expired";
|
141 |
$R_reply_4 = "your account expired";
|
137 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
142 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
138 |
$R_ca_1 = "How integrate the ALCASAR C.A";
|
143 |
$R_ca_1 = "How integrate the ALCASAR";
|
139 |
$R_ca_2 = "certificate";
|
144 |
$R_ca_2 = "certificate";
|
140 |
$R_ca_3 = "in your web browser?";
|
145 |
$R_ca_3 = "in your web browser?";
|
141 |
$R_ca_4 = "<help>";
|
- |
|
142 |
}
|
- |
|
143 |
else if($Language == 'en'){
|
- |
|
144 |
$R_ChilliError = "The authentication must be successful through the captive portal service.";
|
- |
|
145 |
$R_login = "Successful authentication. <BR> The network connection is working. <br> Remember to click Close the connection to close your session!";
|
- |
|
146 |
$R_logout = "Closing connection";
|
- |
|
147 |
$R_loginfailed = "Authentication Failed";
|
- |
|
148 |
$R_loggingin = "Identification on the captive portal";
|
- |
|
149 |
$R_loggedcont = "Network Access Control";
|
- |
|
150 |
$R_loggedout = "Your session is closed";
|
- |
|
151 |
$R_user = "User";
|
- |
|
152 |
$R_password = "Password";
|
- |
|
153 |
$R_passwordchg = "Change your password";
|
- |
|
154 |
$R_wait = "Please wait a moment ...";
|
- |
|
155 |
$R_onlinetime = "Connect time:";
|
- |
|
156 |
$R_remainingtime = "Disconnection in:";
|
- |
|
157 |
$R_encrypted = "The opening must use encrypted connection";
|
- |
|
158 |
$R_boutonO = "Authentication";
|
- |
|
159 |
$R_boutonF = "Close";
|
- |
|
160 |
$R_loggedin_stringl0 = "Information System Security";
|
- |
|
161 |
$R_loggedin_stringl1 = "Welcome on captive portal ALCASAR";
|
- |
|
162 |
$R_loggedin_stringl2 = "The portal was set up regulations to ensure traceability, accountability and non-repudiation of connections.";
|
- |
|
163 |
$R_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy.";
|
- |
|
164 |
$R_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation.";
|
- |
|
165 |
$R_loggedin_stringl5 = "These data will be automatically deleted after one year.";
|
- |
|
166 |
$R_loggedout_string = "Logout made captive portal!";
|
- |
|
167 |
$R_reply_1 = "Your daily connexion time has been reached";
|
- |
|
168 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
- |
|
169 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
- |
|
170 |
$R_reply_4 = "your account expired";
|
- |
|
171 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
- |
|
172 |
$R_ca_1 = "Integrate the ALCASAR C.A";
|
- |
|
173 |
$R_ca_2 = "certificate";
|
- |
|
174 |
$R_ca_3 = "in your web browser";
|
- |
|
175 |
$R_ca_4 = "-help-";
|
146 |
$R_ca_4 = "-help-";
|
- |
|
147 |
$R_online_time = "Online tijd";
|
- |
|
148 |
$R_remaining_time = "Reterende tijd";
|
176 |
}
|
149 |
}
|
177 |
else{
|
150 |
else if($Language == 'fr'){
|
178 |
$R_ChilliError = "L'authentification doit être réussie au travers du service du portail captif.";
|
151 |
$R_ChilliError = "L'authentification doit être réussie au travers du service du portail captif.";
|
179 |
$R_login = "Authentification réussie.<BR>La connexion au réseau est effective.<br>N'oubliez pas de cliquer sur Fermeture de la connexion pour fermer votre session !";
|
152 |
$R_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
|
180 |
$R_logout = "Fermeture de la connexion";
|
153 |
$R_logout = "Fermeture de la session";
|
181 |
$R_loginfailed = "Echec d'authentification";
|
154 |
$R_loginfailed = "Echec d'authentification";
|
182 |
$R_loggingin = "Identification sur le portail captif";
|
155 |
$R_loggingin = "Identification sur le portail captif";
|
183 |
$R_loggedcont = "Contrôle d'accès au réseau";
|
156 |
$R_loggedcont = "Contrôle d'accès au réseau";
|
184 |
$R_loggedout = "Votre session est fermée";
|
157 |
$R_loggedout = "Votre session est fermée";
|
185 |
$R_user = "Identifiant";
|
158 |
$R_user = "Identifiant";
|
186 |
$R_password = "Mot de passe";
|
159 |
$R_password = "Mot de passe";
|
187 |
$R_passwordchg = "Modifier son mot de passe";
|
160 |
$R_passwordchg = "Modifier son mot de passe";
|
188 |
$R_wait = "Patientez un instant ...";
|
161 |
$R_wait = "Patientez un instant ...";
|
189 |
$R_onlinetime = "Temps de connexion:";
|
162 |
$R_onlinetime = "Temps de connexion:";
|
190 |
$R_remainingtime = "Deconnexion dans :";
|
163 |
$R_remainingtime = "Deconnexion dans :";
|
191 |
$R_encrypted = "La connexion avec le portail doit être chiffrée";
|
164 |
$R_encrypted = "La connexion avec le portail doit être chiffrée";
|
192 |
$R_boutonO = "Authentification";
|
165 |
$R_boutonO = "Authentification";
|
193 |
$R_boutonF = "Fermer";
|
166 |
$R_boutonF = "Fermer";
|
Line 203... |
Line 176... |
203 |
$R_reply_3 = "Vous tentez de vous connecter en dehors de votre période autorisée";
|
176 |
$R_reply_3 = "Vous tentez de vous connecter en dehors de votre période autorisée";
|
204 |
$R_reply_4 = "Votre compte a expiré";
|
177 |
$R_reply_4 = "Votre compte a expiré";
|
205 |
$R_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
178 |
$R_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
206 |
$R_ca_1 = "Intégrer le ";
|
179 |
$R_ca_1 = "Intégrer le ";
|
207 |
$R_ca_2 = "certificat";
|
180 |
$R_ca_2 = "certificat";
|
208 |
$R_ca_3 = "de l'A.C d'ALCASAR dans votre navigateur web";
|
181 |
$R_ca_3 = "d'ALCASAR dans votre navigateur WEB";
|
209 |
$R_ca_4 = "-aide-";
|
182 |
$R_ca_4 = "-aide-";
|
- |
|
183 |
$R_online_time = "Temps de connexion";
|
- |
|
184 |
$R_remaining_time = "Temps restant";
|
- |
|
185 |
}
|
- |
|
186 |
else{
|
- |
|
187 |
$R_ChilliError = "The authentication must be successful through the captive portal service.";
|
- |
|
188 |
$R_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
- |
|
189 |
$R_logout = "Closing connection";
|
- |
|
190 |
$R_loginfailed = "Authentication Failed";
|
- |
|
191 |
$R_loggingin = "Identification on the captive portal";
|
- |
|
192 |
$R_loggedcont = "Network Access Control";
|
- |
|
193 |
$R_loggedout = "Your session is closed";
|
- |
|
194 |
$R_user = "User";
|
- |
|
195 |
$R_password = "Password";
|
- |
|
196 |
$R_passwordchg = "Change your password";
|
- |
|
197 |
$R_wait = "Please wait a moment ...";
|
- |
|
198 |
$R_onlinetime = "Connect time:";
|
- |
|
199 |
$R_remainingtime = "Disconnection in:";
|
- |
|
200 |
$R_encrypted = "The opening must use encrypted connection";
|
- |
|
201 |
$R_boutonO = "Authentication";
|
- |
|
202 |
$R_boutonF = "Close";
|
- |
|
203 |
$R_loggedin_stringl0 = "Information System Security";
|
- |
|
204 |
$R_loggedin_stringl1 = "Welcome on captive portal ALCASAR";
|
- |
|
205 |
$R_loggedin_stringl2 = "The portal was set up regulations to ensure traceability, accountability and non-repudiation of connections.";
|
- |
|
206 |
$R_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy.";
|
- |
|
207 |
$R_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation.";
|
- |
|
208 |
$R_loggedin_stringl5 = "These data will be automatically deleted after one year.";
|
- |
|
209 |
$R_loggedout_string = "Logout made captive portal!";
|
- |
|
210 |
$R_reply_1 = "Your daily connexion time has been reached";
|
- |
|
211 |
$R_reply_2 = "Your monthly connexion time has been reached";
|
- |
|
212 |
$R_reply_3 = "You try to connect outside of your allowed timespan";
|
- |
|
213 |
$R_reply_4 = "your account expired";
|
- |
|
214 |
$R_reply_5 = "You have reached the maximum number of simultaneous logins";
|
- |
|
215 |
$R_ca_1 = "Integrate the ALCASAR";
|
- |
|
216 |
$R_ca_2 = "certificate";
|
- |
|
217 |
$R_ca_3 = "in your web browser";
|
- |
|
218 |
$R_ca_4 = "-help-";
|
- |
|
219 |
$R_online_time = "Online time";
|
- |
|
220 |
$R_remaining_time = "Remaining time";
|
210 |
}
|
221 |
}
|
211 |
|
222 |
|
212 |
# Make sure that the form parameters are clean
|
223 |
# Make sure that the form parameters are clean
|
213 |
#$OK_CHARS='-a-zA-Z0-9_.@&=%!';
|
224 |
#$OK_CHARS='-a-zA-Z0-9_.@&=%!';
|
214 |
#$_ = $input = <STDIN>;
|
225 |
#$_ = $input = <STDIN>;
|
Line 363... |
Line 374... |
363 |
mins = (time - (time % 60)) / 60;
|
374 |
mins = (time - (time % 60)) / 60;
|
364 |
secs = time - (mins * 60);
|
375 |
secs = time - (mins * 60);
|
365 |
if (hours < 10) hours = \"0\" + hours;
|
376 |
if (hours < 10) hours = \"0\" + hours;
|
366 |
if (mins < 10) mins = \"0\" + mins;
|
377 |
if (mins < 10) mins = \"0\" + mins;
|
367 |
if (secs < 10) secs = \"0\" + secs;
|
378 |
if (secs < 10) secs = \"0\" + secs;
|
368 |
title = \"Online time: \" + hours + \":\" + mins + \":\" + secs;
|
379 |
title = \"$R_online_time : \" + hours + \":\" + mins + \":\" + secs;
|
369 |
if (mytimeleft) {
|
380 |
if (mytimeleft) {
|
370 |
title = \"Remaining time: \" + hours + \":\" + mins + \":\" + secs;
|
381 |
title = \"$R_remaining_time : \" + hours + \":\" + mins + \":\" + secs;
|
371 |
}
|
382 |
}
|
372 |
if(document.all || document.getElementById){
|
383 |
if(document.all || document.getElementById){
|
373 |
document.title = title;
|
384 |
document.title = title;
|
374 |
}
|
385 |
}
|
375 |
else {
|
386 |
else {
|
Line 377... |
Line 388... |
377 |
}
|
388 |
}
|
378 |
}
|
389 |
}
|
379 |
|
390 |
|
380 |
function popUp(URL) {
|
391 |
function popUp(URL) {
|
381 |
if (self.name != \"chillispot_popup\") {
|
392 |
if (self.name != \"chillispot_popup\") {
|
382 |
chillispot_popup = window.open(URL, 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=375');
|
393 |
chillispot_popup = window.open(URL, 'chillispot_popup', 'width=500,height=250,resizable,scrollbars=yes,location=yes,toolbar=no,statusbar=no,menubar=no');
|
383 |
}
|
394 |
}
|
384 |
}
|
395 |
}
|
385 |
|
396 |
|
386 |
function doOnLoad(result, URL, userurl, redirurl, timeleft) {
|
397 |
function doOnLoad(result, URL, userurl, redirurl, timeleft) {
|
387 |
if (timeleft) {
|
398 |
if (timeleft) {
|
388 |
mytimeleft = timeleft;
|
399 |
mytimeleft = timeleft;
|
389 |
}
|
400 |
}
|
390 |
if ((result == 1) && (self.name == \"chillispot_popup\")) {
|
401 |
if ((result == 1) && (self.name == \"chillispot_popup\")) {
|
391 |
doTime();
|
402 |
doTime();
|
- |
|
403 |
window.onbeforeunload = DecO($result);
|
392 |
}
|
404 |
}
|
393 |
if ((result == 1) && (self.name != \"chillispot_popup\")) {
|
405 |
if ((result == 1) && (self.name != \"chillispot_popup\")) {
|
394 |
chillispot_popup = window.open(URL, 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=375');
|
- |
|
- |
|
406 |
popUp(URL);
|
395 |
}
|
407 |
}
|
396 |
if ((result == 2) || result == 5) {
|
408 |
if ((result == 2) || result == 5) {
|
397 |
document.form1.UserName.focus()
|
409 |
document.form1.UserName.focus()
|
398 |
}
|
410 |
}
|
399 |
if ((result == 2) && (self.name != \"chillispot_popup\")) {
|
411 |
if ((result == 2) && (self.name != \"chillispot_popup\")) {
|
400 |
chillispot_popup = window.open('', 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=200');
|
- |
|
- |
|
412 |
popUp();
|
401 |
chillispot_popup.close();
|
413 |
chillispot_popup.close();
|
402 |
}
|
414 |
}
|
403 |
if ((result == 12) && (self.name == \"chillispot_popup\")) {
|
415 |
if ((result == 12) && (self.name == \"chillispot_popup\")) {
|
404 |
doTime();
|
416 |
doTime();
|
405 |
";
|
417 |
";
|
Line 420... |
Line 432... |
420 |
function DecO(result) {
|
432 |
function DecO(result) {
|
421 |
if ((result == 12) && (self.name == \"chillispot_popup\")) {
|
433 |
if ((result == 12) && (self.name == \"chillispot_popup\")) {
|
422 |
window.location = \"http://$uamip:$uamport/logoff \";
|
434 |
window.location = \"http://$uamip:$uamport/logoff \";
|
423 |
self.focus();
|
435 |
self.focus();
|
424 |
blur = 1;
|
436 |
blur = 1;
|
425 |
alert ('$R_loggedout');
|
437 |
//alert ('$R_loggedout');
|
426 |
}
|
438 |
}
|
427 |
}
|
439 |
}
|
428 |
</script>
|
440 |
</script>
|
429 |
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\">
|
441 |
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\">
|
430 |
</head>
|
442 |
</head>
|
431 |
<body onLoad=\"javascript:doOnLoad($result,'$loginpath?res=popup2&uamip=$uamip&uamport=$uamport&userurl=$userurl&redirurl=$redirurl&timeleft=$timeleft','$userurl','$redirurl','$timeleft')\" onBeforeUnLoad=\"javascript:DecO($result)\" bgColor='white'>";
|
443 |
<body onLoad=\"javascript:doOnLoad($result,'$loginpath?res=popup2&uamip=$uamip&uamport=$uamport&userurl=$userurl&redirurl=$redirurl&timeleft=$timeleft','$userurl','$redirurl','$timeleft')\" OnbeforeUnload=\"javascript:DecO($result)\">";
|
432 |
|
444 |
|
433 |
# begin debugging
|
445 |
# begin debugging
|
434 |
# print "<center>THE INPUT by GET method (for debugging):<br>";
|
446 |
# print "<center>THE INPUT by GET method (for debugging):<br>";
|
435 |
# foreach ($_GET as $key => $value) {
|
447 |
# foreach ($_GET as $key => $value) {
|
436 |
# print $key . "=" . $value . "<br>";
|
448 |
# print $key . "=" . $value . "<br>";
|