Subversion Repositories ALCASAR

Rev

Rev 1428 | Rev 1492 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1428 Rev 1452
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 1428 2014-09-11 21:08:52Z richard $
2
# $Id: index.php 1452 2014-09-19 13:21:07Z richard $
3
#
3
#
4
# index.php for ALCASAR captive portal
4
# index.php for ALCASAR captive portal
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
Line 47... Line 47...
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
$diagnostic = "can't contact the default router";
51
$diagnostic = "can't contact the default router";
52
$remote_ip = ($_SERVER['REMOTE_ADDR']);
52
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "";
53
$tab = array();$user = array();
53
$tab = array();$user = array();
54
$connection_history =  "";
54
$connection_history =  "";
55
$nb_connection_history = 3;
55
$nb_connection_history = 3;
56
 
56
 
57
# on discrimine les accès directs sur Alcasar par rapport aux redirections (blacklist ou pannes rso)
57
# on discrimine les accès directs sur Alcasar par rapport aux redirections (blacklist ou pannes rso)
Line 108... Line 108...
108
if($Language == 'fr'){
108
if($Language == 'fr'){
109
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
109
  $l_access_denied = "ACC&Egrave;S REFUS&Eacute;";
110
  $l_access_welcome = "Bienvenue sur ALCASAR";
110
  $l_access_welcome = "Bienvenue sur ALCASAR";
111
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
111
  $l_access_unavailable = "ACC&Egrave;S INDISPONIBLE";
112
  $l_required_domain = "Site WEB demand&eacute;";
112
  $l_required_domain = "Site WEB demand&eacute;";
113
  $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.";
113
  //$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.";
114
  $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.";
114
  $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.";
115
  $l_explain_net_pb = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
115
  $l_explain_net_pb = "Votre portail d&eacute;tecte que l'acc&egrave;s &agrave; Internet est indisponible.";
116
  $l_contact_access_deny = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
116
  $l_contact_access_deny = "Contactez le responsable de la s&eacute;curit&eacute; (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
117
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
117
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
118
  $l_welcome = "Page principale de votre portail captif";
118
  $l_welcome = "Page principale de votre portail captif";
119
  $l_acc_access = "<a href=\"https://$hostname/acc\">Acc&egrave;s au centre de gestion</a>";
119
  //$l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Controle Center</a>";
-
 
120
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
120
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installer le certificat racine</a>";
121
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installer le certificat racine</a>";
121
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installation du certificat de l'autorit&eacute; racine d'ALCASAR</a>";
122
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installation du certificat de l'autorit&eacute; racine d'ALCASAR</a>";
122
  $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>";
123
  $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>";
123
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
124
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
124
  $l_category = "catégorie :";
125
  $l_category = "catégorie :";
125
if ((isset ($user[4])) && ($user[4] == "0")) {
126
if ((isset ($user[4])) && ($user[4] == "0")) {
126
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre syst&egrave;me.";
127
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre syst&egrave;me.";
127
	  $l_logout = "<a href=\"http://www.wikipedia.org\">Ouvrir une session Internet</a>";}
128
	  $l_logout = "<a href=\"http://www.qwant.com\">Ouvrir une session Internet</a>";}
128
  else {
129
  else {
129
	  if ($user[5] != $user[0]) // authentication exception or not
130
	  if ($user[5] != $user[0]) // authentication exception or not
130
	  {
131
	  {
131
	  	$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";
132
	  	$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";
132
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se d&eacute;connecter d'internet</a>";
133
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se d&eacute;connecter d'internet</a>";
Line 137... Line 138...
137
		  $l_logout = "Information des connexions";
138
		  $l_logout = "Information des connexions";
138
	  }
139
	  }
139
	}
140
	}
140
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
141
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
141
  $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.";
142
  $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.";
-
 
143
  $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";
142
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
144
  $l_back_page = "<a href=\"javascript:history.back()\">Page pr&eacute;c&eacute;dente</a>";
-
 
145
  $l_service_sms = "Service SMS actif";
-
 
146
  $l_service_sms_n = "Service SMS non actif";
-
 
147
  $l_acc_sms = "Auto enregistrement par SMS";
143
}
148
}
144
else if($Language == 'pt'){
149
else if($Language == 'pt'){
145
  $l_access_denied = "Acesso negado";
150
  $l_access_denied = "Acesso negado";
146
  $l_access_welcome = "Bem-vindo ao Alcasar";
151
  $l_access_welcome = "Bem-vindo ao Alcasar";
147
  $l_access_unavailable = "ACESSO INDISPONÍVEL";
152
  $l_access_unavailable = "ACESSO INDISPONÍVEL";
Line 150... Line 155...
150
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
155
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
151
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
156
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
152
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
157
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
153
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
158
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
154
  $l_welcome = "Página do portal";
159
  $l_welcome = "Página do portal";
155
  $l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Controle Center</a>";
160
  //$l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Controle Center</a>";
-
 
161
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
156
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Instalar Certificado Alcasar AC</a>";
162
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Instalar Certificado Alcasar AC</a>";
157
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.cert\">Instalar Certificado Alcasar AC</a>";
163
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.cert\">Instalar Certificado Alcasar AC</a>";
158
  $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>";
164
  $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>";
159
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
165
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
160
  $l_category = "categoria :";
166
  $l_category = "categoria :";
161
if ((isset ($user[4])) && ($user[4] == "0")) {
167
if ((isset ($user[4])) && ($user[4] == "0")) {
162
	  $l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
168
	  $l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
163
	  $l_logout = "<a href=\"http://www.wikipedia.org\">Abrir uma conexão de Internet</a>";}
169
	  $l_logout = "<a href=\"http://www.qwant.com\">Abrir uma conexão de Internet</a>";}
164
  else {
170
  else {
165
	  if ($user[5] != $user[0]) // authentication exception or not
171
	  if ($user[5] != $user[0]) // authentication exception or not
166
	  {
172
	  {
167
		  $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";
173
		  $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";
168
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
174
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
Line 173... Line 179...
173
		  $l_logout = "Informações de conexões";
179
		  $l_logout = "Informações de conexões";
174
	  }
180
	  }
175
  	}
181
  	}
176
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
182
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
177
  $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.";
183
  $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.";
-
 
184
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
178
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
185
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
-
 
186
  $l_service_sms = "SMS service enable";
-
 
187
  $l_service_sms_n = "SMS service disable";
-
 
188
  $l_acc_sms = "Auto registration by SMS";
179
}
189
}
180
else {
190
else {
181
  $l_access_denied = "ACCESS DENIED";
191
  $l_access_denied = "ACCESS DENIED";
182
  $l_access_welcome = "Welcome on ALCASAR";
192
  $l_access_welcome = "Welcome on ALCASAR";
183
  $l_access_unavailable = "ACCESS UNAVAILABLE";
193
  $l_access_unavailable = "ACCESS UNAVAILABLE";
Line 186... Line 196...
186
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
196
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
187
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
197
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
188
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
198
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
189
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
199
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
190
  $l_welcome = "Your captive portal main page";
200
  $l_welcome = "Your captive portal main page";
191
  $l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Control Center</a>";
201
  //$l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Control Center</a>";
-
 
202
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
192
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Install ALCASAR AC Certificate</a>";
203
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Install ALCASAR AC Certificate</a>";
193
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.cert\">Install ALCASAR AC Certificate</a>";
204
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.cert\">Install ALCASAR AC Certificate</a>";
194
  $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>";
205
  $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>";
195
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
206
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
196
  $l_category = "category :";
207
  $l_category = "category :";
197
if ((isset ($user[4])) && ($user[4] == "0")) {
208
if ((isset ($user[4])) && ($user[4] == "0")) {
198
	  $l_logout_explain = "No Internet consultation session is actualy open on your system";
209
	  $l_logout_explain = "No Internet consultation session is actualy open on your system";
199
	  $l_logout = "<a href=\"http://www.wikipedia.org\">Open an Internet session</a>";}
210
	  $l_logout = "<a href=\"http://www.qwant.com\">Open an Internet session</a>";}
200
  else {
211
  else {
201
	  if ($user[5] != $user[0]) // authentication exception or not
212
	  if ($user[5] != $user[0]) // authentication exception or not
202
	  {
213
	  {
203
		  $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";
214
		  $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";
204
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
215
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
Line 209... Line 220...
209
		  $l_logout = "Connections information";
220
		  $l_logout = "Connections information";
210
	  }
221
	  }
211
  	}
222
  	}
212
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
223
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
213
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
224
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
-
 
225
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
214
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
226
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
-
 
227
  $l_service_sms = "SMS service enable";
-
 
228
  $l_service_sms_n = "SMS service disable";
-
 
229
  $l_acc_sms = "Auto registration by SMS";
215
}
230
}
216
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
231
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
217
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
232
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
218
 
233
 
219
# Attribution des icones / images
234
# Attribution des icones / images
Line 223... Line 238...
223
$img_connect = "globe_70.png";
238
$img_connect = "globe_70.png";
224
$img_warning = "globe_warning_70.png";
239
$img_warning = "globe_warning_70.png";
225
$img_pwd = "cle_ombre.png";
240
$img_pwd = "cle_ombre.png";
226
$img_certificate = "certificat.png";
241
$img_certificate = "certificat.png";
227
$img_acc = "logo-alcasar_70.png";
242
$img_acc = "logo-alcasar_70.png";
-
 
243
$img_sms = "sms.png";
228
$img_false = "interdit.png";
244
$img_false = "interdit.png";
-
 
245
$img_adm = "adm.png";
229
$img_internet = $img_connect;
246
$img_internet = $img_connect;
230
 
247
 
231
if ((isset ($user[4])) && ($user[4] == "0")) {
248
if ((isset ($user[4])) && ($user[4] == "0")) {
232
	if (! $network_pb) {
249
	if (! $network_pb) {
233
		$img_internet = $img_access;
250
		$img_internet = $img_access;
Line 277... Line 294...
277
			</div>
294
			</div>
278
		</div>
295
		</div>
279
		<div id="contenu_acces">
296
		<div id="contenu_acces">
280
			<div id="box_url">
297
			<div id="box_url">
281
<?php 
298
<?php 
282
//search in the blacklist categories
-
 
283
if ((! $direct_access) && (! $network_pb)){
299
//search here in the blacklist categories (if ((! $direct_access) && (! $network_pb)){}
284
	$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']);
-
 
285
 	$pattern = filter_var($pattern, FILTER_VALIDATE_URL) == false ? "" : $pattern;
-
 
286
	exec("grep -Re ^$pattern$ /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6", $output);
-
 
287
	unset ($line);
-
 
288
	foreach ($output as $row) {
-
 
289
		$line=$line.(trim($row)).", ";
-
 
290
	} 
-
 
291
	echo "$l_required_domain : $_SERVER[HTTP_HOST]";
-
 
292
	if ($line != "") { echo "<BR>".rtrim ("$l_category $line", ", ");}
-
 
293
}
-
 
294
?>
300
?>
295
			</div>
301
			</div>
-
 
302
<?php
-
 
303
# CHECK IF the SMS service is enable
-
 
304
$service_SMS_status=false;
-
 
305
 
-
 
306
$sms_div='	
-
 
307
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
-
 
308
				<span>'.$l_sms_access.'</span>
-
 
309
				<img src="'.$img_rep.''.$img_sms.'">
-
 
310
			</div>
-
 
311
';
-
 
312
 
-
 
313
$sms_div_over='			
-
 
314
			<div class="div-cache" id="text_acc">
-
 
315
				<h2>'.$l_sms_access.'</h2>
-
 
316
				<p>'.$l_sms_explain.'</p>
-
 
317
				<p><font color="green"><center>'.$l_service_sms.'</center></font></p>
-
 
318
				<img src="'.$img_rep.''.$img_sms.'">
-
 
319
			</div>
-
 
320
';
-
 
321
 
-
 
322
if(!$service_SMS_status){
-
 
323
$sms_div='	
-
 
324
			<div class="box_menu" id="box_acc" onmouseover="valoriserDiv5(text_acc);">
-
 
325
				<span>'.$l_sms_access.'</span>
-
 
326
				<img src="'.$img_rep.''.$img_sms.'">
-
 
327
			</div>
-
 
328
';
296
 
329
 
-
 
330
$sms_div_over='			
-
 
331
			<div class="div-cache" id="text_acc">
-
 
332
				<h2>'.$l_sms_access.'</h2>
-
 
333
				<p>'.$l_sms_explain.'</p>
-
 
334
				<p><font color="red"><center>'.$l_service_sms_n.'</center></font></p>
-
 
335
				<img src="'.$img_rep.''.$img_sms.'">
-
 
336
			</div>
-
 
337
';
-
 
338
}
-
 
339
?>
297
<?php
340
<?php
298
if ($direct_access){
341
if ($direct_access){
299
	echo "	<div id=\"box_bienvenue\">
342
	echo "	<div id=\"box_bienvenue\">
300
				$l_welcome
343
				$l_welcome
301
			</div>
344
			</div>
Line 309... Line 352...
309
			</div>
352
			</div>
310
			<div class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\">
353
			<div class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\">
311
				<img src=\"$img_rep$img_pwd\">
354
				<img src=\"$img_rep$img_pwd\">
312
				<span>$l_password_change</span>
355
				<span>$l_password_change</span>
313
			</div>		
356
			</div>		
314
			<div class=\"box_menu\" id=\"box_acc\" onmouseover=\"valoriserDiv5(text_acc);\">
-
 
315
				<span>$l_acc_access</span>
-
 
316
				<img src=\"$img_rep$img_acc\">
-
 
317
			</div>
357
			$sms_div
318
			<div class=\"div-cache\" id=\"text_conn\">
358
			<div class=\"div-cache\" id=\"text_conn\">
319
				<h2>$l_logout</h2>
359
				<h2>$l_logout</h2>
320
				<p>$l_logout_explain</p>
360
				<p>$l_logout_explain</p>
321
				<img src=\"$img_rep$img_internet\">
361
				<img src=\"$img_rep$img_internet\">
322
			</div>
362
			</div>
Line 328... Line 368...
328
			<div class=\"div-cache\" id=\"text_mdp\">
368
			<div class=\"div-cache\" id=\"text_mdp\">
329
				<h2>$l_password_change</h2>
369
				<h2>$l_password_change</h2>
330
				<p>$l_password_change_explain</p>
370
				<p>$l_password_change_explain</p>
331
				<img src=\"$img_rep$img_pwd\">
371
				<img src=\"$img_rep$img_pwd\">
332
			</div>
372
			</div>
333
			<div class=\"div-cache\" id=\"text_acc\">
-
 
334
				<h2>$l_acc_access</h2>
-
 
335
				<p>$l_explain</p>
-
 
336
				<img src=\"$img_rep$img_acc\">
-
 
337
			</div>
373
			$sms_div_over
338
			<div id=\"box_info\">
374
			<div id=\"box_info\">
339
			</div>";
375
			</div>";
340
	}
376
	}
341
	else {
377
	else {
342
		echo "
378
		echo "
Line 351... Line 387...
351
	if (($network_pb)&&(! $direct_access)) {
387
	if (($network_pb)&&(! $direct_access)) {
352
	echo "	<span>Diagnostic : $diagnostic</span>";
388
	echo "	<span>Diagnostic : $diagnostic</span>";
353
	}
389
	}
354
?>
390
?>
355
		</div>
391
		</div>
-
 
392
		<div id="corner">
-
 
393
			<div id="adm" class="corn">
-
 
394
				<a href="https://<?php echo $hostname; ?>/acc"><img src=<?php echo $img_rep.''.$img_adm; ?>></a>
-
 
395
			</div>
-
 
396
		</div>
356
	</body>
397
	</body>
357
</html>
398
</html>