Subversion Repositories ALCASAR

Rev

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

Rev Author Line No. Line
452 richard 1
<?php
958 franck 2
# $Id: index.php 1993 2016-07-15 17:27:35Z richard $
1249 richard 3
#
1992 richard 4
# index.php for ALCASAR bu Rexy
1249 richard 5
# UI & css style by stephane ERARD
6
# The contents of this file may be used under the terms of the GNU
7
# General Public License Version 2, provided that the above copyright
8
# notice and this permission notice is included in all copies or
9
# substantial portions of the software.
10
/****************************************************************
11
*			GLOBAL FILE PATHS			*
12
*****************************************************************/
13
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
14
 
15
/****************************************************************
16
*			FILE reading test			*
17
*****************************************************************/
18
$conf_files=array(CONF_FILE);
19
foreach ($conf_files as $file){
20
	if (!file_exists($file)){
21
		exit("File ".$file." unknown");
22
	}
23
	if (!is_readable($file)){
24
		exit("You don't have read rights on the file ".$file);
25
	}
26
}
27
/****************************************************************
28
*			Read CONF_FILE				*
29
*****************************************************************/
30
$ouvre=fopen(CONF_FILE,"r");
31
if ($ouvre){
32
	while (!feof ($ouvre))
33
	{
34
		$tampon = fgets($ouvre, 4096);
35
		if (strpos($tampon,"=")!==false){
36
			$tmp = explode("=",$tampon);
37
			$conf[$tmp[0]] = $tmp[1];
38
		}
39
	}
40
}else{
41
	exit("Error opening the file ".CONF_FILE);
42
}
43
fclose($ouvre);
1345 richard 44
$organisme = trim($conf["ORGANISM"]);
45
$domainname = trim($conf["DOMAIN"]);
46
$hostname = "alcasar.".$domainname;
784 richard 47
$network_pb = False;
1249 richard 48
$cert_add = "http://$hostname/certs";
360 richard 49
$direct_access = False;
1992 richard 50
$display_menu=False;
832 richard 51
$diagnostic = "can't contact the default router";
1452 richard 52
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "";
363 richard 53
$tab = array();$user = array();
566 stephane 54
$connection_history =  "";
55
$nb_connection_history = 3;
1992 richard 56
$Language = 'en';
57
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
58
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
59
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
1993 richard 60
$redirect_link = "www.alcasar.net"; # beware !!! HTTP only
566 stephane 61
 
1987 richard 62
# Retrieve the user info behind the remote ip
1818 raphael.pi 63
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);
64
$user = explode (" ", $tab[0]);
1820 raphael.pi 65
 
1978 raphael.pi 66
 
1992 richard 67
# Test if it's a direct connexion to ALCASAR
1993 richard 68
if (isset($_SERVER['HTTP_HOST']))
1992 richard 69
{
1993 richard 70
	if (($_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
	{	
522 richard 72
	$direct_access=True;
1992 richard 73
	exec("sudo /usr/sbin/ipset del not_auth_yet $remote_ip"); # del user of the ipset "not_auth_yet" to not loop
1993 richard 74
	}
1992 richard 75
}
1987 richard 76
# Function to adapt time connexion in seconds to H,M,S
566 stephane 77
function secondsToDuration($seconds = null){
78
	if ($seconds == null) return "";
79
	$temp = $seconds % 3600;
80
	$time[0] = ( $seconds - $temp ) / 3600 ;	// hours
732 richard 81
	$time[2] = $temp % 60 ;				// seconds
566 stephane 82
	$time[1] = ( $temp - $time[2] ) / 60;		// minutes
732 richard 83
	return $time[0]." h ".$time[1]." m ".$time[2]." s";
566 stephane 84
}
509 richard 85
 
1987 richard 86
# If the user is connected : retrieve the 3 last connexions
783 richard 87
if ((isset ($user[4])) && ($user[4] != "0")){
566 stephane 88
	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("./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
		$link = @da_sql_pconnect($config); // on affiche pas les erreurs
93
		if ($link){
94
			$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
95
 
96
			if ($res){
97
				$connection_history.= "<ul>";
98
				while(($row = @da_sql_fetch_array($res,$config))){
99
					$connected = "";
1987 richard 100
					if ($row['acctstoptime'] == "") $connected = " (active)";
1678 richard 101
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row['acctsessiontime']).")'>$row[acctstarttime] (".secondsToDuration($row['acctsessiontime']).") $connected</li>";
566 stephane 102
				}
103
				$connection_history.="</ul>";
104
			}
105
		}
106
	}
107
}
1992 richard 108
else # user not connected
1818 raphael.pi 109
{
1978 raphael.pi 110
	exec("sudo /usr/sbin/ipset list not_auth_yet | grep $remote_ip | wc -l 2>&1", $ipset_not_auth_yet);
1993 richard 111
	if(!$direct_access && $ipset_not_auth_yet[0] == '0') # it's the fist stage of an interception 
1818 raphael.pi 112
	{
1992 richard 113
		$display_menu = True; # Display menu for user not_auth_yet
1993 richard 114
		$redirect_link = $_SERVER['HTTP_HOST']; # to keep the user URL
1989 raphael.pi 115
	}
1993 richard 116
	if(isset($_GET['url'])) # it's the second stage (when user has clicked to open a connection ...)
1989 raphael.pi 117
	{
1992 richard 118
		exec("sudo /usr/sbin/ipset add not_auth_yet $remote_ip"); # Add user in the ipset "not_auth_yet" (DNS requests not intercepted)
1993 richard 119
		if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'off') # in HTTP, the user is redirected on it's home page (in HTiTPS, it's on the default page)
120
		{
121
			$redirect_link = "http://".$_GET['url'];
122
		}
123
		else
124
		{
125
			$redirect_link = "http://".$redirect_link;
126
		}
127
		header("Location: $redirect_link",TRUE,307);
1989 raphael.pi 128
		exit; 
129
	}
1992 richard 130
	if ($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>"; # force DNS request
132
	}	
1818 raphael.pi 133
}
360 richard 134
# Choice of language
135
if($Language == 'fr'){
1992 richard 136
  $l_access_denied = "Contrôle d'accès";
399 franck 137
  $l_access_welcome = "Bienvenue sur ALCASAR";
360 richard 138
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
139
  $l_required_domain = "Site WEB demand&eacute;";
1504 richard 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.";
360 richard 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.";
142
  $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.";
509 richard 144
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
399 franck 145
  $l_welcome = "Page principale de votre portail captif";
1452 richard 146
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
1830 raphael.pi 147
  $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>";
536 franck 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>";
688 richard 150
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
1124 crox53 151
  $l_category = "catégorie :";
832 richard 152
if ((isset ($user[4])) && ($user[4] == "0")) {
509 richard 153
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre syst&egrave;me.";
1992 richard 154
	  $l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
1820 raphael.pi 155
	}
369 richard 156
  else {
832 richard 157
	  if ($user[5] != $user[0]) // authentication exception or not
158
	  {
159
	  	$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";
160
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se d&eacute;connecter d'internet</a>";
161
	  }
162
	  else
163
	  {
164
		  $l_logout_explain = "Votre système ($user[5]) est en exception d'authentication.<br><br>$nb_connection_history last connections :$connection_history";
165
		  $l_logout = "Information des connexions";
166
	  }
167
	}
566 stephane 168
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
536 franck 169
  $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.";
1452 richard 170
  $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";
360 richard 171
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
1452 richard 172
  $l_service_sms = "Service SMS actif";
173
  $l_service_sms_n = "Service SMS non actif";
174
  $l_acc_sms = "Auto enregistrement par SMS";
360 richard 175
}
912 richard 176
else if($Language == 'pt'){
1992 richard 177
  $l_access_denied = "Controle de acesso";
912 richard 178
  $l_access_welcome = "Bem-vindo ao Alcasar";
179
  $l_access_unavailable = "ACESSO INDISPONÍVEL";
180
  $l_required_domain = "Site WEB Obrigatório";
955 richard 181
  $l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
912 richard 182
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
955 richard 183
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
912 richard 184
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
185
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
955 richard 186
  $l_welcome = "Página do portal";
1452 richard 187
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
1830 raphael.pi 188
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
189
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
912 richard 190
  $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>";
955 richard 191
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
1124 crox53 192
  $l_category = "categoria :";
912 richard 193
if ((isset ($user[4])) && ($user[4] == "0")) {
1992 richard 194
	$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
195
	$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
1820 raphael.pi 196
	}
912 richard 197
  else {
198
	  if ($user[5] != $user[0]) // authentication exception or not
199
	  {
955 richard 200
		  $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";
922 richard 201
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
912 richard 202
	  }
203
	  else
204
	  {
955 richard 205
		  $l_logout_explain = "O sistema ($user[5]) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
922 richard 206
		  $l_logout = "Informações de conexões";
912 richard 207
	  }
208
  	}
922 richard 209
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
955 richard 210
  $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.";
1452 richard 211
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
922 richard 212
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
1452 richard 213
  $l_service_sms = "SMS service enable";
214
  $l_service_sms_n = "SMS service disable";
215
  $l_acc_sms = "Auto registration by SMS";
912 richard 216
}
360 richard 217
else {
1992 richard 218
  $l_access_denied = "Access control";
369 richard 219
  $l_access_welcome = "Welcome on ALCASAR";
360 richard 220
  $l_access_unavailable = "ACCESS UNAVAILABLE";
221
  $l_required_domain = "Required WEB site";
369 richard 222
  $l_explain_acc_access = "This center control the portal. You must have an administrative account.";
801 richard 223
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
360 richard 224
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
225
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
226
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
369 richard 227
  $l_welcome = "Your captive portal main page";
1452 richard 228
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
1830 raphael.pi 229
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
230
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
688 richard 231
  $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>";
232
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
1124 crox53 233
  $l_category = "category :";
783 richard 234
if ((isset ($user[4])) && ($user[4] == "0")) {
1992 richard 235
	$l_logout_explain = "No Internet consultation session is actualy open on your system";
236
	$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
1820 raphael.pi 237
	}
369 richard 238
  else {
832 richard 239
	  if ($user[5] != $user[0]) // authentication exception or not
240
	  {
922 richard 241
		  $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";
783 richard 242
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
832 richard 243
	  }
244
	  else
245
	  {
922 richard 246
		  $l_logout_explain = "Your system ($user[5]) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
832 richard 247
		  $l_logout = "Connections information";
248
	  }
783 richard 249
  	}
566 stephane 250
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
799 richard 251
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
1452 richard 252
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
360 richard 253
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
1452 richard 254
  $l_service_sms = "SMS service enable";
255
  $l_service_sms_n = "SMS service disable";
256
  $l_acc_sms = "Auto registration by SMS";
360 richard 257
}
1987 richard 258
 
369 richard 259
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
360 richard 260
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
509 richard 261
 
1987 richard 262
# set the icons
1992 richard 263
$img_rep = "./images/";
509 richard 264
$img_organisme = "organisme.png";
265
$img_access = "globe_acces_70.png";
266
$img_connect = "globe_70.png";
267
$img_warning = "globe_warning_70.png";
268
$img_pwd = "cle_ombre.png";
269
$img_certificate = "certificat.png";
270
$img_acc = "logo-alcasar_70.png";
1452 richard 271
$img_sms = "sms.png";
509 richard 272
$img_false = "interdit.png";
1452 richard 273
$img_adm = "adm.png";
509 richard 274
$img_internet = $img_connect;
275
 
783 richard 276
if ((isset ($user[4])) && ($user[4] == "0")) {
509 richard 277
	if (! $network_pb) {
278
		$img_internet = $img_access;
279
		}
280
		else {
281
		$img_internet = $img_warning;
282
	}
283
}
284
else {
285
	$img_internet = $img_connect;
286
}
287
 
1992 richard 288
# cleaning the cache
289
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
290
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
291
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
292
header("Cache-Control: post-check=0, pre-check=0", false);
293
header("Pragma: no-cache");
360 richard 294
?>
566 stephane 295
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
296
	<html>
297
	<head>
298
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
299
	<title>ALCASAR - <?php echo $l_title; ?></title>
300
	<meta http-equiv="Cache-control" content="no-cache">
301
	<meta http-equiv="Pragma" content="no-cache">
1989 raphael.pi 302
<?php
1992 richard 303
	echo "<style>";
304
	include("css/style_intercept.css");
305
	echo "</style>";
306
?>
307
<script type="text/javascript">
308
	function valoriserDiv5(param){
309
		document.getElementById("box_info").innerHTML = param.innerHTML;
1989 raphael.pi 310
	}
1992 richard 311
</script>
360 richard 312
</head>
566 stephane 313
<body onload="valoriserDiv5(text_conn);">
509 richard 314
<?php
1992 richard 315
if ($direct_access || $display_menu){
360 richard 316
	echo "
566 stephane 317
		<div id=\"cadre_titre\" class=\"titre_controle\">
318
			<p id=\"acces_controle\" class=\"titre_controle\">$l_title</p>";
509 richard 319
	if ($network_pb) {
566 stephane 320
		echo "	<span>$l_explain_net_pb</span>";
509 richard 321
		}
360 richard 322
	}
509 richard 323
	else {
324
		echo"
566 stephane 325
			<div id=\"cadre_titre\" class=\"titre_refus\">
326
				<p id=\"acces_controle\" class=\"titre_refus\">$l_title</p>";
363 richard 327
	}
360 richard 328
?>
566 stephane 329
			<div id="boite_logo">
1989 raphael.pi 330
				<img src="<?php echo "$img_rep$img_organisme"; ?>">
566 stephane 331
			</div>
332
		</div>
333
		<div id="contenu_acces">
334
			<div id="box_url">
1124 crox53 335
<?php 
1987 richard 336
# search here in the blacklist categories if we want to display it (if ((! $direct_access) && (! $network_pb)){}
1124 crox53 337
?>
566 stephane 338
			</div>
1452 richard 339
<?php
1987 richard 340
# Check if the SMS service is enable
1506 franck 341
$service_SMS_status="false";
342
if ($service_SMS_status == "true") {
1452 richard 343
$sms_div='	
344
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
345
				<span>'.$l_sms_access.'</span>
346
				<img src="'.$img_rep.''.$img_sms.'">
347
			</div>
348
';
349
 
350
$sms_div_over='			
351
			<div class="div-cache" id="text_acc">
352
				<h2>'.$l_sms_access.'</h2>
353
				<p>'.$l_sms_explain.'</p>
354
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
355
				<img src="'.$img_rep.''.$img_sms.'">
356
			</div>
357
';
358
}
1508 richard 359
else {
360
$sms_div='';
361
$sms_div_over='';
362
}
1452 richard 363
?>
509 richard 364
<?php
1992 richard 365
if ($direct_access || $display_menu){
566 stephane 366
	echo "	<div id=\"box_bienvenue\">
360 richard 367
				$l_welcome
566 stephane 368
			</div>
369
			<div class=\"box_menu\" id=\"box_conn\" onmouseover=\"valoriserDiv5(text_conn);\">
370
				<span>$l_logout</span>
371
				<img src=\"$img_rep$img_internet\">
372
			</div>
373
			<div class=\"box_menu\" id=\"box_certif\" onmouseover=\"valoriserDiv5(text_certif);\">
374
				<span>$l_install_certif</span>
375
				<img src=\"$img_rep$img_certificate\">
376
			</div>
377
			<div class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\">
378
				<img src=\"$img_rep$img_pwd\">
379
				<span>$l_password_change</span>
380
			</div>		
1452 richard 381
			$sms_div
566 stephane 382
			<div class=\"div-cache\" id=\"text_conn\">
383
				<h2>$l_logout</h2>
384
				<p>$l_logout_explain</p>
385
				<img src=\"$img_rep$img_internet\">
386
			</div>
387
			<div class=\"div-cache\" id=\"text_certif\">
388
				<h2>$l_install_certif_more</h2>
389
				<p>$l_certif_explain $l_certif_explain_help</p>
390
				<img src=\"$img_rep$img_certificate\">				
391
			</div>
392
			<div class=\"div-cache\" id=\"text_mdp\">
393
				<h2>$l_password_change</h2>
394
				<p>$l_password_change_explain</p>
395
				<img src=\"$img_rep$img_pwd\">
396
			</div>
1452 richard 397
			$sms_div_over
566 stephane 398
			<div id=\"box_info\">
399
			</div>";
509 richard 400
	}
1989 raphael.pi 401
else {
509 richard 402
		echo "
566 stephane 403
			<div id=\"box_refuse\">
509 richard 404
				<img src=\"$img_rep$img_false\">
566 stephane 405
				<p>$l_explain</p>
406
			</div>
407
			<div id=\"liens_redir\">
408
				<p>$l_back_page</p>
409
			</div>";
509 richard 410
		}
411
	if (($network_pb)&&(! $direct_access)) {
566 stephane 412
	echo "	<span>Diagnostic : $diagnostic</span>";
509 richard 413
	}
363 richard 414
?>
566 stephane 415
		</div>
1452 richard 416
		<div id="corner">
417
			<div id="adm" class="corn">
1729 richard 418
				<a href="https://<?php echo $hostname; ?>/acc/"><img src=<?php echo $img_rep.''.$img_adm; ?>></a>
1452 richard 419
			</div>
420
		</div>
566 stephane 421
	</body>
1822 raphael.pi 422
</html>
1989 raphael.pi 423
 
424