318 |
richard |
1 |
<html>
|
|
|
2 |
<?
|
|
|
3 |
$private_ip = "192.168.182.1";
|
|
|
4 |
# Choice of language
|
|
|
5 |
$Language = 'en';
|
|
|
6 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
|
|
7 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
8 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
|
|
9 |
if($Language == 'fr'){
|
|
|
10 |
$l_access_denied = "ACCÈS REFUSÉ";
|
|
|
11 |
$l_required_domain = "Site WEB demandé";
|
|
|
12 |
$l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
|
|
|
13 |
$l_explain_alcasar = "L'accès au centre de gestion du portail ALCASAR (ALCASAR Control Center) nécéssite une authentification sécurisée.";
|
|
|
14 |
$l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
|
|
|
15 |
$l_contact_alcasar = "<a href=\"https://alcasar/acc\">Accès au centre de gestion</A>";
|
|
|
16 |
}
|
|
|
17 |
else {
|
|
|
18 |
$l_access_denied = "ACCESS DENIED";
|
|
|
19 |
$l_required_domain = "Required WEB site";
|
|
|
20 |
$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";
|
|
|
23 |
$l_contact_alcasar = "<a href=\"https://alcasar/acc\">ALCASAR Control Center access</A>";
|
|
|
24 |
}
|
|
|
25 |
?>
|
|
|
26 |
<head>
|
|
|
27 |
<title><? echo "ALCASAR - $l_access_denied";?></title>
|
|
|
28 |
</head>
|
|
|
29 |
<body bgcolor=#FFFFFF>
|
|
|
30 |
<center>
|
|
|
31 |
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
|
|
|
32 |
<tr>
|
|
|
33 |
<td colspan=2 bgcolor=#FEA700 height=100 align=center>
|
|
|
34 |
<font face=arial,helvetica size=6>
|
|
|
35 |
<b><? echo "$l_access_denied";?></b>
|
|
|
36 |
</td>
|
|
|
37 |
</tr>
|
|
|
38 |
<tr>
|
|
|
39 |
<td colspan=2 bgcolor=#FFFACD height=30 align=right>
|
|
|
40 |
<font face=arial,helvetica size=3 color=black>
|
|
|
41 |
<b><? echo "$l_required_domain : $_SERVER[HTTP_HOST]";?></b>
|
|
|
42 |
</td>
|
|
|
43 |
</tr>
|
|
|
44 |
<tr>
|
|
|
45 |
<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
|
|
|
46 |
<font face=arial,helvetica size=1 color=black>
|
|
|
47 |
<img src="images/logo-alcasar.png">
|
|
|
48 |
<BR><CENTER>ALCASAR</CENTER>
|
|
|
49 |
</td>
|
|
|
50 |
<td width=550 bgcolor=#FFFFFF align=center valign=center>
|
|
|
51 |
<font face=arial,helvetica color=black>
|
|
|
52 |
<font size=3>
|
|
|
53 |
<br><br><br><br>
|
|
|
54 |
<?
|
|
|
55 |
# on traite les accès directs sur Alcasar par rapport aux redirections
|
|
|
56 |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){
|
|
|
57 |
echo "$l_explain_alcasar <br><br> $l_contact_alcasar";}
|
|
|
58 |
else {echo "$l_explain <br><br> $l_contact";}
|
|
|
59 |
?>
|
|
|
60 |
<br><br><br><br>
|
|
|
61 |
</td>
|
|
|
62 |
</tr>
|
|
|
63 |
</table>
|
|
|
64 |
</body>
|
|
|
65 |
</html>
|
|
|
66 |
|
|
|
67 |
|