Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 924 → Rev 925

/web/intercept.php
68,7 → 68,7
$organisme = $conf["ORGANISM"];
 
# Shared secret used to encrypt challenge with radius.
$uamsecret = "ZHoGm7No";
$uamsecret = "q8bxGdIg";
 
# URL loaded after success authenticates (let blank for browser defaults)
$adminurl = "";
119,7 → 119,7
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Tiempo en linea";
$l_remaining_time = "Tiempo restante";
$l_uam_domain = "acceso directo : ";}
$l_uam_domain = "Sitios web autorizados : ";}
else if ($Language == 'pt'){
$l_ChilliError = "A autenticação deve ser bem sucedido através do serviço de portal cativo.";
$l_login = "Sucesso na autenticação.<HR>Não feche essa janela para não interromper a conexão";
151,7 → 151,7
$l_reply_6 = "Seu tempo de conexão autorizada finalizou";
$l_online_time = "Tempo Online";
$l_remaining_time = "Tempo restante";
$l_uam_domain = "acesso directo : ";}
$l_uam_domain = "Sites autorizados : ";}
else if($Language == 'de'){
$l_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
183,7 → 183,7
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online-zeit";
$l_remaining_time = "Restzeit";
$l_uam_domain = "accès direkten : ";}
$l_uam_domain = "Autorisierten websites : ";}
else if($Language == 'nl'){
$l_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
$l_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
215,14 → 215,14
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online tijd";
$l_remaining_time = "Reterende tijd";
$l_uam_domain = "Direct access : ";}
$l_uam_domain = "Geautoriseerde website : ";}
else if($Language == 'fr'){
$l_ChilliError = "L'authentification doit &ecirc;tre r&eacute;ussie au travers du service du portail captif.";
$l_login = "Authentification r&eacute;ussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
$l_ChilliError = "L'authentification doit être réussie sur le portail captif.";
$l_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
$l_logout = "Fermeture de la session";
$l_loginfailed = "Echec d'authentification";
$l_loggingin = "Identification sur le portail captif";
$l_loggedcont = "Contr&ocirc;le d'acc&egrave;s";
$l_loggedcont = "Contrôle d'accès";
$l_loggedout = "Votre session est fermée";
$l_user = "Identifiant";
$l_password = "Mot de passe";
229,25 → 229,25
$l_wait = "Patientez un instant ...";
$l_onlinetime = "Temps de connexion:";
$l_remainingtime = "Deconnexion dans :";
$l_encrypted = "La connexion avec le portail doit &ecirc;tre chiffr&eacute;e";
$l_encrypted = "La connexion avec le portail doit être chiffrée";
$l_boutonO = "Authentification";
$l_boutonF = "Fermer";
$l_loggedin_stringl1 = "S&eacute;curit&eacute; des Syst&egrave;mes d'Information";
$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.";
$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.";
$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.";
$l_loggedin_stringl5 = "Ces donn&eacute;es seront automatiquement supprim&eacute;es au bout d'un an.";
$l_loggedin_stringl1 = "Sécurité des Systèmes d'Information";
$l_loggedin_stringl2 = "Ce contrôle a été mis en place pour assurer réglementairement la traçabilité, l'imputabilité et la non-répudiation des connexions.";
$l_loggedin_stringl3 = "Votre activité sur le réseau est enregistrée conformément au respect de la vie privée.";
$l_loggedin_stringl4 = "Les données enregistrées ne pourront être exploitées que par une autorité judiciaire dans le cadre d'une enquête.";
$l_loggedin_stringl5 = "Ces données seront automatiquement supprimées au bout d'un an.";
$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";
$l_loggedout_string = "D&eacute;connexion du portail captif effectu&eacute;e !";
$l_reply_1 = "Votre dur&eacute;e de connexion journali&egrave;re a &eacute;t&eacute; atteinte";
$l_reply_2 = "Votre dur&eacute;e de connexion mensuelle a &eacute;t&eacute; atteinte";
$l_reply_3 = "Vous tentez de vous connecter en dehors de votre p&eacute;riode autoris&eacute;e";
$l_reply_4 = "Votre compte a expir&eacute";
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultan&eacute;es";
$l_reply_6 = "Votre dur&eacute;e de connexion autoris&eacute;e a &eacute;t&eacute; atteinte";
$l_loggedout_string = "Déconnexion du portail captif effectuée !";
$l_reply_1 = "Votre durée de connexion journaliè a été atteinte";
$l_reply_2 = "Votre durée de connexion mensuelle a été atteinte";
$l_reply_3 = "Vous tentez de vous connecter en dehors de votre période autorisée";
$l_reply_4 = "Votre compte a expiré";
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
$l_online_time = "Temps de connexion";
$l_remaining_time = "Temps restant";
$l_uam_domain = "Acc&egrave;s dirrect : ";}
$l_uam_domain = "Sites autorisés : ";}
else{
$l_ChilliError = "The authentication must be successful through the captive portal service.";
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
279,11 → 279,11
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online time";
$l_remaining_time = "Remaining time";
$l_uam_domain = "Direct access : ";}
$l_uam_domain = "Authorized websites : ";}
 
# If https not use, tell it's wrong
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
341,7 → 341,7
$response = md5("\0" . $password . $newchal);
$newpwd = pack("a32", $password);
$pappassword = implode ("", unpack("H32", ($newpwd ^ $newchal)));
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
372,7 → 372,7
# Otherwise it was not a form request
# Send out an error message
if ($result == 0) { //erreur
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
391,7 → 391,7
exit(0);
}
# Generate the output
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
457,63 → 457,57
<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
<table id=\"boite-logon\">
<tr>
<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
<td width=\"30%\" align=\"right\">$l_user</td>
<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
</tr>
<tr>
<td align=\"right\">$l_password</td>
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
</tr>
<tr>
<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
</tr>
</table>
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
<tr>
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
</tr>
<tr>
<td align=\"left\">
<ul>
<LI>$l_loggedin_stringl2</LI>
<LI>$l_loggedin_stringl4</LI>
<LI>$l_loggedin_stringl3</LI>
<LI>$l_loggedin_stringl5</LI>
<LI>$l_loggedin_stringl6</LI>
</ul>
</td>
</tr>
</table>";
<table id=\"boite-logon\">
<tr>
<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
<td width=\"30%\" align=\"right\">$l_user</td>
<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
</tr>
<tr>
<td align=\"right\">$l_password</td>
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
</tr>
<tr>
<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
</tr>
</table>
</form>
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
<tr>
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
</tr>
<tr>
<td align=\"left\">
<ul>
<LI>$l_loggedin_stringl2</LI>
<LI>$l_loggedin_stringl4</LI>
<LI>$l_loggedin_stringl3</LI>
<LI>$l_loggedin_stringl5</LI>
<LI>$l_loggedin_stringl6</LI>
</ul>
</td>
</tr>
</table>";
 
// Read the "Domain alowed" file
$tab=file(DOMAIN_ALLOWED_LIST);
if ($tab) # the file isn't empty
{
echo "<div id=\"authorized_domain\"><li>$l_uam_domain</li>";
echo "<div id=\"authorized_domain\">$l_uam_domain";
foreach ($tab as $line)
{
if (trim($line) != '') # the line isn't empty
{
{
$domain_allowed=explode("#", $line);
$uamdomain=trim($domain_allowed[0],"#");
$domain=explode("\"", $uamdomain);
if ((isset($domain_allowed[1])) && (trim($domain_allowed[1]) != '')){
echo "<li><a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a></li>";
}
else echo"<li><a href=\"http://".trim($domain[1])."\">".trim($domain[1])."</a></li>";
}
if (trim($domain_allowed[1]) != ''){
$domain=explode("\"", $domain_allowed[0]);
echo "<a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a> ";}
}
}
echo "</div>";
}
 
echo "
</form>
</div>
</center>
echo "
</div>
</center>
</body>
</html>";
}