Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
318 richard 1
<html>
2
<?
323 richard 3
# on discrimine les accès directs sur Alcasar par rapport aux redirections
318 richard 4
$private_ip = "192.168.182.1";
323 richard 5
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){$direct_access="true";} else {$direct_access="false";}
318 richard 6
# Choice of language
7
$Language = 'en';
8
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
9
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
10
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
11
if($Language == 'fr'){
12
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
359 richard 13
  $l_access_controled = "ACC&Egrave;S CONTROL&Eacute;";
318 richard 14
  $l_required_domain = "Site WEB demand&eacute;";
15
  $l_explain = "Vous tentez d'acc&eacute;der &agrave; une ressource dont le contenu est r&eacute;put&eacute; contenir des informations inappropri&eacute;es.";
16
  $l_contact = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
359 richard 17
  $l_welcome = "Bienvenue sur la page d'accueil du portail ALCASAR";
329 richard 18
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
359 richard 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.";
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.";
346 richard 22
  $l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>";
359 richard 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>";
318 richard 25
}
26
else {
27
  $l_access_denied = "ACCESS DENIED";
359 richard 28
  $l_access_controled = "ACESS CONTROLED";
318 richard 29
  $l_required_domain = "Required WEB site";
30
  $l_explain = "Your portal has just detected that the Internet access is down";
31
  $l_contact = "Contact your Internet provider responsive for more information";
359 richard 32
  $l_welcome = "Welcome on the captive portal ALCASAR";
346 richard 33
  $l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>";
359 richard 34
  $l_acc_access_explain = "Admin. access. You must have administrator login and password to modify ALCASAR's properties";
35
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Loging off</A>";
36
  $l_logout_explain = "Logoff if your session is open.";
346 richard 37
  $l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>";
359 richard 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>";
318 richard 40
}
41
?>
42
<head>
359 richard 43
	<title>
323 richard 44
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
359 richard 45
	</title>
46
	<LINK rel=stylesheet type=text/css href="css/style_intercept.css">
318 richard 47
</head>
359 richard 48
 
49
	<BODY>
318 richard 50
<?
323 richard 51
if ($direct_access == "true"){
359 richard 52
	echo "
53
		<DIV id=\"cadre_titre\" class=\"titre_controle\">
54
			<P id=\"acces_controle\" class=\"titre_controle\">$l_access_controled</P>";
55
	}
56
else{
57
	echo"
58
		<DIV id=\"cadre_titre\" class=\"titre_refus\">
59
			<P id=\"acces_controle\" class=\"titre_refus\">$l_access_denied</P>";
60
	}
318 richard 61
?>
359 richard 62
			<DIV id="boite_logo">
63
				<IMG src="images/organisme.png">
64
			</DIV>
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>
95
			</DIV>
96
			<DIV id=\"liens_redir\">
97
				<P>$l_back_page</P>
98
			</DIV>";}?>
99
		</DIV>
100
	</BODY>
318 richard 101
</html>