Subversion Repositories ALCASAR

Rev

Rev 308 | Go to most recent revision | Blame | Last modification | View Log

<html>
<?
$private_ip = "192.168.182.1";
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
  $l_anavailable_access = "ACCES INTERNET INDISPONIBLE";
  $l_required_domain = "Site WEB demand&eacute;";
  $l_explain = "Le portail ALCASAR a d&eacute;tect&eacute; que l'acc&egrave;s Internet de votre organisme n'&eacute;tait plus fonctionnel";
  $l_explain_alcasar = "L'acc&egrave;s au centre de gestion graphique du portail captif ALCASAR n&eacute;c&eacute;ssite une authentification &agrave; travers un flux chiffr&eacute; (https).";
  $l_contact = "Un nouveau test de connexion est r&eacute;alis&eacute; toute les 3'.<br>Contactez votre FAI ou le responsable de cet acc&egrave;s pour plus d'information";
  $l_contact_alcasar = "<a href=\"https://alcasar\">Acc&egrave;s au centre de gestion</A>";
}
else {
  $l_anavailable_access = "INTERNET ACCESS UNAVAILABLE";
  $l_required_domain = "Required WEB site";
  $l_explain = "ALCASAR has just detected that the Internet access is down";
  $l_explain_alcasar = "In order to access to the ALCASAR Control Center you should authenticate threw a secure connection (https).";
  $l_contact = "A new connection test is performed every 3'<br>Contact your Internet provider responsive for more information.";
  $l_contact_alcasar = "<a href=\"https://alcasar\">ALCASAR Control Center access</A>";
}
?>
<head>
<title><? echo "ALCASAR - $l_anavailable_access";?></title>
</head>
<body bgcolor=#FFFFFF>
<center>
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
<tr>
        <td colspan=2 bgcolor=#FEA700 height=100 align=center>
        <font face=arial,helvetica size=6>
        <b><? echo "$l_anavailable_access";?></b>
        </td>
</tr>
<tr>
        <td colspan=2 bgcolor=#FFFACD height=30 align=right>
        <font face=arial,helvetica size=3 color=black>
                <b><? echo "$l_required_domain : $_SERVER[HTTP_HOST]";?></b>
        </td>
</tr>
<tr>
        <td align=center valign=bottom width=150 bgcolor=#B0C4DE>
        <font face=arial,helvetica size=1 color=black>
        <img src="/logo-alcasar.png">
<BR><CENTER>ALCASAR</CENTER>
</td>
        <td width=550 bgcolor=#FFFFFF align=center valign=center>
        <font face=arial,helvetica color=black>
        <font size=3>
        <br><br><br><br>
<?
# on traite les accès directs sur Alcasar par rapport aux redirections
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){
        echo "$l_explain_alcasar <br><br> $l_contact_alcasar";}
        else {echo "$l_explain <br><br> $l_contact";}
?>
        <br><br><br><br>
        <font size=1>
        diagnostic = eth0 link down
        </font>
        </td>
</tr>
</table>
</body>
</html>