10,7 → 10,7 |
# notice and this permission notice is included in all copies or |
# substantial portions of the software. |
|
$organisme = "rexy"; |
$organisme = "etrs-ssic"; |
# Redirects from CoovaChilli (chilli daemon) : |
# Response to login: |
# success : if login successful |
25,7 → 25,7 |
# Default : it was not a form request |
|
# Shared secret used to encrypt challenge with radius. |
$uamsecret = "sfk5D8Yn"; |
$uamsecret = "UoDkYv7b"; |
|
# URL loaded after success authenticates (let blank for browser defaults) |
$adminurl = ""; |
34,22 → 34,22 |
$loginpath = $_SERVER['PHP_SELF']; |
|
# Choice of language |
$Language = 'fr'; |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'es'){ |
$R_ChilliError = "La autenticación debe ser un éxito a través del servicio de portal cautivo."; |
$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!"; |
$R_logout = "Conexión de cierre"; |
$R_login = "El éxito de la autenticación.<HR>Cierre esta ventana interrumpte la sesion."; |
$R_logout = "Conexión de cierre"; |
$R_loginfailed = "Error de autenticación"; |
$R_loggingin = "Identificación en el portal cautivo"; |
$R_loggedcont = "Red de Control de Acceso"; |
$R_loggedout = "Su sesión se cierra"; |
$R_user = "Usuario"; |
$R_user = "Usuario"; |
$R_password = "Contraseña"; |
$R_passwordchg = "Cambie su contraseña"; |
$R_wait = "Por favor, espere un momento ..."; |
$R_wait = "Por favor, espere un momento ..."; |
$R_onlinetime = "Tiempo de conexión:"; |
$R_remainingtime = "Desconexión en:"; |
$R_encrypted = "La apertura debe usar conexión cifrada"; |
67,23 → 67,25 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_1 = "How integrate the ALCASAR"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
$R_ca_4 = "-help-"; |
$R_online_time = "Tiempo en linea"; |
$R_remaining_time = "Tiempo restante"; |
} |
else if($Language == 'de'){ |
$R_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt."; |
$R_login = "Erfolgreiche Authentifizierung. <BR> Die Verbindung zum Netzwerk erfolgt. <br> Klicken Sie auf 'Beenden der Verbindung, um Ihre Tagung!"; |
$R_logout = "Beenden der Verbindung"; |
$R_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung"; |
$R_logout = "Beenden der Verbindung"; |
$R_loginfailed = "Authentifizierungsfehler Eigenverbrauch"; |
$R_loggingin = "Kennzeichnung auf dem Eigenverbrauch"; |
$R_loggedcont = "Network Access Control"; |
$R_loggedout = "Ihre Sitzung ist geschlossen"; |
$R_user = "Benutzer"; |
$R_user = "Benutzer"; |
$R_password = "Passwort"; |
$R_passwordchg = "Passwort ändern"; |
$R_wait = "Bitte warten Sie einen Moment ..."; |
$R_wait = "Bitte warten Sie einen Moment ..."; |
$R_onlinetime = "Online-Zeit:"; |
$R_remainingtime = "Abmelden:"; |
$R_encrypted = "Die Öffnung muß der Anschluß Zahlen"; |
101,23 → 103,26 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_1 = "How integrate the ALCASAR"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
$R_ca_4 = "-help-"; |
$R_online_time = "Online-zeit"; |
$R_remaining_time = "Restzeit"; |
|
} |
else if($Language == 'nl'){ |
$R_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst."; |
$R_login = "Succesvolle authenticatie. <BR> De netwerkverbinding werkt. <br> Klikt u op de afsluiting van de verbinding af te sluiten uw sessie!"; |
$R_logout = "Slotkoers verbinding"; |
$R_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie."; |
$R_logout = "Slotkoers verbinding"; |
$R_loginfailed = "Authenticatie mislukt"; |
$R_loggingin = "Identificatie van de captive-portaal"; |
$R_loggedcont = "Network Access Control"; |
$R_loggedout = "Uw sessie is gesloten"; |
$R_user = "Gebruiker"; |
$R_user = "Gebruiker"; |
$R_password = "Wachtwoord"; |
$R_passwordchg = "Wijzig uw wachtwoord"; |
$R_wait = "Wacht een moment ..."; |
$R_wait = "Wacht een moment ..."; |
$R_onlinetime = "Sluit tijd:"; |
$R_remainingtime = "Verbreking in:"; |
$R_encrypted = "De opening moet gebruiken gecodeerde verbinding"; |
135,57 → 140,25 |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "How integrate the ALCASAR C.A"; |
$R_ca_1 = "How integrate the ALCASAR"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser?"; |
$R_ca_4 = "<help>"; |
} |
else if($Language == 'en'){ |
$R_ChilliError = "The authentication must be successful through the captive portal service."; |
$R_login = "Successful authentication. <BR> The network connection is working. <br> Remember to click Close the connection to close your session!"; |
$R_logout = "Closing connection"; |
$R_loginfailed = "Authentication Failed"; |
$R_loggingin = "Identification on the captive portal"; |
$R_loggedcont = "Network Access Control"; |
$R_loggedout = "Your session is closed"; |
$R_user = "User"; |
$R_password = "Password"; |
$R_passwordchg = "Change your password"; |
$R_wait = "Please wait a moment ..."; |
$R_onlinetime = "Connect time:"; |
$R_remainingtime = "Disconnection in:"; |
$R_encrypted = "The opening must use encrypted connection"; |
$R_boutonO = "Authentication"; |
$R_boutonF = "Close"; |
$R_loggedin_stringl0 = "Information System Security"; |
$R_loggedin_stringl1 = "Welcome on captive portal ALCASAR"; |
$R_loggedin_stringl2 = "The portal was set up regulations to ensure traceability, accountability and non-repudiation of connections."; |
$R_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy."; |
$R_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation."; |
$R_loggedin_stringl5 = "These data will be automatically deleted after one year."; |
$R_loggedout_string = "Logout made captive portal!"; |
$R_reply_1 = "Your daily connexion time has been reached"; |
$R_reply_2 = "Your monthly connexion time has been reached"; |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "Integrate the ALCASAR C.A"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser"; |
$R_ca_4 = "-help-"; |
$R_online_time = "Online tijd"; |
$R_remaining_time = "Reterende tijd"; |
} |
else{ |
else if($Language == 'fr'){ |
$R_ChilliError = "L'authentification doit être réussie au travers du service du portail captif."; |
$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 !"; |
$R_logout = "Fermeture de la connexion"; |
$R_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session."; |
$R_logout = "Fermeture de la session"; |
$R_loginfailed = "Echec d'authentification"; |
$R_loggingin = "Identification sur le portail captif"; |
$R_loggedcont = "Contrôle d'accès au réseau"; |
$R_loggedout = "Votre session est fermée"; |
$R_user = "Identifiant"; |
$R_user = "Identifiant"; |
$R_password = "Mot de passe"; |
$R_passwordchg = "Modifier son mot de passe"; |
$R_wait = "Patientez un instant ..."; |
$R_wait = "Patientez un instant ..."; |
$R_onlinetime = "Temps de connexion:"; |
$R_remainingtime = "Deconnexion dans :"; |
$R_encrypted = "La connexion avec le portail doit être chiffrée"; |
205,9 → 178,47 |
$R_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées"; |
$R_ca_1 = "Intégrer le "; |
$R_ca_2 = "certificat"; |
$R_ca_3 = "de l'A.C d'ALCASAR dans votre navigateur web"; |
$R_ca_3 = "d'ALCASAR dans votre navigateur WEB"; |
$R_ca_4 = "-aide-"; |
$R_online_time = "Temps de connexion"; |
$R_remaining_time = "Temps restant"; |
} |
else{ |
$R_ChilliError = "The authentication must be successful through the captive portal service."; |
$R_login = "Successful authentication.<HR>Closing this window interrupts your session"; |
$R_logout = "Closing connection"; |
$R_loginfailed = "Authentication Failed"; |
$R_loggingin = "Identification on the captive portal"; |
$R_loggedcont = "Network Access Control"; |
$R_loggedout = "Your session is closed"; |
$R_user = "User"; |
$R_password = "Password"; |
$R_passwordchg = "Change your password"; |
$R_wait = "Please wait a moment ..."; |
$R_onlinetime = "Connect time:"; |
$R_remainingtime = "Disconnection in:"; |
$R_encrypted = "The opening must use encrypted connection"; |
$R_boutonO = "Authentication"; |
$R_boutonF = "Close"; |
$R_loggedin_stringl0 = "Information System Security"; |
$R_loggedin_stringl1 = "Welcome on captive portal ALCASAR"; |
$R_loggedin_stringl2 = "The portal was set up regulations to ensure traceability, accountability and non-repudiation of connections."; |
$R_loggedin_stringl3 = "Your activity on the network is registered in accordance with privacy."; |
$R_loggedin_stringl4 = "The recorded data can be able to be operated by a judicial authority in the course of an investigation."; |
$R_loggedin_stringl5 = "These data will be automatically deleted after one year."; |
$R_loggedout_string = "Logout made captive portal!"; |
$R_reply_1 = "Your daily connexion time has been reached"; |
$R_reply_2 = "Your monthly connexion time has been reached"; |
$R_reply_3 = "You try to connect outside of your allowed timespan"; |
$R_reply_4 = "your account expired"; |
$R_reply_5 = "You have reached the maximum number of simultaneous logins"; |
$R_ca_1 = "Integrate the ALCASAR"; |
$R_ca_2 = "certificate"; |
$R_ca_3 = "in your web browser"; |
$R_ca_4 = "-help-"; |
$R_online_time = "Online time"; |
$R_remaining_time = "Remaining time"; |
} |
|
# Make sure that the form parameters are clean |
#$OK_CHARS='-a-zA-Z0-9_.@&=%!'; |
365,9 → 376,9 |
if (hours < 10) hours = \"0\" + hours; |
if (mins < 10) mins = \"0\" + mins; |
if (secs < 10) secs = \"0\" + secs; |
title = \"Online time: \" + hours + \":\" + mins + \":\" + secs; |
title = \"$R_online_time : \" + hours + \":\" + mins + \":\" + secs; |
if (mytimeleft) { |
title = \"Remaining time: \" + hours + \":\" + mins + \":\" + secs; |
title = \"$R_remaining_time : \" + hours + \":\" + mins + \":\" + secs; |
} |
if(document.all || document.getElementById){ |
document.title = title; |
379,7 → 390,7 |
|
function popUp(URL) { |
if (self.name != \"chillispot_popup\") { |
chillispot_popup = window.open(URL, 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=375'); |
chillispot_popup = window.open(URL, 'chillispot_popup', 'width=500,height=250,resizable,scrollbars=yes,location=yes,toolbar=no,statusbar=no,menubar=no'); |
} |
} |
|
388,16 → 399,17 |
mytimeleft = timeleft; |
} |
if ((result == 1) && (self.name == \"chillispot_popup\")) { |
doTime(); |
doTime(); |
window.onbeforeunload = DecO($result); |
} |
if ((result == 1) && (self.name != \"chillispot_popup\")) { |
chillispot_popup = window.open(URL, 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=375'); |
popUp(URL); |
} |
if ((result == 2) || result == 5) { |
document.form1.UserName.focus() |
} |
if ((result == 2) && (self.name != \"chillispot_popup\")) { |
chillispot_popup = window.open('', 'chillispot_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=200'); |
popUp(); |
chillispot_popup.close(); |
} |
if ((result == 12) && (self.name == \"chillispot_popup\")) { |
422,13 → 434,13 |
window.location = \"http://$uamip:$uamport/logoff \"; |
self.focus(); |
blur = 1; |
alert ('$R_loggedout'); |
//alert ('$R_loggedout'); |
} |
} |
</script> |
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\"> |
</head> |
<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'>"; |
<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)\">"; |
|
# begin debugging |
# print "<center>THE INPUT by GET method (for debugging):<br>"; |