Subversion Repositories ALCASAR

Rev

Rev 359 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
318 richard 1
<html>
2
<?
360 richard 3
$private_ip = "192.168.182.1";
4
$network_pb = "false";
323 richard 5
# on discrimine les accès directs sur Alcasar par rapport aux redirections
6
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){$direct_access="true";} else {$direct_access="false";}
318 richard 7
# Choice of language
8
$Language = 'en';
9
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
10
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
11
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
12
if($Language == 'fr'){
13
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
359 richard 14
  $l_access_controled = "ACC&Egrave;S CONTROL&Eacute;";
360 richard 15
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
318 richard 16
  $l_required_domain = "Site WEB demand&eacute;";
360 richard 17
  $l_explain_access_deny = "Vous tentez d'acc&eacute;der &agrave; une ressource dont le contenu est r&eacute;put&eacute; contenir des informations inappropri&eacute;es.";
18
  $l_explain_net_pb = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
19
  $l_contact_access_deny = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
20
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information";
359 richard 21
  $l_welcome = "Bienvenue sur la page d'accueil du portail ALCASAR";
329 richard 22
  $l_acc_access = "<a href=\"https://$private_ip/acc\">Acc&eacute;der au centre de gestion (ALCASAR Control Center)</A>";
360 richard 23
  $l_acc_access_explain = "Acc&egrave;s aux param&egrave;tres d'administration du portail. Vous devez posséder un compte d'administration.";
359 richard 24
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">D&eacute;connexion</A>";
25
  $l_logout_explain = "Vous permet de d&eacute;connectez une session ouverte.";
346 richard 26
  $l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>";
359 richard 27
  $l_password_change_explain = "Vous redirige sur la pages de changement du mot de passe de votre compte d'acc&egrave;s &agrave; internet.";
28
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
318 richard 29
}
30
else {
31
  $l_access_denied = "ACCESS DENIED";
359 richard 32
  $l_access_controled = "ACESS CONTROLED";
360 richard 33
  $l_access_unavailable = "ACCESS UNAVAILABLE";
318 richard 34
  $l_required_domain = "Required WEB site";
360 richard 35
  $l_explain_access_deny = "Your portal has just detected that the Internet access is down";
36
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
37
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
38
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
359 richard 39
  $l_welcome = "Welcome on the captive portal ALCASAR";
346 richard 40
  $l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>";
360 richard 41
  $l_acc_access_explain = "Access to the ALCASAR Control Center. You must have an administrative login and password";
359 richard 42
  $l_logout = "<a href=\"http://$private_ip:3990/logoff\">Loging off</A>";
43
  $l_logout_explain = "Logoff if your session is open.";
346 richard 44
  $l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>";
359 richard 45
  $l_password_change_explain = "Redirects you to the password change's page of your internet access account.";
46
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
318 richard 47
}
48
?>
49
<head>
359 richard 50
	<title>
323 richard 51
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?>
359 richard 52
	</title>
53
	<LINK rel=stylesheet type=text/css href="css/style_intercept.css">
318 richard 54
</head>
359 richard 55
 
56
	<BODY>
318 richard 57
<?
323 richard 58
if ($direct_access == "true"){
359 richard 59
	echo "
60
		<DIV id=\"cadre_titre\" class=\"titre_controle\">
61
			<P id=\"acces_controle\" class=\"titre_controle\">$l_access_controled</P>";
62
	}
360 richard 63
else {
359 richard 64
	echo"
65
		<DIV id=\"cadre_titre\" class=\"titre_refus\">
360 richard 66
			<P id=\"acces_controle\" class=\"titre_refus\">";
67
	if ($network_pb) { echo "$l_access_unavailable </P>" } else { echo "$l_access_denied </P>" }
359 richard 68
	}
318 richard 69
?>
359 richard 70
			<DIV id="boite_logo">
71
				<IMG src="images/organisme.png">
72
			</DIV>
73
		</DIV>
74
		<DIV id="contenu_acces">
75
			<DIV id="box_url">
76
				<? if ($direct_access != "true"){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?>
77
			</DIV>
78
<? if ($direct_access == "true"){
79
	echo "
80
			<DIV id=\"box_bienvenue\">
81
				$l_welcome
82
			</DIV>
83
			<DIV class=\"box_menu_courte\" id=\"box_1\">
84
				<IMG src=\"images/cle.png\">
85
				<SPAN>$l_password_change</SPAN>
86
				<P>$l_password_change_explain</P>
87
			</DIV>
88
			<DIV class=\"box_menu_courte\" id=\"box_2\">
89
				<SPAN>$l_logout</SPAN>
90
				<IMG src=\"images/globe.png\">
91
				<P>$l_logout_explain</P> 
92
			</DIV>
93
			<DIV class=\"box_menu_large\" id=\"box_3\">
94
				<SPAN>$l_acc_access</SPAN>
95
				<IMG src=\"images/logo-alcasar.png\">
96
				<P>$l_acc_access_explain</P>
97
			</DIV>";}
98
	else {echo "
99
			<DIV id=\"box_refuse\">
100
				<img src=\"images/interdit.png\">
101
				<P>$l_explain</P>
102
				<P>$l_contact</P>
103
			</DIV>
104
			<DIV id=\"liens_redir\">
105
				<P>$l_back_page</P>
106
			</DIV>";}?>
107
		</DIV>
108
	</BODY>
318 richard 109
</html>