Subversion Repositories ALCASAR

Rev

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

Rev 2085 Rev 2090
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2085 2016-12-07 18:29:05Z richard $
2
# $Id: index.php 2090 2016-12-12 23:00:01Z richard $
3
#
3
#
4
# index.php for ALCASAR by Rexy
4
# index.php for ALCASAR by Rexy
5
# UI & css style by stephane ERARD
5
# UI & css style by stephane ERARD
6
# The contents of this file may be used under the terms of the GNU
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
7
# General Public License Version 2, provided that the above copyright
Line 142... Line 142...
142
	
142
	
143
	
143
	
144
}
144
}
145
# Choice of language
145
# Choice of language
146
if($Language == 'fr'){
146
if($Language == 'fr'){
147
  $l_access_denied = "Contrôle d'accès";
147
	$l_access_denied = "Contrôle d'accès";
148
  $l_access_welcome = "Bienvenue sur ALCASAR";
148
	$l_access_welcome = "Bienvenue sur ALCASAR";
149
  $l_access_unavailable = "ACCÈS INDISPONIBLE";
149
	$l_access_unavailable = "ACCÈS INDISPONIBLE";
150
  $l_required_domain = "Site WEB demandé";
150
	$l_required_domain = "Site WEB demandé";
151
  $l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez posséder un compte d'administration ou de gestion pour y accéder.";
151
	$l_explain_acc_access = "Le centre de gestion permet d'administrer le portail. Vous devez posséder un compte d'administration ou de gestion pour y accéder.";
152
  $l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
152
	$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
153
  $l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
153
	$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
154
  $l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
154
	$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
155
  $l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
155
	$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
156
  $l_welcome = "Page principale de votre portail captif";
156
	$l_welcome = "Page principale de votre portail captif";
157
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
157
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
158
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installer le certificat racine</a>";
158
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installer le certificat racine</a>";
159
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installation du certificat de l'autorité; racine d'ALCASAR</a>";
159
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installation du certificat de l'autorité; racine d'ALCASAR</a>";
160
  $l_certif_explain = "Permet l'échange de données sécurisées entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistré sur votre station de consultation, il est possible que des alertes de sécurité soient émises par votre navigateur.<br><br>";
160
	$l_certif_explain = "Permet l'échange de données sécurisées entre votre station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistré sur votre station de consultation, il est possible que des alertes de sécurité soient émises par votre navigateur.<br><br>";
161
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
161
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
162
  $l_category = "catégorie :";
162
	$l_category = "catégorie :";
163
if ((isset ($user[4])) && ($user[4] == "0")) {
163
	if ((isset ($user[4])) && ($user[4] == "0")) {
164
	  $l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
164
		$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
165
	  $l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
165
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
166
	}
166
	}
167
  else {
167
	else {
168
	  if ($user[5] != $user[0]) // authentication exception or not
168
		if ($user[5] != $user[0]) // authentication exception or not
169
	  {
169
		{
170
	  	$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
170
			$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
171
		$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
171
			$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</a>";
172
	  }
172
		}
173
	  else
173
		else
174
	  {
174
		{
175
		  $l_logout_explain = "Votre système ($user[5]) est en exception d'authentication.<br><br>$nb_connection_history last connections :$connection_history";
175
			$l_logout_explain = "Votre système ($user[5]) est en exception d'authentication.<br><br>$nb_connection_history last connections :$connection_history";
176
		  $l_logout = "Information des connexions";
176
			$l_logout = "Information des connexions";
177
	  }
177
		}
178
	}
178
	}
179
  $l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
179
	$l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</a>";
180
  $l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'accès à Internet.<br><br>Vous devez avoir un compte internet valide.";
180
	$l_password_change_explain = "Vous redirige sur la page de changement du mot de passe de votre compte d'accès à Internet.<br><br>Vous devez avoir un compte internet valide.";
181
  $l_sms_explain = "Vous redirige vers 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";
181
	$l_sms_explain = "Vous redirige vers 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";
182
  $l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
182
	$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>";
183
  $l_service_sms = "Service SMS actif";
183
	$l_service_sms = "Service SMS actif";
184
  $l_service_sms_n = "Service SMS non actif";
184
	$l_service_sms_n = "Service SMS non actif";
185
  $l_acc_sms = "Auto enregistrement par SMS";
185
	$l_acc_sms = "Auto enregistrement par SMS";
186
  $l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
186
	$l_explain_warn = "L'administrateur a créé une archive contenant vos journaux de connexion dans le cadre d'une affaire judiciaire.";
187
  if(isset($_GET['url']))
187
	if(isset($_GET['url']))
188
  {
-
 
189
  	$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Je comprends et je souhaite continuer ma navigation.</a>";
188
		$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Je comprends et je souhaite continuer ma navigation.</a>";
190
  }
-
 
191
  else
189
	else
192
  {
-
 
193
  	$l_continue_link = "<a href='index.php' class='button'>Je comprends et je souhaite continuer ma navigation.</a>";
190
		$l_continue_link = "<a href='index.php' class='button'>Je comprends et je souhaite continuer ma navigation.</a>";
194
  }
-
 
195
  $l_title_warn="Cher utilisateur, ";
191
	$l_title_warn="Cher utilisateur, ";
196
  $l_explain_warn_name="Une personne sous le nom de ";
192
	$l_explain_warn_name="Une personne sous le nom de ";
197
  $l_explain_warn_ip="sous cette IP : ";
193
	$l_explain_warn_ip="sous cette IP : ";
198
  $l_explain_warn_date="a consulté vos journaux de connexion le ";
194
	$l_explain_warn_date="a consulté vos journaux de connexion le ";
199
  $l_explain_warn_reason="Raison invoquée : ";
195
	$l_explain_warn_reason="Raison invoquée : ";
200
}
196
}
201
else if($Language == 'pt'){
197
else if($Language == 'pt'){
202
  $l_access_denied = "Controle de acesso";
198
	$l_access_denied = "Controle de acesso";
203
  $l_access_welcome = "Bem-vindo ao Alcasar";
199
	$l_access_welcome = "Bem-vindo ao Alcasar";
204
  $l_access_unavailable = "ACESSO INDISPONÍVEL";
200
	$l_access_unavailable = "ACESSO INDISPONÍVEL";
205
  $l_required_domain = "Site WEB Obrigatório";
201
	$l_required_domain = "Site WEB Obrigatório";
206
  $l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
202
	$l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
207
  $l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
203
	$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
208
  $l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
204
	$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
209
  $l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
205
	$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
210
  $l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
206
	$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
211
  $l_welcome = "Página do portal";
207
	$l_welcome = "Página do portal";
212
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
208
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
213
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
209
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
214
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
210
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
215
  $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>";
211
	$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>";
216
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
212
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
217
  $l_category = "categoria :";
213
	$l_category = "categoria :";
218
if ((isset ($user[4])) && ($user[4] == "0")) {
214
	if ((isset ($user[4])) && ($user[4] == "0")) {
219
	$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
215
		$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
220
	$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
216
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
221
	}
217
	}
222
  else {
218
      else {
223
	  if ($user[5] != $user[0]) // authentication exception or not
219
		if ($user[5] != $user[0]) // authentication exception or not
224
	  {
220
		{
225
		  $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";
221
			$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";
226
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
222
			$l_logout = "<a href=\"http://$hostname:3990/logoff\">Sair da Internet</a>";
227
	  }
223
		}
228
	  else
224
		else
229
	  {
225
		{
230
		  $l_logout_explain = "O sistema ($user[5]) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
226
			$l_logout_explain = "O sistema ($user[5]) detctou exesso de autenticação.<br><br>$nb_connection_history logins últimos :$connection_history";
231
		  $l_logout = "Informações de conexões";
227
			$l_logout = "Informações de conexões";
232
	  }
228
		}
233
  	}
229
	}
234
  $l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
230
	$l_password_change = "<a href=\"https://$hostname/pass\">Mudar sua senha</a>";
235
  $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.";
231
	$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.";
236
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
232
	$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
237
  $l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
233
	$l_back_page = "<a href=\"javascript:history.back()\">Página anterior</a>";
238
  $l_service_sms = "SMS service enable";
234
	$l_service_sms = "SMS service enable";
239
  $l_service_sms_n = "SMS service disable";
235
	$l_service_sms_n = "SMS service disable";
240
  $l_acc_sms = "Auto registration by SMS";
236
	$l_acc_sms = "Auto registration by SMS";
241
  $l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial."; 
237
	$l_explain_warn = "El administrador ha creado un archivo que contiene los periódicos de inicio de sesión como parte de un proceso judicial."; 
242
  if(isset($_GET['url']))
238
	if(isset($_GET['url']))
-
 
239
		$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
243
  {
240
	else
244
 	 $l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
241
		$l_continue_link = "<a href='index.php' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
-
 
242
	$l_title_warn="Estimado usuario,";
-
 
243
	$l_explain_warn_name="El usario ";
-
 
244
	$l_explain_warn_ip="con este IP : ";
-
 
245
	$l_explain_warn_date="consultó a sus registros de conexión el ";
-
 
246
	$l_explain_warn_reason="con la siguiente razón : ";
-
 
247
}
-
 
248
else if($Language == 'zn'){
-
 
249
	$l_access_denied = "访问控制";
-
 
250
	$l_access_welcome = "欢迎来到ALCASAR";
-
 
251
	$l_access_unavailable = "不可访问";
-
 
252
	$l_required_domain = "访问的网站";
-
 
253
	$l_explain_acc_access = "管理中心能管理门户,您必须通过超级用户或者管理用户来访问。";
-
 
254
	$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
-
 
255
	$l_explain_net_pb = "您的门户检测因特网不可用。";
-
 
256
	$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
-
 
257
	$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
-
 
258
	$l_welcome = "强制门户主页";
-
 
259
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
-
 
260
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">安装根证书 </a>";
-
 
261
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">安装根证书 </a>";
-
 
262
	$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
-
 
263
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
-
 
264
	$l_category = "类别 :";
-
 
265
	if ((isset ($user[4])) && ($user[4] == "0")) {
-
 
266
		$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
-
 
267
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">打开一个网络进程</a>";
-
 
268
	}
-
 
269
	else {
-
 
270
		if ($user[5] != $user[0]) // authentication exception or not
-
 
271
		{
-
 
272
			$l_logout_explain = "关闭当前连接进程。<br> 已连接用户:<a href=\"http://$hostname:3990/logoff\" title=\" $user[5]\"><b>$user[5]</b></a><br><br>$nb_connection_history 最后连接 :$connection_history";
-
 
273
			$l_logout = "<a href=\"http://$hostname:3990/logoff\">断开网络</a>";
245
  }
274
		}
246
  else
275
		else
247
  {
276
		{
248
  	 $l_continue_link = "<a href='index.php' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
277
			$l_logout_explain = "您的系统($user[5])验证例外<br><br>$nb_connection_history 最后连接: $connection_history";
-
 
278
			$l_logout = "连接信息";
249
  }
279
		}
-
 
280
	}
-
 
281
	$l_password_change = "<a href=\"https://$hostname/pass\">更改您的密码</a>";
-
 
282
	$l_password_change_explain = "重新指向密码修改页面。<br><br> 您需要一个可用的网络账户。";
-
 
283
	$l_sms_explain = "重新指向短信登录页面。<br><br><strong>用户名:</strong>您的电话号码<br><strong>密码:</strong>您的信息";
-
 
284
	$l_back_page = "<a href=\"javascript:history.back()\">上一页</a>";
-
 
285
	$l_service_sms = "短信服务可用";
-
 
286
	$l_service_sms_n = "短信服务禁用";
-
 
287
	$l_acc_sms = "短信自动注册";
-
 
288
	$l_explain_warn = "管理员创建了一份可用于司法调查的连接日志文档。";
-
 
289
	if(isset($_GET['url']))
-
 
290
		$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>我明白并希望继续浏览。</a>";
-
 
291
	else
-
 
292
		$l_continue_link = "<a href='index.php' class='button'>我明白并希望继续浏览。</a>";
250
  $l_title_warn="Estimado usuario,";
293
	$l_title_warn="亲爱的用户,";
251
  $l_explain_warn_name="El usario ";
294
	$l_explain_warn_name="一人名为";
252
  $l_explain_warn_ip="con este IP : ";
295
	$l_explain_warn_ip="在此IP:";
253
  $l_explain_warn_date="consultó a sus registros de conexión el ";
296
	$l_explain_warn_date="查看您的连接日志于";
254
  $l_explain_warn_reason="con la siguiente razón : ";
297
	$l_explain_warn_reason=" 如下原因:";
255
}
298
}
256
else {
299
else {
257
  $l_access_denied = "Access control";
300
	$l_access_denied = "Access control";
258
  $l_access_welcome = "Welcome on ALCASAR";
301
	$l_access_welcome = "Welcome on ALCASAR";
259
  $l_access_unavailable = "ACCESS UNAVAILABLE";
302
	$l_access_unavailable = "ACCESS UNAVAILABLE";
260
  $l_required_domain = "Required WEB site";
303
	$l_required_domain = "Required WEB site";
261
  $l_explain_acc_access = "This center control the portal. You must have an administrative account.";
304
	$l_explain_acc_access = "This center control the portal. You must have an administrative account.";
262
  $l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
305
	$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
263
  $l_explain_net_pb = "Your portal has just detected that the Internet access is down";
306
	$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
264
  $l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
307
	$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
265
  $l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
308
	$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
266
  $l_welcome = "Your captive portal main page";
309
	$l_welcome = "Your captive portal main page";
267
  $l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
310
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
268
  $l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
311
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
269
  $l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
312
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
270
  $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>";
313
	$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>";
271
  $l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
314
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
272
  $l_category = "category :";
315
	$l_category = "category :";
273
if ((isset ($user[4])) && ($user[4] == "0")) {
316
	if ((isset ($user[4])) && ($user[4] == "0")) {
274
	$l_logout_explain = "No Internet consultation session is actualy open on your system";
317
		$l_logout_explain = "No Internet consultation session is actualy open on your system";
275
	$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
318
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
276
	}
319
	}
277
  else {
320
	else {
278
	  if ($user[5] != $user[0]) // authentication exception or not
321
		if ($user[5] != $user[0]) // authentication exception or not
279
	  {
322
		{
280
		  $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";
323
			$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";
281
		  $l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
324
			$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</a>";
282
	  }
325
		}
283
	  else
326
		else
284
	  {
327
		{
285
		  $l_logout_explain = "Your system ($user[5]) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
328
			$l_logout_explain = "Your system ($user[5]) is in exception of authentication.<br><br>$nb_connection_history Last logins :$connection_history";
286
		  $l_logout = "Connections information";
329
			$l_logout = "Connections information";
287
	  }
330
		}
288
  	}
331
	}
289
  $l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
332
	$l_password_change = "<a href=\"https://$hostname/pass\">Change your password</a>";
290
  $l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
333
	$l_password_change_explain = "Redirect you on password change page.<br><br> You should already have an Internet access account.";
291
  $l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
334
	$l_sms_explain = "Redirect you on auto registration page.<br><br><strong>Login:</strong> your phone number<br><strong>Password:</strong> SMS content";
292
  $l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
335
	$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>";
293
  $l_service_sms = "SMS service enable";
336
	$l_service_sms = "SMS service enable";
294
  $l_service_sms_n = "SMS service disable";
337
	$l_service_sms_n = "SMS service disable";
295
  $l_acc_sms = "Auto registration by SMS";
338
	$l_acc_sms = "Auto registration by SMS";
296
  $l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
339
	$l_explain_warn = "The administrator created an archive which contains your imputabilities logs for a judicial investigation.";
297
  if(isset($_GET['url']))
340
	if(isset($_GET['url']))
298
  {
-
 
299
  	$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>I understand and I wish to continue.</a>";
341
		$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>I understand and I wish to continue.</a>";
300
  }
-
 
301
  else
342
	else
302
  {
-
 
303
 	 $l_continue_link = "<a href='index.php' class='button'>I understand and I wish to continue.</a>";
343
		$l_continue_link = "<a href='index.php' class='button'>I understand and I wish to continue.</a>";
304
  }
-
 
305
  $l_title_warn="Dear user,";
344
	$l_title_warn="Dear user,";
306
  $l_explain_warn_name="Someone called ";
345
	$l_explain_warn_name="Someone called ";
307
  $l_explain_warn_ip="with this IP : ";
346
	$l_explain_warn_ip="with this IP : ";
308
  $l_explain_warn_date="has read your connexion logs at ";
347
	$l_explain_warn_date="has read your connexion logs at ";
309
  $l_explain_warn_reason="For this reason : ";
348
	$l_explain_warn_reason="For this reason : ";
310
}
349
}
311
 
350
 
312
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
351
$l_title = ($direct_access ? $l_access_welcome : ($network_pb ? $l_access_unavailable : $l_access_denied));
313
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
352
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny));
314
 
353