Subversion Repositories ALCASAR

Rev

Rev 329 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
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&Egrave;S R&Egrave;GLEMENT&Eacute;";
329 richard 11
  $l_access_unavailable= "ACC&Egrave;S INDISPONIBLE";
318 richard 12
  $l_required_domain = "Site WEB demand&eacute;";
329 richard 13
  $l_explain = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
318 richard 14
  $l_explain_alcasar = "L'acc&egrave;s au centre de gestion d'ALCASAR (ACC - ALCASAR Control Center) n&eacute;c&eacute;ssite une authentification s&eacute;curis&eacute;e.";
329 richard 15
  $l_contact = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information";
323 richard 16
  $l_contact_alcasar = "<a href=\"https://$private_ip\">Acc&egrave;s au centre de gestion</A>";
318 richard 17
}
18
else {
19
  $l_access_denied = "ACCESS DENIED";
329 richard 20
  $l_access_unavailable= "ACCESS UNAVAILABLE";
318 richard 21
  $l_required_domain = "Required WEB site";
22
  $l_explain = "Your portal has just detected that the Internet access is down";
23
  $l_explain_alcasar = "In order to access the ALCASAR Control Center (ACC) you should authenticate threw a secure connection.";
24
  $l_contact = "Contact your Internet provider responsive for more information";
323 richard 25
  $l_contact_alcasar = "<a href=\"https://$private_ip\">ALCASAR Control Center access</A>";
318 richard 26
}
27
?>
28
<head>
29
<title><? echo "ALCASAR - $l_access_denied";?></title>
30
</head>
31
<body bgcolor=#FFFFFF>
32
<center>
33
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
34
<tr>
35
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
36
	<font face=arial,helvetica size=6>
329 richard 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")){
40
	echo "<b>$l_access_denied</b>";}
41
	else {echo "<b>$l_access_unavailable</b>";}
42
?>
318 richard 43
	</td>
44
</tr>
45
<tr>
46
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
47
	<font face=arial,helvetica size=3 color=black>
48
		<b><? echo "$l_required_domain : $_SERVER[HTTP_HOST]";?></b>
49
	</td>
50
</tr>
51
<tr>
52
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
53
	<font face=arial,helvetica size=1 color=black>
340 richard 54
	<img height="150" src="images/logo-alcasar.png">
318 richard 55
</td>
56
	<td width=550 bgcolor=#FFFFFF align=center valign=center>
57
	<font face=arial,helvetica color=black>
58
	<font size=3>
59
	<br><br><br><br>
60
<?
61
# on traite les accès directs sur Alcasar par rapport aux redirections
62
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){
63
	echo "$l_explain_alcasar <br><br> $l_contact_alcasar";}
64
	else {echo "$l_explain <br><br> $l_contact";}
65
?>
66
	<br><br><br><br>
67
	</td>
68
</tr>
69
</table>
70
</body>
71
</html>
72
 
73