Subversion Repositories ALCASAR

Rev

Rev 1988 | Rev 1992 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1988 Rev 1989
1
<?php
1
<?php
2
# $Id: index.php 1988 2016-07-13 14:16:37Z raphael.pion $
2
# $Id: index.php 1989 2016-07-14 13:38:53Z raphael.pion $
3
#
3
#
4
# index.php for ALCASAR
4
# index.php for ALCASAR
5
# by REXY
5
# by REXY
6
# UI & css style by stephane ERARD
6
# UI & css style by stephane ERARD
7
# The contents of this file may be used under the terms of the GNU
7
# The contents of this file may be used under the terms of the GNU
8
# General Public License Version 2, provided that the above copyright
8
# General Public License Version 2, provided that the above copyright
9
# notice and this permission notice is included in all copies or
9
# notice and this permission notice is included in all copies or
10
# substantial portions of the software.
10
# substantial portions of the software.
11
/****************************************************************
11
/****************************************************************
12
*			GLOBAL FILE PATHS			*
12
*			GLOBAL FILE PATHS			*
13
*****************************************************************/
13
*****************************************************************/
14
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
14
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
15
 
15
 
16
/****************************************************************
16
/****************************************************************
17
*			FILE reading test			*
17
*			FILE reading test			*
18
*****************************************************************/
18
*****************************************************************/
19
$conf_files=array(CONF_FILE);
19
$conf_files=array(CONF_FILE);
20
foreach ($conf_files as $file){
20
foreach ($conf_files as $file){
21
	if (!file_exists($file)){
21
	if (!file_exists($file)){
22
		exit("File ".$file." unknown");
22
		exit("File ".$file." unknown");
23
	}
23
	}
24
	if (!is_readable($file)){
24
	if (!is_readable($file)){
25
		exit("You don't have read rights on the file ".$file);
25
		exit("You don't have read rights on the file ".$file);
26
	}
26
	}
27
}
27
}
28
/****************************************************************
28
/****************************************************************
29
*			Read CONF_FILE				*
29
*			Read CONF_FILE				*
30
*****************************************************************/
30
*****************************************************************/
31
$ouvre=fopen(CONF_FILE,"r");
31
$ouvre=fopen(CONF_FILE,"r");
32
if ($ouvre){
32
if ($ouvre){
33
	while (!feof ($ouvre))
33
	while (!feof ($ouvre))
34
	{
34
	{
35
		$tampon = fgets($ouvre, 4096);
35
		$tampon = fgets($ouvre, 4096);
36
		if (strpos($tampon,"=")!==false){
36
		if (strpos($tampon,"=")!==false){
37
			$tmp = explode("=",$tampon);
37
			$tmp = explode("=",$tampon);
38
			$conf[$tmp[0]] = $tmp[1];
38
			$conf[$tmp[0]] = $tmp[1];
39
		}
39
		}
40
	}
40
	}
41
}else{
41
}else{
42
	exit("Error opening the file ".CONF_FILE);
42
	exit("Error opening the file ".CONF_FILE);
43
}
43
}
44
fclose($ouvre);
44
fclose($ouvre);
45
$organisme = trim($conf["ORGANISM"]);
45
$organisme = trim($conf["ORGANISM"]);
46
$domainname = trim($conf["DOMAIN"]);
46
$domainname = trim($conf["DOMAIN"]);
47
$hostname = "alcasar.".$domainname;
47
$hostname = "alcasar.".$domainname;
48
$network_pb = False;
48
$network_pb = False;
49
$cert_add = "http://$hostname/certs";
49
$cert_add = "http://$hostname/certs";
50
$direct_access = False;
50
$direct_access = False;
-
 
51
$display_button_user_not_auth_yet=False;
51
$diagnostic = "can't contact the default router";
52
$diagnostic = "can't contact the default router";
52
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "";
53
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "";
53
$tab = array();$user = array();
54
$tab = array();$user = array();
54
$connection_history =  "";
55
$connection_history =  "";
55
$nb_connection_history = 3;
56
$nb_connection_history = 3;
56
 
57
 
57
# Retrieve the user info behind the remote ip
58
# Retrieve the user info behind the remote ip
58
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);
59
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);
59
$user = explode (" ", $tab[0]);
60
$user = explode (" ", $tab[0]);
60
 
61
 
61
# cleaning the cache
62
# cleaning the cache
62
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
63
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
63
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
64
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
64
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
65
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
65
header("Cache-Control: post-check=0, pre-check=0", false);
66
header("Cache-Control: post-check=0, pre-check=0", false);
66
header("Pragma: no-cache");
67
header("Pragma: no-cache");
67
 
68
 
68
 
69
 
69
# Test if it'a direct connexion to ALCASAR
70
# Test if it'a direct connexion to ALCASAR
70
if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST'])))
71
if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST'])))
71
	{
72
	{
72
	$direct_access=True;
73
	$direct_access=True;
73
	}
74
	}
74
# Function to adapt time connexion in seconds to H,M,S
75
# Function to adapt time connexion in seconds to H,M,S
75
function secondsToDuration($seconds = null){
76
function secondsToDuration($seconds = null){
76
	if ($seconds == null) return "";
77
	if ($seconds == null) return "";
77
 
78
 
78
	$temp = $seconds % 3600;
79
	$temp = $seconds % 3600;
79
	$time[0] = ( $seconds - $temp ) / 3600 ;	// hours
80
	$time[0] = ( $seconds - $temp ) / 3600 ;	// hours
80
	$time[2] = $temp % 60 ;				// seconds
81
	$time[2] = $temp % 60 ;				// seconds
81
	$time[1] = ( $temp - $time[2] ) / 60;		// minutes
82
	$time[1] = ( $temp - $time[2] ) / 60;		// minutes
82
	
83
	
83
	return $time[0]." h ".$time[1]." m ".$time[2]." s";
84
	return $time[0]." h ".$time[1]." m ".$time[2]." s";
84
}
85
}
85
 
86
 
86
# If the user is connected : retrieve the 3 last connexions
87
# If the user is connected : retrieve the 3 last connexions
87
if ((isset ($user[4])) && ($user[4] != "0")){
88
if ((isset ($user[4])) && ($user[4] != "0")){
88
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
89
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
89
		include_once("/etc/freeradius-web/config.php");
90
		include_once("/etc/freeradius-web/config.php");
90
		include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
91
		include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
91
		$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
92
		$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
92
		$link = @da_sql_pconnect($config); // on affiche pas les erreurs
93
		$link = @da_sql_pconnect($config); // on affiche pas les erreurs
93
		if ($link){
94
		if ($link){
94
			$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
95
			$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
95
			
96
			
96
			if ($res){
97
			if ($res){
97
				$connection_history.= "<ul>";
98
				$connection_history.= "<ul>";
98
				while(($row = @da_sql_fetch_array($res,$config))){
99
				while(($row = @da_sql_fetch_array($res,$config))){
99
					$connected = "";
100
					$connected = "";
100
					if ($row['acctstoptime'] == "") $connected = " (active)";
101
					if ($row['acctstoptime'] == "") $connected = " (active)";
101
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row['acctsessiontime']).")'>$row[acctstarttime] (".secondsToDuration($row['acctsessiontime']).") $connected</li>";
102
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row['acctsessiontime']).")'>$row[acctstarttime] (".secondsToDuration($row['acctsessiontime']).") $connected</li>";
102
				}
103
				}
103
				$connection_history.="</ul>";
104
				$connection_history.="</ul>";
104
			}
105
			}
105
		}
106
		}
106
	}
107
	}
107
}
108
}
108
else
109
else
109
{
110
{
110
	# the user isn't connected and he isn't in the ipset "not_auth_yet" yet 
111
	# the user isn't connected and he isn't in the ipset "not_auth_yet" yet 
111
	exec("sudo /usr/sbin/ipset list not_auth_yet | grep $remote_ip | wc -l 2>&1", $ipset_not_auth_yet);
112
	exec("sudo /usr/sbin/ipset list not_auth_yet | grep $remote_ip | wc -l 2>&1", $ipset_not_auth_yet);
112
	if(!$direct_access && $ipset_not_auth_yet[0] == '0')
113
	if(!$direct_access && $ipset_not_auth_yet[0] == '0')
113
	{
114
	{
-
 
115
		if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") # if HTTPS, we redirect user to HTTP to flag him (ipset : not_auth_yet)
-
 
116
		{
-
 
117
			header("Location: http://$_SERVER[HTTP_HOST]");
-
 
118
			exit;
-
 
119
		}
-
 
120
		
-
 
121
		$display_button_user_not_auth_yet=True; # Display menu for user not_auth_yet, he need to click on 'open connection' to be flagged in the ipset "not_auth_yet"
-
 
122
	}
-
 
123
	if(isset($_GET['url'])) #When user clicked to open a connection ...
-
 
124
	{
-
 
125
		exec("sudo /usr/sbin/ipset add not_auth_yet $remote_ip"); # Add user in the ipset "not_auth_yet" to not loop when redirected
-
 
126
	        echo "<script>window.location.href='http://$_GET[url]'</script>"; #we redirect him to his HTTP website (to be intecepted by coova)
-
 
127
		exit; 
-
 
128
		
-
 
129
	}
-
 
130
	if ((!$direct_access && !$display_button_user_not_auth_yet) || $ipset_not_auth_yet[0] == '1'){ #if user not_auth_yet still here (index.php), we force DNS resquest.
-
 
131
		 echo "<script>window.location.reload(true)</script>"; #We force DNS request
-
 
132
	}
-
 
133
	
-
 
134
	
-
 
135
	/* ANCIEN FONCTIONNEMENT : l'utilisateur ne cliquait pas sur le boutton pour etre flaggué + pas d'access au menu index.php avec les boutons
-
 
136
	# the user isn't connected and he isn't in the ipset "not_auth_yet" yet 
-
 
137
	exec("sudo /usr/sbin/ipset list not_auth_yet | grep $remote_ip | wc -l 2>&1", $ipset_not_auth_yet);
-
 
138
	if(!$direct_access && $ipset_not_auth_yet[0] == '0')
-
 
139
	{
114
		exec("sudo /usr/sbin/ipset add not_auth_yet $remote_ip"); # Add in the ipset "not_auth_yet" to not loop when redirected
140
		exec("sudo /usr/sbin/ipset add not_auth_yet $remote_ip"); # Add in the ipset "not_auth_yet" to not loop when redirected
-
 
141
		
115
	        if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
142
	        if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
116
	        {
143
	        {
117
	                header("Location: http://$_SERVER[HTTP_HOST]");
144
	                header("Location: http://$_SERVER[HTTP_HOST]");
118
	        }
145
	        }
119
	        else
146
	        else
120
	        {
147
	        {
121
	                echo "<script>window.location.reload(true)</script>"; # the user web browser need to perform a new DNS request when redirected (as in a "<CTRL>+F5")
148
	                echo "<script>window.location.reload(true)</script>"; # the user web browser need to perform a new DNS request when redirected (as in a "<CTRL>+F5")
122
	                echo "<script>window.location.href='http://$_SERVER[HTTP_HOST]'</script>"; 
149
	                echo "<script>window.location.href='http://$_SERVER[HTTP_HOST]'</script>"; 
123
	        }
150
	        }
124
	        exit; 
151
	        exit; 
125
	}
152
	}
-
 
153
	if(!$direct_access) #If user is already in not_auth_yet
-
 
154
        {
-
 
155
                echo "<script>window.location.reload(true)</script>"; #We force DNS request
-
 
156
                exit;
-
 
157
        }*/
-
 
158
	
126
	
159
	
127
	
160
	
128
}
161
}
129
 
-
 
130
# Choice of language
162
# Choice of language
131
$Language = 'en';
163
$Language = 'en';
132
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
164
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
133
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
165
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
134
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
166
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
135
if($Language == 'fr'){
167
if($Language == 'fr'){
136
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
168
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
137
  $l_access_welcome = "Bienvenue sur ALCASAR";
169
  $l_access_welcome = "Bienvenue sur ALCASAR";
138
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
170
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
139
  $l_required_domain = "Site WEB demand&eacute;";
171
  $l_required_domain = "Site WEB demand&eacute;";
140
  $l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez poss&eacute;der un compte d'administration ou de gestion pour y acc&eacute;der.";
172
  $l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez poss&eacute;der un compte d'administration ou de gestion pour y acc&eacute;der.";
141
  $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.";
173
  $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.";
142
  $l_explain_net_pb = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
174
  $l_explain_net_pb = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
143
  $l_contact_access_deny = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
175
  $l_contact_access_deny = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
144
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
176
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
145
  $l_welcome = "Page principale de votre portail captif";
177
  $l_welcome = "Page principale de votre portail captif";
146
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
178
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
147
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installer le certificat racine</a>";
179
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installer le certificat racine</a>";
148
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installation du certificat de l'autorit&eacute; racine d'ALCASAR</a>";
180
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installation du certificat de l'autorit&eacute; racine d'ALCASAR</a>";
149
  $l_certif_explain = "Permet l'&eacute;change de donn&eacute;es s&eacute;curis&eacute;es entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistr&eacute; sur votre station de consultation, il est possible que des alertes de s&eacute;curit&eacute;s soient &eacute;mises par votre navigateur.<br><br>";
181
  $l_certif_explain = "Permet l'&eacute;change de donn&eacute;es s&eacute;curis&eacute;es entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistr&eacute; sur votre station de consultation, il est possible que des alertes de s&eacute;curit&eacute;s soient &eacute;mises par votre navigateur.<br><br>";
150
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
182
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
151
  $l_category = "catégorie :";
183
  $l_category = "catégorie :";
152
if ((isset ($user[4])) && ($user[4] == "0")) {
184
if ((isset ($user[4])) && ($user[4] == "0")) {
153
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre syst&egrave;me.";
185
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre syst&egrave;me.";
-
 
186
	  
-
 
187
	  if($display_button_user_not_auth_yet)
-
 
188
	  {
-
 
189
		  $l_logout = "<a href=\"http://alcasar/index.php?url=$_SERVER[HTTP_HOST]\">Ouvrir une session Internet</a>";
-
 
190
	  }
-
 
191
	  else
-
 
192
	  {
154
	  $l_logout = "<a href=\"http://www.google.com\">Ouvrir une session Internet</a>";
193
		  $l_logout = "<a href=\"http://www.google.com\">Ouvrir une session Internet</a>";
-
 
194
	  }
155
	  
195
	  
156
 
196
 
157
	}
197
	}
158
  else {
198
  else {
159
	  if ($user[5] != $user[0]) // authentication exception or not
199
	  if ($user[5] != $user[0]) // authentication exception or not
160
	  {
200
	  {
161
	  	$l_logout_explain = "Ferme la session de l'usager actuellement connect&eacute;. <br><br>Utilisateur connect&eacute; : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history derni&egrave;res connexions :$connection_history";
201
	  	$l_logout_explain = "Ferme la session de l'usager actuellement connect&eacute;. <br><br>Utilisateur connect&eacute; : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history derni&egrave;res connexions :$connection_history";
162
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se d&eacute;connecter d'internet</a>";
202
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se d&eacute;connecter d'internet</a>";
163
	  }
203
	  }
164
	  else
204
	  else
165
	  {
205
	  {
166
		  $l_logout_explain = "Votre système ($user[5]) est en exception d'authentication.<br><br>$nb_connection_history last connections :$connection_history";
206
		  $l_logout_explain = "Votre système ($user[5]) est en exception d'authentication.<br><br>$nb_connection_history last connections :$connection_history";
167
		  $l_logout = "Information des connexions";
207
		  $l_logout = "Information des connexions";
168
	  }
208
	  }
169
	}
209
	}
170
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
210
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
171
  $l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'acc&egrave;s &agrave; internet.<br><br>Vous devez avoir un compte internet valide.";
211
  $l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'acc&egrave;s &agrave; internet.<br><br>Vous devez avoir un compte internet valide.";
172
  $l_sms_explain = "Vous redirige vers une la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
212
  $l_sms_explain = "Vous redirige vers une la page explicative de l'auto enregistrement par SMS.<br><br><strong>Identifiant:</strong> votre numéro de téléphone<br><strong>Mot de passe:</strong> votre message";
173
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
213
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
174
  $l_service_sms = "Service SMS actif";
214
  $l_service_sms = "Service SMS actif";
175
  $l_service_sms_n = "Service SMS non actif";
215
  $l_service_sms_n = "Service SMS non actif";
176
  $l_acc_sms = "Auto enregistrement par SMS";
216
  $l_acc_sms = "Auto enregistrement par SMS";
177
}
217
}
178
else if($Language == 'pt'){
218
else if($Language == 'pt'){
179
  $l_access_denied = "Acesso negado";
219
  $l_access_denied = "Acesso negado";
180
  $l_access_welcome = "Bem-vindo ao Alcasar";
220
  $l_access_welcome = "Bem-vindo ao Alcasar";
181
  $l_access_unavailable = "ACESSO INDISPONĂŤVEL";
221
  $l_access_unavailable = "ACESSO INDISPONĂŤVEL";
182
  $l_required_domain = "Site WEB ObrigatĂłrio";
222
  $l_required_domain = "Site WEB ObrigatĂłrio";
183
  $l_explain_acc_access = "Este Ă© o centro de controle do portal para acessar vocĂŞ deve ter uma conta administrativa valida.";
223
  $l_explain_acc_access = "Este Ă© o centro de controle do portal para acessar vocĂŞ deve ter uma conta administrativa valida.";
184
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
224
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
185
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
225
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
186
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
226
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
187
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
227
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
188
  $l_welcome = "Página do portal";
228
  $l_welcome = "Página do portal";
189
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
229
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
190
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
230
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
191
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
231
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
192
  $l_certif_explain = "O certificado Permiti a troca de dados seguro entre seu computador e o portal Alcasar.<BR>Se este certificado não estiver incorporado no seu computador, alguns alertas de segurança deverá aparecer no navegador.<br><br>";
232
  $l_certif_explain = "O certificado Permiti a troca de dados seguro entre seu computador e o portal Alcasar.<BR>Se este certificado não estiver incorporado no seu computador, alguns alertas de segurança deverá aparecer no navegador.<br><br>";
193
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
233
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
194
  $l_category = "categoria :";
234
  $l_category = "categoria :";
195
if ((isset ($user[4])) && ($user[4] == "0")) {
235
if ((isset ($user[4])) && ($user[4] == "0")) {
196
	  $l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
236
	  $l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
-
 
237
	  if($display_button_user_not_auth_yet)
-
 
238
	  {
-
 
239
		  $l_logout = "<a href=\"http://alcasar/index.php?url=$_SERVER[HTTP_HOST]\">Abrir uma conexĂŁo de Internet</a>";
-
 
240
	  }
-
 
241
	  else
-
 
242
	  {
197
	  $l_logout = "<a href=\"http://www.google.com\">Abrir uma conexĂŁo de Internet</a>";
243
		  $l_logout = "<a href=\"http://www.google.com\">Abrir uma conexĂŁo de Internet</a>";
-
 
244
	  }
-
 
245
	  
198
	  
246
	  
199
 
247
 
200
	}
248
	}
201
  else {
249
  else {
202
	  if ($user[5] != $user[0]) // authentication exception or not
250
	  if ($user[5] != $user[0]) // authentication exception or not
203
	  {
251
	  {
204
		  $l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
252
		  $l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
205
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
253
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
206
	  }
254
	  }
207
	  else
255
	  else
208
	  {
256
	  {
209
		  $l_logout_explain = "O sistema ($user[5]) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
257
		  $l_logout_explain = "O sistema ($user[5]) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
210
		  $l_logout = "Informações de conexões";
258
		  $l_logout = "Informações de conexões";
211
	  }
259
	  }
212
  	}
260
  	}
213
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
261
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
214
  $l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
262
  $l_password_change_explain = "Você será redirecionado à página de alteração de senha.<br><br> e deverá ter uma conta de usuário valido para efetuar a troca e acessar à Internet.";
215
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
263
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
216
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
264
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
217
  $l_service_sms = "SMS service enable";
265
  $l_service_sms = "SMS service enable";
218
  $l_service_sms_n = "SMS service disable";
266
  $l_service_sms_n = "SMS service disable";
219
  $l_acc_sms = "Auto registration by SMS";
267
  $l_acc_sms = "Auto registration by SMS";
220
}
268
}
221
else {
269
else {
222
  $l_access_denied = "ACCESS DENIED";
270
  $l_access_denied = "ACCESS DENIED";
223
  $l_access_welcome = "Welcome on ALCASAR";
271
  $l_access_welcome = "Welcome on ALCASAR";
224
  $l_access_unavailable = "ACCESS UNAVAILABLE";
272
  $l_access_unavailable = "ACCESS UNAVAILABLE";
225
  $l_required_domain = "Required WEB site";
273
  $l_required_domain = "Required WEB site";
226
  $l_explain_acc_access = "This center control the portal. You must have an administrative account.";
274
  $l_explain_acc_access = "This center control the portal. You must have an administrative account.";
227
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
275
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
228
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
276
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
229
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
277
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
230
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
278
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
231
  $l_welcome = "Your captive portal main page";
279
  $l_welcome = "Your captive portal main page";
232
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
280
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
233
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
281
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
234
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
282
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
235
  $l_certif_explain = "Allow secure data exchange between your computer and ALCASAR portal.<BR>If this certificate isn't incorporated in your computer, some security alerts should appear in your browser.<br><br>";
283
  $l_certif_explain = "Allow secure data exchange between your computer and ALCASAR portal.<BR>If this certificate isn't incorporated in your computer, some security alerts should appear in your browser.<br><br>";
236
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
284
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
237
  $l_category = "category :";
285
  $l_category = "category :";
238
if ((isset ($user[4])) && ($user[4] == "0")) {
286
if ((isset ($user[4])) && ($user[4] == "0")) {
239
	  $l_logout_explain = "No Internet consultation session is actualy open on your system";
287
	  $l_logout_explain = "No Internet consultation session is actualy open on your system";
-
 
288
	  if($display_button_user_not_auth_yet)
-
 
289
	  {
-
 
290
		  $l_logout = "<a href=\"http://alcasar/index.php?url=$_SERVER[HTTP_HOST]\">Open an Internet session</a>";
-
 
291
	  }
-
 
292
	  else
-
 
293
	  {
240
		$l_logout = "<a href=\"http://www.google.com\">Open an Internet session</a>";
294
		  $l_logout = "<a href=\"http://www.google.com\">Open an Internet session</a>";
-
 
295
	  }
241
	  
296
	  
242
 
297
 
243
	}
298
	}
244
  else {
299
  else {
245
	  if ($user[5] != $user[0]) // authentication exception or not
300
	  if ($user[5] != $user[0]) // authentication exception or not
246
	  {
301
	  {
247
		  $l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
302
		  $l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history last connections :$connection_history";
248
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
303
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
249
	  }
304
	  }
250
	  else
305
	  else
251
	  {
306
	  {
252
		  $l_logout_explain = "Your system ($user[5]) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
307
		  $l_logout_explain = "Your system ($user[5]) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
253
		  $l_logout = "Connections information";
308
		  $l_logout = "Connections information";
254
	  }
309
	  }
255
  	}
310
  	}
256
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
311
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
257
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
312
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
258
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
313
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
259
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
314
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
260
  $l_service_sms = "SMS service enable";
315
  $l_service_sms = "SMS service enable";
261
  $l_service_sms_n = "SMS service disable";
316
  $l_service_sms_n = "SMS service disable";
262
  $l_acc_sms = "Auto registration by SMS";
317
  $l_acc_sms = "Auto registration by SMS";
263
}
318
}
264
 
319
 
265
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
320
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
266
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
321
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
267
 
322
 
268
# set the icons
323
# set the icons
269
$img_rep = "images/";
324
$img_rep = "http://alcasar/images/";
270
$img_organisme = "organisme.png";
325
$img_organisme = "organisme.png";
271
$img_access = "globe_acces_70.png";
326
$img_access = "globe_acces_70.png";
272
$img_connect = "globe_70.png";
327
$img_connect = "globe_70.png";
273
$img_warning = "globe_warning_70.png";
328
$img_warning = "globe_warning_70.png";
274
$img_pwd = "cle_ombre.png";
329
$img_pwd = "cle_ombre.png";
275
$img_certificate = "certificat.png";
330
$img_certificate = "certificat.png";
276
$img_acc = "logo-alcasar_70.png";
331
$img_acc = "logo-alcasar_70.png";
277
$img_sms = "sms.png";
332
$img_sms = "sms.png";
278
$img_false = "interdit.png";
333
$img_false = "interdit.png";
279
$img_adm = "adm.png";
334
$img_adm = "adm.png";
280
$img_internet = $img_connect;
335
$img_internet = $img_connect;
281
 
336
 
282
if ((isset ($user[4])) && ($user[4] == "0")) {
337
if ((isset ($user[4])) && ($user[4] == "0")) {
283
	if (! $network_pb) {
338
	if (! $network_pb) {
284
		$img_internet = $img_access;
339
		$img_internet = $img_access;
285
		}
340
		}
286
		else {
341
		else {
287
		$img_internet = $img_warning;
342
		$img_internet = $img_warning;
288
	}
343
	}
289
}
344
}
290
else {
345
else {
291
	$img_internet = $img_connect;
346
	$img_internet = $img_connect;
292
}
347
}
293
 
348
 
294
?>
349
?>
295
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
350
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
296
	<html>
351
	<html>
297
	<head>
352
	<head>
298
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
353
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
299
	<title>ALCASAR - <?php echo $l_title; ?></title>
354
	<title>ALCASAR - <?php echo $l_title; ?></title>
300
	<meta http-equiv="Cache-control" content="no-cache">
355
	<meta http-equiv="Cache-control" content="no-cache">
301
	<meta http-equiv="Pragma" content="no-cache">
356
	<meta http-equiv="Pragma" content="no-cache">
-
 
357
<?php
-
 
358
	if($display_button_user_not_auth_yet) #if user is intercepted (ipset:not_auth_yet), css style is not included properly
-
 
359
	{
-
 
360
		echo "<style>";
-
 
361
		include("css/style_intercept.css");
-
 
362
		echo "</style>";
-
 
363
	}
-
 
364
	else
-
 
365
	{
302
	<link rel="stylesheet" type="text/css" href="css/style_intercept.css">
366
	echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style_intercept.css\">";
-
 
367
	}
-
 
368
?>
303
	<script type="text/javascript">
369
	<script type="text/javascript">
304
		function valoriserDiv5(param){
370
		function valoriserDiv5(param){
305
			document.getElementById("box_info").innerHTML = param.innerHTML;
371
			document.getElementById("box_info").innerHTML = param.innerHTML;
306
		}
372
		}
307
	</script>
373
	</script>
308
</head>
374
</head>
309
<body onload="valoriserDiv5(text_conn);">
375
<body onload="valoriserDiv5(text_conn);">
310
<?php
376
<?php
311
if ($direct_access){
377
if ($direct_access || $display_button_user_not_auth_yet){
312
	echo "
378
	echo "
313
		<div id=\"cadre_titre\" class=\"titre_controle\">
379
		<div id=\"cadre_titre\" class=\"titre_controle\">
314
			<p id=\"acces_controle\" class=\"titre_controle\">$l_title</p>";
380
			<p id=\"acces_controle\" class=\"titre_controle\">$l_title</p>";
315
	if ($network_pb) {
381
	if ($network_pb) {
316
		echo "	<span>$l_explain_net_pb</span>";
382
		echo "	<span>$l_explain_net_pb</span>";
317
		}
383
		}
318
	}
384
	}
319
	else {
385
	else {
320
		echo"
386
		echo"
321
			<div id=\"cadre_titre\" class=\"titre_refus\">
387
			<div id=\"cadre_titre\" class=\"titre_refus\">
322
				<p id=\"acces_controle\" class=\"titre_refus\">$l_title</p>";
388
				<p id=\"acces_controle\" class=\"titre_refus\">$l_title</p>";
323
	}
389
	}
324
?>
390
?>
325
			<div id="boite_logo">
391
			<div id="boite_logo">
326
				<img src="images/organisme.png">
392
				<img src="<?php echo "$img_rep$img_organisme"; ?>">
327
			</div>
393
			</div>
328
		</div>
394
		</div>
329
		<div id="contenu_acces">
395
		<div id="contenu_acces">
330
			<div id="box_url">
396
			<div id="box_url">
331
<?php 
397
<?php 
332
# search here in the blacklist categories if we want to display it (if ((! $direct_access) && (! $network_pb)){}
398
# search here in the blacklist categories if we want to display it (if ((! $direct_access) && (! $network_pb)){}
333
?>
399
?>
334
			</div>
400
			</div>
335
<?php
401
<?php
336
# Check if the SMS service is enable
402
# Check if the SMS service is enable
337
$service_SMS_status="false";
403
$service_SMS_status="false";
338
if ($service_SMS_status == "true") {
404
if ($service_SMS_status == "true") {
339
$sms_div='	
405
$sms_div='	
340
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
406
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
341
				<span>'.$l_sms_access.'</span>
407
				<span>'.$l_sms_access.'</span>
342
				<img src="'.$img_rep.''.$img_sms.'">
408
				<img src="'.$img_rep.''.$img_sms.'">
343
			</div>
409
			</div>
344
';
410
';
345
 
411
 
346
$sms_div_over='			
412
$sms_div_over='			
347
			<div class="div-cache" id="text_acc">
413
			<div class="div-cache" id="text_acc">
348
				<h2>'.$l_sms_access.'</h2>
414
				<h2>'.$l_sms_access.'</h2>
349
				<p>'.$l_sms_explain.'</p>
415
				<p>'.$l_sms_explain.'</p>
350
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
416
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
351
				<img src="'.$img_rep.''.$img_sms.'">
417
				<img src="'.$img_rep.''.$img_sms.'">
352
			</div>
418
			</div>
353
';
419
';
354
}
420
}
355
else {
421
else {
356
$sms_div='';
422
$sms_div='';
357
$sms_div_over='';
423
$sms_div_over='';
358
}
424
}
359
?>
425
?>
360
<?php
426
<?php
361
if ($direct_access){
427
if ($direct_access || $display_button_user_not_auth_yet){
362
	echo "	<div id=\"box_bienvenue\">
428
	echo "	<div id=\"box_bienvenue\">
363
				$l_welcome
429
				$l_welcome
364
			</div>
430
			</div>
365
			<div class=\"box_menu\" id=\"box_conn\" onmouseover=\"valoriserDiv5(text_conn);\">
431
			<div class=\"box_menu\" id=\"box_conn\" onmouseover=\"valoriserDiv5(text_conn);\">
366
				<span>$l_logout</span>
432
				<span>$l_logout</span>
367
				<img src=\"$img_rep$img_internet\">
433
				<img src=\"$img_rep$img_internet\">
368
			</div>
434
			</div>
369
			<div class=\"box_menu\" id=\"box_certif\" onmouseover=\"valoriserDiv5(text_certif);\">
435
			<div class=\"box_menu\" id=\"box_certif\" onmouseover=\"valoriserDiv5(text_certif);\">
370
				<span>$l_install_certif</span>
436
				<span>$l_install_certif</span>
371
				<img src=\"$img_rep$img_certificate\">
437
				<img src=\"$img_rep$img_certificate\">
372
			</div>
438
			</div>
373
			<div class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\">
439
			<div class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\">
374
				<img src=\"$img_rep$img_pwd\">
440
				<img src=\"$img_rep$img_pwd\">
375
				<span>$l_password_change</span>
441
				<span>$l_password_change</span>
376
			</div>		
442
			</div>		
377
			$sms_div
443
			$sms_div
378
			<div class=\"div-cache\" id=\"text_conn\">
444
			<div class=\"div-cache\" id=\"text_conn\">
379
				<h2>$l_logout</h2>
445
				<h2>$l_logout</h2>
380
				<p>$l_logout_explain</p>
446
				<p>$l_logout_explain</p>
381
				<img src=\"$img_rep$img_internet\">
447
				<img src=\"$img_rep$img_internet\">
382
			</div>
448
			</div>
383
			<div class=\"div-cache\" id=\"text_certif\">
449
			<div class=\"div-cache\" id=\"text_certif\">
384
				<h2>$l_install_certif_more</h2>
450
				<h2>$l_install_certif_more</h2>
385
				<p>$l_certif_explain $l_certif_explain_help</p>
451
				<p>$l_certif_explain $l_certif_explain_help</p>
386
				<img src=\"$img_rep$img_certificate\">				
452
				<img src=\"$img_rep$img_certificate\">				
387
			</div>
453
			</div>
388
			<div class=\"div-cache\" id=\"text_mdp\">
454
			<div class=\"div-cache\" id=\"text_mdp\">
389
				<h2>$l_password_change</h2>
455
				<h2>$l_password_change</h2>
390
				<p>$l_password_change_explain</p>
456
				<p>$l_password_change_explain</p>
391
				<img src=\"$img_rep$img_pwd\">
457
				<img src=\"$img_rep$img_pwd\">
392
			</div>
458
			</div>
393
			$sms_div_over
459
			$sms_div_over
394
			<div id=\"box_info\">
460
			<div id=\"box_info\">
395
			</div>";
461
			</div>";
396
	}
462
	}
397
	else {
463
else {
398
		echo "
464
		echo "
399
			<div id=\"box_refuse\">
465
			<div id=\"box_refuse\">
400
				<img src=\"$img_rep$img_false\">
466
				<img src=\"$img_rep$img_false\">
401
				<p>$l_explain</p>
467
				<p>$l_explain</p>
402
			</div>
468
			</div>
403
			<div id=\"liens_redir\">
469
			<div id=\"liens_redir\">
404
				<p>$l_back_page</p>
470
				<p>$l_back_page</p>
405
			</div>";
471
			</div>";
406
		}
472
		}
407
	if (($network_pb)&&(! $direct_access)) {
473
	if (($network_pb)&&(! $direct_access)) {
408
	echo "	<span>Diagnostic : $diagnostic</span>";
474
	echo "	<span>Diagnostic : $diagnostic</span>";
409
	}
475
	}
410
?>
476
?>
411
		</div>
477
		</div>
412
		<div id="corner">
478
		<div id="corner">
413
			<div id="adm" class="corn">
479
			<div id="adm" class="corn">
414
				<a href="https://<?php echo $hostname; ?>/acc/"><img src=<?php echo $img_rep.''.$img_adm; ?>></a>
480
				<a href="https://<?php echo $hostname; ?>/acc/"><img src=<?php echo $img_rep.''.$img_adm; ?>></a>
415
			</div>
481
			</div>
416
		</div>
482
		</div>
417
	</body>
483
	</body>
418
</html>
484
</html>
-
 
485
 
-
 
486
 
419
 
487