10,7 → 10,7 |
# notice and this permission notice is included in all copies or |
# substantial portions of the software. |
|
$organisme = "etrs-ssic"; |
$organisme = "rexy"; |
# 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 = "bZBMKhn2"; |
$uamsecret = "CkWpFL3f"; |
|
# URL loaded after success authenticates (let blank for browser defaults) |
$adminurl = ""; |
438,13 → 438,10 |
} |
} |
</script> |
<link rel=\"stylesheet\" href=\"/css/style_intercept.css\" type=\"text/css\"> |
<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)\"> |
<center>"; |
#Modifications par stephane ERARD le 30 11 2010 |
<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>"; |
# foreach ($_GET as $key => $value) { |
460,8 → 457,7 |
|
if ($result == 2) { |
echo " |
<DIV id=\"logon\"> |
<h2>$R_loginfailed</h2>"; |
<h1 style=\"text-align: center;\">$R_loginfailed</h1>"; |
if ($reply) { |
#traitement du reply ... |
echo "<center> $reply </BR></BR></center>"; |
470,73 → 466,65 |
|
if ($result == 5) { |
echo " |
<DIV id=\"logon\"> |
<h1>$organisme</h1> |
<h2>$R_loggedcont</h2>"; |
<h1 style=\"text-align: center;\">$organisme</h1> |
<h1 style=\"text-align: center;\">$R_loggedcont</h1>"; |
} |
|
if ($result == 2 || $result == 5) { |
echo " |
<IMG id=\"logo-alcasar\" src=\"/images/logo-alcasar.png\"> |
<form name=\"form1\" method=\"post\" action=\"$loginpath\"> |
<input type=\"hidden\" name=\"challenge\" value=\"$challenge\"> |
<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=\"4\"><IMG id=\"logo-organ\" src=\"/images/organisme.png\"></TD> |
<TD width=\"30%\" align=\"right\">$R_user</TD> |
<TD width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\"></TD> |
</TR> |
<TR> |
<TD align=\"right\">$R_password</TD> |
<TD align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\"></TD> |
</TR> |
<TR> |
<TD height=\"23\" colSpan=\"2\" align=\"middle\"><INPUT value=\"$R_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$loginpath?res=popup1&uamip=$uamip&uamport=$uamport')\"></TD> |
</TR> |
<TR> |
<TD colSpan=2 align=middle><H6><A href=\"https://$uamip/pass/\">$R_passwordchg</A></H6></TD> |
</TR> |
</TABLE> |
<TABLE id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\"> |
<TR> |
<TD align=\"middle\"><FONT color=\"red\"><B>$R_loggedin_stringl0</B></FONT></TD> |
</TR> |
<TR> |
<TD align=\"middle\"><FONT color=\"black\"><B>$R_loggedin_stringl1</B></FONT></TD> |
</TR> |
<TR> |
<TD align=\"left\"> |
<UL> |
<LI>$R_loggedin_stringl2</LI> |
<LI>$R_loggedin_stringl4</LI> |
<LI>$R_loggedin_stringl3</LI> |
<LI>$R_loggedin_stringl5</LI> |
</UL> |
<P id=\"aide-certif\"> |
$R_ca_1 <A href=\"/certs/certificat_alcasar_ca.crt\">$R_ca_2</a> $R_ca_3 <a href=\"/alcasar-certificat.pdf\">$R_ca_4</A> |
</P> |
</TD> |
</TR> |
</TABLE> |
</DIV> |
<center> |
<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\"> |
<tr> |
<td rowspan=\"4\" align=\"center\" width=\"25%\" ><img src=\"/images/logo-alcasar.png\"></td> |
<td width=\"50%\" align=\"center\"> $R_user <input STYLE=\"font-family: Arial\" type=\"text\" name=\"UserName\" size=\"20\" maxlength=\"32\"></td> |
<td rowspan=\"4\" align=\"center\" width=\"25%\"><img src=\"/images/organisme.png\"></td> |
</tr><tr> |
<td width=\"50%\" align=\"center\">$R_password <input STYLE=\"font-family: Arial\" type=\"password\" name=\"Password\" size=\"20\" maxlength=\"32\"></td> |
</tr><tr> |
<td width=\"50%\" align=\"center\" height=\"23\"><input type=\"submit\" name=\"button\" value=\"$R_boutonO\" onClick=\"javascript:popUp('$loginpath?res=popup1&uamip=$uamip&uamport=$uamport')\"></td> |
</tr><tr> |
<td width=\"50%\" align=\"center\"><H6><a href=\"https://$uamip/pass/\">$R_passwordchg</H6></td> |
</tr><tr> |
<td align=\"center\" colspan=\"4\"><font color=\"red\"><b>$R_loggedin_stringl0</b></td> |
</tr><tr> |
<td align=\"left\" colspan=\"4\"><b></td> |
</tr><tr> |
<td align=\"center\" colspan=\"4\"><font color=\"black\"><b>$R_loggedin_stringl1</b></font></td> |
</tr><tr> |
<td align=\"left\" colspan=\"4\"><b> |
<li> |
$R_loggedin_stringl2</li> |
<li> |
$R_loggedin_stringl3</li> |
<li> |
$R_loggedin_stringl4</li> |
<li> |
$R_loggedin_stringl5</li> |
<hr> |
$R_ca_1 <a href=\"/certs/certificat_alcasar_ca.crt\">$R_ca_2</a> $R_ca_3 <a href=\"/alcasar-certificat.pdf\">$R_ca_4</a> |
</b></td> |
</tr> |
</table> |
</center> |
</form> |
</body> |
</html>"; |
} |
#Fin des modifications |
|
if ($result == 1) { |
echo " |
<table id=\"auth_reussi\"> |
<table> |
<tr> |
<td> |
<img height=\"150\" src=\"/images/logo-alcasar.png\"> |
</td> |
<td> |
<p class=\"text_auth\">$R_login</p> |
<h2 style=\"text-align: center;\">$R_login</h2> |
</td> |
</tr>"; |
if ($reply) { |
553,17 → 541,17 |
|
if (($result == 4) || ($result == 12)) { |
echo " |
<table id=\"auth_reussi\"> |
<table> |
<tr> |
<td> |
<img height=\"150\" src=\"/images/logo-alcasar.png\"> |
</td> |
<td> |
<p class=\"text_auth\">$R_login</p> |
<h2 style=\"text-align: center;\">$R_login</h2> |
</td> |
</tr> |
<tr><td colspan=2><center> |
<p class=\"lien_deco\"><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></p> |
<h2><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></h2> |
</center></td></tr> |
</table> |
</body> |
572,7 → 560,7 |
|
if ($result == 11) { |
echo " |
<h2 style=\"text-align: center;\">$R_loggingin</h2> |
<h1 style=\"text-align: center;\">$R_loggingin</h1> |
<center>$R_wait</center> |
</body> |
</html>"; |
581,7 → 569,7 |
if (($result == 3) || ($result == 13)) { |
echo " |
<center> |
<p class=\"log_out\">$R_loggedout</p> |
<h1 style=\"text-align: center;\">$R_loggedout</h1> |
<FORM> |
<INPUT TYPE=\"button\" VALUE=\"$R_boutonF\" onClick=\"window.close()\"> |
</FORM></CENTER> |