Subversion Repositories ALCASAR

Rev

Rev 2085 | Rev 2105 | Go to most recent revision | Show entire file | Regard 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 183... Line 183...
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 : ";
Line 238... Line 234...
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']))
243
  {
-
 
244
 	 $l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
239
		$l_continue_link = "<a href='index.php?redirect=1&url=$_GET[url]' class='button'>Lo comprendo y deseo continuar mi navegación.</a>";
245
  }
-
 
246
  else
240
	else
247
  {
-
 
248
  	 $l_continue_link = "<a href='index.php' 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>";
249
  }
-
 
250
  $l_title_warn="Estimado usuario,";
242
	$l_title_warn="Estimado usuario,";
251
  $l_explain_warn_name="El usario ";
243
	$l_explain_warn_name="El usario ";
252
  $l_explain_warn_ip="con este IP : ";
244
	$l_explain_warn_ip="con este IP : ";
253
  $l_explain_warn_date="consultó a sus registros de conexión el ";
245
	$l_explain_warn_date="consultó a sus registros de conexión el ";
254
  $l_explain_warn_reason="con la siguiente razón : ";
246
	$l_explain_warn_reason="con la siguiente razón : ";
255
}
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>";
-
 
274
		}
-
 
275
		else
-
 
276
		{
-
 
277
			$l_logout_explain = "您的系统($user[5])验证例外<br><br>$nb_connection_history 最后连接: $connection_history";
-
 
278
			$l_logout = "连接信息";
-
 
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>";
-
 
293
	$l_title_warn="亲爱的用户,";
-
 
294
	$l_explain_warn_name="一人名为";
-
 
295
	$l_explain_warn_ip="在此IP:";
-
 
296
	$l_explain_warn_date="查看您的连接日志于";
-
 
297
	$l_explain_warn_reason=" 如下原因:";
-
 
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";
Line 293... Line 336...
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 : ";