1,5 → 1,6 |
<html> |
<? |
$private_ip = "192.168.182.1"; |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |
8,14 → 9,18 |
if($Language == 'fr'){ |
$l_anavailable_access = "ACCES INTERNET INDISPONIBLE"; |
$l_required_domain = "Site WEB demandé"; |
$l_explain = "Votre portail constate un dysfonctionnement de l'accès Internet de votre organisme"; |
$l_contact = "Contactez le responsable de cet accès pour plus d'information"; |
$l_explain = "Le portail ALCASAR a détecté que l'accès Internet de votre organisme n'était plus fonctionnel"; |
$l_explain_alcasar = "L'accès au centre de gestion graphique du portail captif ALCASAR nécéssite une authentification à travers un flux chiffré (https)."; |
$l_contact = "Un nouveau test de connexion est réalisé toute les 3'.<br>Contactez votre FAI ou le responsable de cet accès pour plus d'information"; |
$l_contact_alcasar = "<a href=\"https://alcasar\">Accès au centre de gestion</A>"; |
} |
else { |
$l_anavailable_access = "INTERNET ACCESS UNAVAILABLE"; |
$l_required_domain = "Required WEB site"; |
$l_explain = "Your portal has just detected that the Internet access is down"; |
$l_contact = "Contact your Internet provider responsive for more information"; |
$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> |
46,7 → 51,12 |
<font face=arial,helvetica color=black> |
<font size=3> |
<br><br><br><br> |
<? echo "$l_explain<br><br>$l_contact";?> |
<? |
# 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 |