Line 1... |
Line 1... |
1 |
<html>
|
1 |
<html>
|
2 |
<?
|
2 |
<?
|
- |
|
3 |
$private_ip = "192.168.182.1";
|
3 |
# Choice of language
|
4 |
# Choice of language
|
4 |
$Language = 'en';
|
5 |
$Language = 'en';
|
5 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
6 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
6 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
7 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
7 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
8 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
8 |
if($Language == 'fr'){
|
9 |
if($Language == 'fr'){
|
9 |
$l_anavailable_access = "ACCES INTERNET INDISPONIBLE";
|
10 |
$l_anavailable_access = "ACCES INTERNET INDISPONIBLE";
|
10 |
$l_required_domain = "Site WEB demandé";
|
11 |
$l_required_domain = "Site WEB demandé";
|
11 |
$l_explain = "Votre portail constate un dysfonctionnement de l'accès Internet de votre organisme";
|
12 |
$l_explain = "Le portail ALCASAR a détecté que l'accès Internet de votre organisme n'était plus fonctionnel";
|
- |
|
13 |
$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).";
|
12 |
$l_contact = "Contactez le responsable de cet accès pour plus d'information";
|
14 |
$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";
|
- |
|
15 |
$l_contact_alcasar = "<a href=\"https://alcasar\">Accès au centre de gestion</A>";
|
13 |
}
|
16 |
}
|
14 |
else {
|
17 |
else {
|
15 |
$l_anavailable_access = "INTERNET ACCESS UNAVAILABLE";
|
18 |
$l_anavailable_access = "INTERNET ACCESS UNAVAILABLE";
|
16 |
$l_required_domain = "Required WEB site";
|
19 |
$l_required_domain = "Required WEB site";
|
17 |
$l_explain = "Your portal has just detected that the Internet access is down";
|
20 |
$l_explain = "ALCASAR has just detected that the Internet access is down";
|
- |
|
21 |
$l_explain_alcasar = "In order to access to the ALCASAR Control Center you should authenticate threw a secure connection (https).";
|
18 |
$l_contact = "Contact your Internet provider responsive for more information";
|
22 |
$l_contact = "A new connection test is performed every 3'<br>Contact your Internet provider responsive for more information.";
|
- |
|
23 |
$l_contact_alcasar = "<a href=\"https://alcasar\">ALCASAR Control Center access</A>";
|
19 |
}
|
24 |
}
|
20 |
?>
|
25 |
?>
|
21 |
<head>
|
26 |
<head>
|
22 |
<title><? echo "ALCASAR - $l_anavailable_access";?></title>
|
27 |
<title><? echo "ALCASAR - $l_anavailable_access";?></title>
|
23 |
</head>
|
28 |
</head>
|
Line 44... |
Line 49... |
44 |
</td>
|
49 |
</td>
|
45 |
<td width=550 bgcolor=#FFFFFF align=center valign=center>
|
50 |
<td width=550 bgcolor=#FFFFFF align=center valign=center>
|
46 |
<font face=arial,helvetica color=black>
|
51 |
<font face=arial,helvetica color=black>
|
47 |
<font size=3>
|
52 |
<font size=3>
|
48 |
<br><br><br><br>
|
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";}
|
49 |
<? echo "$l_explain<br><br>$l_contact";?>
|
58 |
else {echo "$l_explain <br><br> $l_contact";}
|
- |
|
59 |
?>
|
50 |
<br><br><br><br>
|
60 |
<br><br><br><br>
|
51 |
<font size=1>
|
61 |
<font size=1>
|
52 |
diagnostic = eth0 link down
|
62 |
diagnostic = eth0 link down
|
53 |
</font>
|
63 |
</font>
|
54 |
</td>
|
64 |
</td>
|