Subversion Repositories ALCASAR

Rev

Rev 323 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 323 Rev 329
Line 6... Line 6...
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
7
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
7
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
8
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
8
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
9
if($Language == 'fr'){
9
if($Language == 'fr'){
10
  $l_access_denied = "ACCÈS RÈGLEMENTÉ";
10
  $l_access_denied = "ACCÈS RÈGLEMENTÉ";
-
 
11
  $l_access_unavailable= "ACCÈS INDISPONIBLE";
11
  $l_required_domain = "Site WEB demandé";
12
  $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 = "Votre portail détecte que l'accès à Internet est indisponible.";
13
  $l_explain_alcasar = "L'accès au centre de gestion d'ALCASAR (ACC - ALCASAR Control Center) nécéssite une authentification sécurisée.";
14
  $l_explain_alcasar = "L'accès au centre de gestion d'ALCASAR (ACC - 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 = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information";
15
  $l_contact_alcasar = "<a href=\"https://$private_ip\">Acc&egrave;s au centre de gestion</A>";
16
  $l_contact_alcasar = "<a href=\"https://$private_ip\">Acc&egrave;s au centre de gestion</A>";
16
}
17
}
17
else {
18
else {
18
  $l_access_denied = "ACCESS DENIED";
19
  $l_access_denied = "ACCESS DENIED";
-
 
20
  $l_access_unavailable= "ACCESS UNAVAILABLE";
19
  $l_required_domain = "Required WEB site";
21
  $l_required_domain = "Required WEB site";
20
  $l_explain = "Your portal has just detected that the Internet access is down";
22
  $l_explain = "Your portal has just detected that the Internet access is down";
21
  $l_explain_alcasar = "In order to access the ALCASAR Control Center (ACC) you should authenticate threw a secure connection.";
23
  $l_explain_alcasar = "In order to access the ALCASAR Control Center (ACC) you should authenticate threw a secure connection.";
22
  $l_contact = "Contact your Internet provider responsive for more information";
24
  $l_contact = "Contact your Internet provider responsive for more information";
23
  $l_contact_alcasar = "<a href=\"https://$private_ip\">ALCASAR Control Center access</A>";
25
  $l_contact_alcasar = "<a href=\"https://$private_ip\">ALCASAR Control Center access</A>";
Line 30... Line 32...
30
<center>
32
<center>
31
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
33
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
32
<tr>
34
<tr>
33
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
35
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
34
	<font face=arial,helvetica size=6>
36
	<font face=arial,helvetica size=6>
-
 
37
<?
-
 
38
# on traite les accès directs sur Alcasar par rapport aux redirections
-
 
39
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){
35
	<b><? echo "$l_access_denied";?></b>
40
	echo "<b>$l_access_denied</b>";}
-
 
41
	else {echo "<b>$l_access_unavailable</b>";}
-
 
42
?>
36
	</td>
43
	</td>
37
</tr>
44
</tr>
38
<tr>
45
<tr>
39
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
46
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
40
	<font face=arial,helvetica size=3 color=black>
47
	<font face=arial,helvetica size=3 color=black>