Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 353 → Rev 354

/web/intercept.php
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 = "CkWpFL3f";
$uamsecret = "bZBMKhn2";
 
# URL loaded after success authenticates (let blank for browser defaults)
$adminurl = "";
438,10 → 438,13
}
}
</script>
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\">
<link rel=\"stylesheet\" href=\"/css/style_intercept.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)\">";
 
<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
# begin debugging
# print "<center>THE INPUT by GET method (for debugging):<br>";
# foreach ($_GET as $key => $value) {
457,7 → 460,8
 
if ($result == 2) {
echo "
<h1 style=\"text-align: center;\">$R_loginfailed</h1>";
<DIV id=\"logon\">
<h2>$R_loginfailed</h2>";
if ($reply) {
#traitement du reply ...
echo "<center> $reply </BR></BR></center>";
466,65 → 470,73
 
if ($result == 5) {
echo "
<h1 style=\"text-align: center;\">$organisme</h1>
<h1 style=\"text-align: center;\">$R_loggedcont</h1>";
<DIV id=\"logon\">
<h1>$organisme</h1>
<h2>$R_loggedcont</h2>";
}
 
if ($result == 2 || $result == 5) {
echo "
<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\">
<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\"> &nbsp;&nbsp;&nbsp;&nbsp;$R_user&nbsp;<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&nbsp;<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>
<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>
</form>
</body>
</html>";
}
 
#Fin des modifications
if ($result == 1) {
echo "
<table>
<table id=\"auth_reussi\">
<tr>
<td>
<img height=\"150\" src=\"/images/logo-alcasar.png\">
</td>
<td>
<h2 style=\"text-align: center;\">$R_login</h2>
<p class=\"text_auth\">$R_login</p>
</td>
</tr>";
if ($reply) {
541,17 → 553,17
 
if (($result == 4) || ($result == 12)) {
echo "
<table>
<table id=\"auth_reussi\">
<tr>
<td>
<img height=\"150\" src=\"/images/logo-alcasar.png\">
</td>
<td>
<h2 style=\"text-align: center;\">$R_login</h2>
<p class=\"text_auth\">$R_login</p>
</td>
</tr>
<tr><td colspan=2><center>
<h2><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></h2>
<p class=\"lien_deco\"><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></p>
</center></td></tr>
</table>
</body>
560,7 → 572,7
 
if ($result == 11) {
echo "
<h1 style=\"text-align: center;\">$R_loggingin</h1>
<h2 style=\"text-align: center;\">$R_loggingin</h2>
<center>$R_wait</center>
</body>
</html>";
569,7 → 581,7
if (($result == 3) || ($result == 13)) {
echo "
<center>
<h1 style=\"text-align: center;\">$R_loggedout</h1>
<p class=\"log_out\">$R_loggedout</p>
<FORM>
<INPUT TYPE=\"button\" VALUE=\"$R_boutonF\" onClick=\"window.close()\">
</FORM></CENTER>