Subversion Repositories ALCASAR

Rev

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