Subversion Repositories ALCASAR

Rev

Rev 340 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 340 Rev 354
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 = "CkWpFL3f";
28
$uamsecret = "bZBMKhn2";
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
Line 436... Line 436...
436
	blur = 1;
436
	blur = 1;
437
	//alert ('$R_loggedout');
437
	//alert ('$R_loggedout');
438
	}
438
	}
439
     }
439
     }
440
  </script>
440
  </script>
441
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\">
441
<link rel=\"stylesheet\" href=\"/css/style_intercept.css\" type=\"text/css\">
442
</head>
442
</head>
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)\">";
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)\">
-
 
444
  <center>";
-
 
445
#Modifications par stephane ERARD le 30 11 2010
-
 
446
	
444
 
447
	
445
# begin debugging
448
# begin debugging
446
#  print "<center>THE INPUT by GET method (for debugging):<br>";
449
#  print "<center>THE INPUT by GET method (for debugging):<br>";
447
#  foreach ($_GET as $key => $value) {
450
#  foreach ($_GET as $key => $value) {
448
#    print $key . "=" . $value . "<br>";
451
#    print $key . "=" . $value . "<br>";
449
#  }
452
#  }
Line 455... Line 458...
455
#  print "<br></center>";
458
#  print "<br></center>";
456
# end debugging
459
# end debugging
457
 
460
 
458
if ($result == 2) {
461
if ($result == 2) {
459
    echo "
462
    echo "
-
 
463
	<DIV id=\"logon\">
460
  <h1 style=\"text-align: center;\">$R_loginfailed</h1>";
464
	<h2>$R_loginfailed</h2>";
461
    if ($reply) {
465
    if ($reply) {
462
#traitement du reply ...
466
#traitement du reply ...
463
    echo "<center> $reply </BR></BR></center>";
467
    echo "<center> $reply </BR></BR></center>";
464
    }
468
    }
465
}
469
}
466
 
470
 
467
if ($result == 5) {
471
if ($result == 5) {
468
    echo "
472
    echo "
-
 
473
	<DIV id=\"logon\">
469
<h1 style=\"text-align: center;\">$organisme</h1>
474
	<h1>$organisme</h1>
470
<h1 style=\"text-align: center;\">$R_loggedcont</h1>";
475
	<h2>$R_loggedcont</h2>";
471
}
476
}
472
 
477
 
473
if ($result == 2 || $result == 5) {
478
if ($result == 2 || $result == 5) {
474
  echo "
479
  echo "
-
 
480
	<IMG id=\"logo-alcasar\" src=\"/images/logo-alcasar.png\">
475
  <form name=\"form1\" method=\"post\" action=\"$loginpath\">
481
	<form name=\"form1\" method=\"post\" action=\"$loginpath\">
476
  <input type=\"hidden\" name=\"challenge\" value=\"$challenge\">
482
	<input type=\"hidden\" name=\"challenge\" value=\"$challenge\">
477
  <input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
483
	<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
478
  <input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
484
	<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
479
  <input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
485
	<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
480
  <center>
-
 
481
  <table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">
486
		<TABLE id=\"boite-logon\">
482
    <tr>
487
			<TR>
483
      <td rowspan=\"4\" align=\"center\" width=\"25%\" ><img src=\"/images/logo-alcasar.png\"></td>
488
				<TD width=\"20%\" rowspan=\"4\"><IMG id=\"logo-organ\" src=\"/images/organisme.png\"></TD>
484
      <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>
489
				<TD width=\"30%\" align=\"right\">$R_user</TD>
485
      <td rowspan=\"4\" align=\"center\" width=\"25%\"><img src=\"/images/organisme.png\"></td>
490
				<TD width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\"></TD>
486
    </tr><tr>
491
			</TR>
-
 
492
			<TR>
-
 
493
				<TD align=\"right\">$R_password</TD>
487
      <td width=\"50%\" align=\"center\">$R_password&nbsp;<input STYLE=\"font-family: Arial\" type=\"password\" name=\"Password\" size=\"20\" maxlength=\"32\"></td>
494
				<TD align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\"></TD>
488
    </tr><tr>
495
			</TR>
-
 
496
			<TR>
489
      <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>
497
				<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>
490
    </tr><tr>
498
			</TR>
-
 
499
			<TR>
491
      <td width=\"50%\" align=\"center\"><H6><a href=\"https://$uamip/pass/\">$R_passwordchg</H6></td>
500
				<TD colSpan=2 align=middle><H6><A href=\"https://$uamip/pass/\">$R_passwordchg</A></H6></TD>
-
 
501
			</TR>
492
    </tr><tr>
502
		</TABLE>
493
      <td align=\"center\" colspan=\"4\"><font color=\"red\"><b>$R_loggedin_stringl0</b></td>
503
		<TABLE id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
494
    </tr><tr>
504
			<TR>
495
      <td align=\"left\" colspan=\"4\"><b></td>
505
				<TD align=\"middle\"><FONT color=\"red\"><B>$R_loggedin_stringl0</B></FONT></TD>
496
    </tr><tr>
506
			</TR>
-
 
507
			<TR>
497
      <td align=\"center\" colspan=\"4\"><font color=\"black\"><b>$R_loggedin_stringl1</b></font></td>
508
				<TD align=\"middle\"><FONT color=\"black\"><B>$R_loggedin_stringl1</B></FONT></TD>
498
    </tr><tr>
509
			</TR>
-
 
510
			<TR>
499
      <td align=\"left\" colspan=\"4\"><b>
511
				<TD align=\"left\">
500
      <li>
512
					<UL>
501
$R_loggedin_stringl2</li>
513
						<LI>$R_loggedin_stringl2</LI>
502
      <li>
-
 
503
$R_loggedin_stringl3</li>
514
						<LI>$R_loggedin_stringl4</LI>
504
      <li>
-
 
505
$R_loggedin_stringl4</li>
515
						<LI>$R_loggedin_stringl3</LI> 
506
      <li>
-
 
507
$R_loggedin_stringl5</li>
516
						<LI>$R_loggedin_stringl5</LI>
508
      <hr>
517
					</UL>
-
 
518
					<P id=\"aide-certif\">
509
$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>
519
					$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> 
510
      </b></td>
520
					</P>
511
    </tr>
521
				</TD>
-
 
522
			</TR>
512
  </table>
523
		</TABLE>
-
 
524
	</DIV>
513
  </center>
525
  </center>
514
  </form>
526
  </form>
515
</body>
527
</body>
516
</html>";
528
</html>";
517
}
529
}
518
 
-
 
-
 
530
#Fin des modifications
519
if ($result == 1) {
531
if ($result == 1) {
520
  echo "
532
  echo "
521
  <table>
533
  <table id=\"auth_reussi\">
522
  <tr>
534
  <tr>
523
  <td>
535
  <td>
524
  <img height=\"150\" src=\"/images/logo-alcasar.png\">
536
  <img height=\"150\" src=\"/images/logo-alcasar.png\">
525
  </td>
537
  </td>
526
  <td>
538
  <td>
527
  <h2 style=\"text-align: center;\">$R_login</h2>
539
  <p class=\"text_auth\">$R_login</p>
528
  </td>
540
  </td>
529
  </tr>";
541
  </tr>";
530
  if ($reply) { 
542
  if ($reply) { 
531
 ## traitement reply
543
 ## traitement reply
532
     echo "<center> $reply </br></br></center>";
544
     echo "<center> $reply </br></br></center>";
Line 539... Line 551...
539
</html>";
551
</html>";
540
}
552
}
541
 
553
 
542
if (($result == 4) || ($result == 12)) {
554
if (($result == 4) || ($result == 12)) {
543
  echo "
555
  echo "
544
  <table>
556
  <table id=\"auth_reussi\">
545
  <tr>
557
  <tr>
546
  <td>
558
  <td>
547
  <img height=\"150\" src=\"/images/logo-alcasar.png\">
559
  <img height=\"150\" src=\"/images/logo-alcasar.png\">
548
  </td>
560
  </td>
549
  <td>
561
  <td>
550
  <h2 style=\"text-align: center;\">$R_login</h2>
562
  <p class=\"text_auth\">$R_login</p>
551
  </td>
563
  </td>
552
  </tr>
564
  </tr>
553
  <tr><td colspan=2><center>
565
  <tr><td colspan=2><center>
554
    <h2><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></h2>
566
    <p class=\"lien_deco\"><a href=\"http://$uamip:$uamport/logoff\">$R_logout</a></p>
555
  </center></td></tr>
567
  </center></td></tr>
556
  </table>
568
  </table>
557
  </body>
569
  </body>
558
  </html>";
570
  </html>";
559
}
571
}
560
 
572
 
561
if ($result == 11) {
573
if ($result == 11) {
562
  echo "
574
  echo "
563
  <h1 style=\"text-align: center;\">$R_loggingin</h1>
575
  <h2 style=\"text-align: center;\">$R_loggingin</h2>
564
  <center>$R_wait</center>
576
  <center>$R_wait</center>
565
</body>
577
</body>
566
</html>";
578
</html>";
567
}
579
}
568
 
580
 
569
if (($result == 3) || ($result == 13)) {
581
if (($result == 3) || ($result == 13)) {
570
  echo "
582
  echo "
571
  <center>
583
  <center>
572
  <h1 style=\"text-align: center;\">$R_loggedout</h1>
584
  <p class=\"log_out\">$R_loggedout</p>
573
  <FORM>
585
  <FORM>
574
  <INPUT TYPE=\"button\" VALUE=\"$R_boutonF\" onClick=\"window.close()\">
586
  <INPUT TYPE=\"button\" VALUE=\"$R_boutonF\" onClick=\"window.close()\">
575
  </FORM></CENTER>
587
  </FORM></CENTER>
576
</body>
588
</body>
577
</html>";
589
</html>";