Subversion Repositories ALCASAR

Rev

Rev 346 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 346 Rev 359
Line 8... Line 8...
8
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
8
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
9
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
9
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
10
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
10
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
11
if($Language == 'fr'){
11
if($Language == 'fr'){
12
  $l_access_denied = "ACCÈS REFUSÉ";
12
  $l_access_denied = "ACCÈS REFUSÉ";
-
 
13
  $l_access_controled = "ACCÈS CONTROLÉ";
13
  $l_required_domain = "Site WEB demandé";
14
  $l_required_domain = "Site WEB demandé";
14
  $l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
15
  $l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
15
  $l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
16
  $l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
16
  $l_welcome = "Bienvenue sur la page d'accueil du portail.<br>Actions possibles : ";
17
  $l_welcome = "Bienvenue sur la page d'accueil du portail ALCASAR";
17
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
18
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
-
 
19
  $l_acc_access_explain = "Acc&egrave;s aux param&egrave;tres d'administration. Vous devez avoir le couple login / mot de passe vous autorisant &agrave; modifier les param&egrave;tres du portail captif.";
18
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Vous d&eacute;connecter si votre session est ouverte</A>";
20
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">D&eacute;connexion</A>";
-
 
21
  $l_logout_explain = "Vous permet de d&eacute;connectez une session ouverte.";
19
  $l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>";
22
  $l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>";
-
 
23
  $l_password_change_explain = "Vous redirige sur la pages de changement du mot de passe de votre compte d'acc&egrave;s &agrave; internet.";
-
 
24
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
20
}
25
}
21
else {
26
else {
22
  $l_access_denied = "ACCESS DENIED";
27
  $l_access_denied = "ACCESS DENIED";
-
 
28
  $l_access_controled = "ACESS CONTROLED";
23
  $l_required_domain = "Required WEB site";
29
  $l_required_domain = "Required WEB site";
24
  $l_explain = "Your portal has just detected that the Internet access is down";
30
  $l_explain = "Your portal has just detected that the Internet access is down";
25
  $l_contact = "Contact your Internet provider responsive for more information";
31
  $l_contact = "Contact your Internet provider responsive for more information";
26
  $l_welcome = "Welcome on the captive portal ALCASAR.<br>Possible actions : ";
32
  $l_welcome = "Welcome on the captive portal ALCASAR";
27
  $l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>";
33
  $l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>";
-
 
34
  $l_acc_access_explain = "Admin. access. You must have administrator login and password to modify ALCASAR's properties";
28
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Logoff if your session is open</A>";
35
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Loging off</A>";
-
 
36
  $l_logout_explain = "Logoff if your session is open.";
29
  $l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>";
37
  $l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>";
-
 
38
  $l_password_change_explain = "Redirects you to the password change's page of your internet access account.";
-
 
39
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
30
}
40
}
31
?>
41
?>
32
<head>
42
<head>
33
<title>
43
	<title>
34
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
44
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
35
</title>
45
	</title>
-
 
46
	<LINK rel=stylesheet type=text/css href="css/style_intercept.css">
36
</head>
47
</head>
37
<body bgcolor=#FFFFFF>
-
 
38
<center>
-
 
39
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
-
 
40
<tr>
48
 
41
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
-
 
42
	<font face=arial,helvetica size=6>
-
 
43
	<? if ($direct_access == "true"){echo "<img height=\"90\" src=\"images/titre-alcasar.png\">";} else {echo "<b>$l_access_denied</b>";}?>
-
 
44
	</td>
-
 
45
</tr>
-
 
46
<tr>
-
 
47
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
-
 
48
	<font face=arial,helvetica size=3 color=black>
-
 
49
		<b><? if ($direct_access != "true"){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?></b>
-
 
50
	</td>
49
	<BODY>
51
</tr>
-
 
52
<tr>
-
 
53
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
-
 
54
	<font face=arial,helvetica size=1 color=black>
-
 
55
	<img height="150" src="images/logo-alcasar.png">
-
 
56
</td>
-
 
57
	<td width=550 bgcolor=#FFFFFF valign=center>
-
 
58
	<font face=arial,helvetica color=black>
-
 
59
	<font size=3>
-
 
60
<?
50
<?
61
if ($direct_access == "true"){
51
if ($direct_access == "true"){
-
 
52
	echo "
-
 
53
		<DIV id=\"cadre_titre\" class=\"titre_controle\">
62
	echo "<center>$l_welcome</center> <br> <li> $l_logout <li> $l_password_change <li> $l_acc_access";}
54
			<P id=\"acces_controle\" class=\"titre_controle\">$l_access_controled</P>";
-
 
55
	}
-
 
56
else{
-
 
57
	echo"
63
	else {echo "$l_explain <br><br> $l_contact";}
58
		<DIV id=\"cadre_titre\" class=\"titre_refus\">
-
 
59
			<P id=\"acces_controle\" class=\"titre_refus\">$l_access_denied</P>";
-
 
60
	}
64
?>
61
?>
-
 
62
			<DIV id="boite_logo">
-
 
63
				<IMG src="images/organisme.png">
-
 
64
			</DIV>
65
	</td>
65
		</DIV>
-
 
66
		<DIV id="contenu_acces">
-
 
67
			<DIV id="box_url">
-
 
68
				<? if ($direct_access != "true"){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?>
-
 
69
			</DIV>
-
 
70
<? if ($direct_access == "true"){
-
 
71
	echo "
-
 
72
			<DIV id=\"box_bienvenue\">
-
 
73
				$l_welcome
-
 
74
			</DIV>
-
 
75
			<DIV class=\"box_menu_courte\" id=\"box_1\">
-
 
76
				<IMG src=\"images/cle.png\">
-
 
77
				<SPAN>$l_password_change</SPAN>
-
 
78
				<P>$l_password_change_explain</P>
-
 
79
			</DIV>
-
 
80
			<DIV class=\"box_menu_courte\" id=\"box_2\">
-
 
81
				<SPAN>$l_logout</SPAN>
-
 
82
				<IMG src=\"images/globe.png\">
-
 
83
				<P>$l_logout_explain</P> 
-
 
84
			</DIV>
-
 
85
			<DIV class=\"box_menu_large\" id=\"box_3\">
-
 
86
				<SPAN>$l_acc_access</SPAN>
-
 
87
				<IMG src=\"images/logo-alcasar.png\">
-
 
88
				<P>$l_acc_access_explain</P>
-
 
89
			</DIV>";}
-
 
90
	else {echo "
-
 
91
			<DIV id=\"box_refuse\">
-
 
92
				<img src=\"images/interdit.png\">
-
 
93
				<P>$l_explain</P>
-
 
94
				<P>$l_contact</P>
66
</tr>
95
			</DIV>
-
 
96
			<DIV id=\"liens_redir\">
-
 
97
				<P>$l_back_page</P>
-
 
98
			</DIV>";}?>
67
</table>
99
		</DIV>
68
</body>
100
	</BODY>
69
</html>
101
</html>