Subversion Repositories ALCASAR

Rev

Rev 340 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 340 Rev 346
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 CONTRÔLÉ";
-
 
14
  $l_required_domain = "Site WEB demandé";
13
  $l_required_domain = "Site WEB demandé";
15
  $l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
14
  $l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
16
  $l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
15
  $l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
17
  $l_welcome = "Bienvenue sur le portail captif ALCASAR.<br>Vous pouvez : ";
16
  $l_welcome = "Bienvenue sur la page d'accueil du portail.<br>Actions possibles : ";
18
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
17
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
19
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Vous d&eacute;connecter si votre session est ouverte</A>";
18
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Vous d&eacute;connecter si votre session est ouverte</A>";
20
  $l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Tester l'interception de l'acc&egrave;s &agrave; Internet</A>";
19
  $l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>";
21
}
20
}
22
else {
21
else {
23
  $l_access_denied = "ACCESS DENIED";
22
  $l_access_denied = "ACCESS DENIED";
24
  $l_access_controled = "ACCESS CONTROLED";
-
 
25
  $l_required_domain = "Required WEB site";
23
  $l_required_domain = "Required WEB site";
26
  $l_explain = "Your portal has just detected that the Internet access is down";
24
  $l_explain = "Your portal has just detected that the Internet access is down";
27
  $l_contact = "Contact your Internet provider responsive for more information";
25
  $l_contact = "Contact your Internet provider responsive for more information";
28
  $l_welcome = "Welcome on the captive portal ALCASAR.<br>You can connect: ";
26
  $l_welcome = "Welcome on the captive portal ALCASAR.<br>Possible actions : ";
29
  $l_acc_access = "<a href=\"https://$private_ip/acc\">to the ALCASAR Control Center (ACC)</A>";
27
  $l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>";
30
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Logoff if your session is open</A>";
28
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Logoff if your session is open</A>";
31
  $l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Internet intercept page for Test</A>";
29
  $l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>";
32
}
30
}
33
?>
31
?>
34
<head>
32
<head>
35
<title>
33
<title>
36
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
34
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
Line 40... Line 38...
40
<center>
38
<center>
41
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
39
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700>
42
<tr>
40
<tr>
43
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
41
	<td colspan=2 bgcolor=#FEA700 height=100 align=center>
44
	<font face=arial,helvetica size=6>
42
	<font face=arial,helvetica size=6>
45
	<? if ($direct_access == "true"){echo "<b>$l_access_controled</b>";} else {echo "<b>$l_access_denied</b>";}?>
43
	<? if ($direct_access == "true"){echo "<img height=\"90\" src=\"images/titre-alcasar.png\">";} else {echo "<b>$l_access_denied</b>";}?>
46
	</td>
44
	</td>
47
</tr>
45
</tr>
48
<tr>
46
<tr>
49
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
47
	<td colspan=2 bgcolor=#FFFACD height=30 align=right>
50
	<font face=arial,helvetica size=3 color=black>
48
	<font face=arial,helvetica size=3 color=black>
51
		<b><? echo "$l_required_domain : $_SERVER[HTTP_HOST]";?></b>
49
		<b><? if ($direct_access != "true"){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?></b>
52
	</td>
50
	</td>
53
</tr>
51
</tr>
54
<tr>
52
<tr>
55
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
53
	<td align=center valign=bottom width=150 bgcolor=#B0C4DE>
56
	<font face=arial,helvetica size=1 color=black>
54
	<font face=arial,helvetica size=1 color=black>
Line 59... Line 57...
59
	<td width=550 bgcolor=#FFFFFF valign=center>
57
	<td width=550 bgcolor=#FFFFFF valign=center>
60
	<font face=arial,helvetica color=black>
58
	<font face=arial,helvetica color=black>
61
	<font size=3>
59
	<font size=3>
62
<?
60
<?
63
if ($direct_access == "true"){
61
if ($direct_access == "true"){
64
	echo "<center>$l_welcome</center> <br><li> $l_acc_access <li> $l_logout <li> $l_internet_access";}
62
	echo "<center>$l_welcome</center> <br> <li> $l_logout <li> $l_password_change <li> $l_acc_access";}
65
	else {echo "$l_explain <br><br> $l_contact";}
63
	else {echo "$l_explain <br><br> $l_contact";}
66
?>
64
?>
67
	</td>
65
	</td>
68
</tr>
66
</tr>
69
</table>
67
</table>