Subversion Repositories ALCASAR

Rev

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

Rev 318 Rev 323
Line 1... Line 1...
1
<html>
1
<html>
2
<?
2
<?
-
 
3
# on discrimine les accès directs sur Alcasar par rapport aux redirections
3
$private_ip = "192.168.182.1";
4
$private_ip = "192.168.182.1";
-
 
5
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){$direct_access="true";} else {$direct_access="false";}
4
# Choice of language
6
# Choice of language
5
$Language = 'en';
7
$Language = 'en';
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
8
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
7
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
9
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
8
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
10
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
9
if($Language == 'fr'){
11
if($Language == 'fr'){
10
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
12
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
-
 
13
  $l_access_controled = "ACC&Egrave;S CONTR&Ocirc;L&Eacute;";
11
  $l_required_domain = "Site WEB demand&eacute;";
14
  $l_required_domain = "Site WEB demand&eacute;";
12
  $l_explain = "Vous tentez d'acc&eacute;der &agrave; une ressource dont le contenu est r&eacute;put&eacute; contenir des informations inappropri&eacute;es.";
15
  $l_explain = "Vous tentez d'acc&eacute;der &agrave; une ressource dont le contenu est r&eacute;put&eacute; contenir des informations inappropri&eacute;es.";
13
  $l_explain_alcasar = "L'acc&egrave;s au centre de gestion du portail ALCASAR (ALCASAR Control Center) n&eacute;c&eacute;ssite une authentification s&eacute;curis&eacute;e.";
-
 
14
  $l_contact = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
16
  $l_contact = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
-
 
17
  $l_welcome = "Bienvenue sur le portail captif ALCASAR.<br>Vous pouvez : ";
15
  $l_contact_alcasar = "<a href=\"https://alcasar/acc\">Acc&egrave;s au centre de gestion</A>";
18
  $l_acc_access = "<a href=\"https://i$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
-
 
19
  $l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Tester l'interception de l'acc&egrave;s &agrave; Internet</A>";
16
}
20
}
17
else {
21
else {
18
  $l_access_denied = "ACCESS DENIED";
22
  $l_access_denied = "ACCESS DENIED";
-
 
23
  $l_access_controled = "ACCESS CONTROLED";
19
  $l_required_domain = "Required WEB site";
24
  $l_required_domain = "Required WEB site";
20
  $l_explain = "Your portal has just detected that the Internet access is down";
25
  $l_explain = "Your portal has just detected that the Internet access is down";
21
  $l_explain_alcasar = "In order to access to the ALCASAR Control Center (ACC) you should authenticate threw a secure connection.";
-
 
22
  $l_contact = "Contact your Internet provider responsive for more information";
26
  $l_contact = "Contact your Internet provider responsive for more information";
-
 
27
  $l_welcome = "Welcome on the captive portal ALCASAR.<br>You can connect: ";
23
  $l_contact_alcasar = "<a href=\"https://alcasar/acc\">ALCASAR Control Center access</A>";
28
  $l_acc_access = "<a href=\"https://$private_ip/acc\">to the ALCASAR Control Center (ACC)</A>";
-
 
29
  $l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Internet intercept page for Test</A>";
24
}
30
}
25
?>
31
?>
26
<head>
32
<head>
-
 
33
<title>
27
<title><? echo "ALCASAR - $l_access_denied";?></title>
34
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
-
 
35
</title>
28
</head>
36
</head>
29
<body bgcolor=#FFFFFF>
37
<body bgcolor=#FFFFFF>
30
<center>
38
<center>
31
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
39
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
32
<tr>
40
<tr>
33
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
41
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
34
	<font face=arial,helvetica size=6>
42
	<font face=arial,helvetica size=6>
35
	<b><? echo "$l_access_denied";?></b>
43
	<? if ($direct_access == "true"){echo "<b>$l_access_controled</b>";} else {echo "<b>$l_access_denied</b>";}?>
36
	</td>
44
	</td>
37
</tr>
45
</tr>
38
<tr>
46
<tr>
39
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
47
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
40
	<font face=arial,helvetica size=3 color=black>
48
	<font face=arial,helvetica size=3 color=black>
Line 45... Line 53...
45
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
53
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
46
	<font face=arial,helvetica size=1 color=black>
54
	<font face=arial,helvetica size=1 color=black>
47
	<img src="images/logo-alcasar.png">
55
	<img src="images/logo-alcasar.png">
48
<BR><CENTER>ALCASAR</CENTER>
56
<BR><CENTER>ALCASAR</CENTER>
49
</td>
57
</td>
50
	<td width=550 bgcolor=#FFFFFF align=center valign=center>
58
	<td width=550 bgcolor=#FFFFFF valign=center>
51
	<font face=arial,helvetica color=black>
59
	<font face=arial,helvetica color=black>
52
	<font size=3>
60
	<font size=3>
53
	<br><br><br><br>
-
 
54
<?
61
<?
55
# on traite les accès directs sur Alcasar par rapport aux redirections
62
if ($direct_access == "true"){
56
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){
-
 
57
	echo "$l_explain_alcasar <br><br> $l_contact_alcasar";}
63
	echo "<center>$l_welcome</center> <br><li> $l_acc_access <li> $l_internet_access";}
58
	else {echo "$l_explain <br><br> $l_contact";}
64
	else {echo "$l_explain <br><br> $l_contact";}
59
?>
65
?>
60
	<br><br><br><br>
-
 
61
	</td>
66
	</td>
62
</tr>
67
</tr>
63
</table>
68
</table>
64
</body>
69
</body>
65
</html>
70
</html>
66
 
-
 
67
 
-