Subversion Repositories ALCASAR

Rev

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

Rev 2272 Rev 2293
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2272 2017-06-04 19:03:43Z tom.houdayer $
2
# $Id: index.php 2293 2017-06-20 15:31:12Z tom.houdayer $
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 45... Line 45...
45
 
45
 
46
$organisme = $conf["ORGANISM"];
46
$organisme = $conf["ORGANISM"];
47
$hostname  = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
47
$hostname  = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
48
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
48
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
49
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
49
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
50
$cert_add = "http://$hostname/certs";
50
$certCa_link = "http://$hostname/certs/certificat_alcasar_ca.crt";
51
$direct_access = false;
51
$direct_access = false;
52
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
52
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
53
$connection_history = '';
53
$connection_history = '';
54
$nb_connection_history = 3;
54
$nb_connection_history = 3;
55
 
55
 
Line 149... Line 149...
149
	$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
149
	$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
150
	$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
150
	$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
151
	$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
151
	$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
152
	$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
152
	$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
153
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
153
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
154
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installer le certificat racine</a>";
154
	$l_install_certif = "Installer le certificat racine";
155
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Installation du certificat de l'autorité; racine d'ALCASAR</a>";
155
	$l_install_certif_more = "Installation du certificat de l'autorité; racine d'ALCASAR";
156
	$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>";
156
	$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>";
157
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
157
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
158
	$l_category = "catégorie :";
158
	$l_category = "catégorie :";
159
	if (!$user->connected) {
159
	if (!$user->connected) {
160
		$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
160
		$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
Line 196... Line 196...
196
	$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
196
	$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
197
	$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
197
	$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
198
	$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
198
	$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
199
	$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
199
	$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
200
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
200
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
201
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
201
	$l_install_certif = "Instalar Certificado Alcasar AC";
202
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Instalar Certificado Alcasar AC</a>";
202
	$l_install_certif_more = "Instalar Certificado Alcasar AC";
203
	$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>";
203
	$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>";
204
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
204
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
205
	$l_category = "categoria :";
205
	$l_category = "categoria :";
206
	if (!$user->connected) {
206
	if (!$user->connected) {
207
		$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
207
		$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
Line 243... Line 243...
243
	$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
243
	$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
244
	$l_explain_net_pb = "您的门户检测因特网不可用。";
244
	$l_explain_net_pb = "您的门户检测因特网不可用。";
245
	$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
245
	$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
246
	$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
246
	$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
247
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
247
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
248
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">安装根证书 </a>";
248
	$l_install_certif = "安装根证书";
249
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">安装根证书 </a>";
249
	$l_install_certif_more = "安装根证书";
250
	$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
250
	$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
251
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
251
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
252
	$l_category = "类别 :";
252
	$l_category = "类别 :";
253
	if (!$user->connected) {
253
	if (!$user->connected) {
254
		$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
254
		$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
Line 291... Line 291...
291
	$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
291
	$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
292
	$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
292
	$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
293
	$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
293
	$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
294
	$auto_save_sms_text = "تسجيل ذاتي على";
294
	$auto_save_sms_text = "تسجيل ذاتي على";
295
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
295
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
296
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">ركب جذر الشهادة</a>";
296
	$l_install_certif = "ركب جذر الشهادة";
297
	$install_cert_text = "تركيب شهادة السلطة؛ جذر الكزار";
297
	$l_install_certif_more = "ALCASAR تركيب شهادة السلطة؛ جذر الكزار";
298
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">ALCASAR $install_cert_text</a>";
-
 
299
	$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
298
	$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
300
	$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
299
	$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
301
	$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
300
	$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
302
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
301
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
303
	$l_category = "فئة :";
302
	$l_category = "فئة :";
Line 359... Line 358...
359
	$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
358
	$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
360
	$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
359
	$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
361
	$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
360
	$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
362
	$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
361
	$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
363
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
362
	$l_sms_access = "<a href=\"https://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
364
	$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
363
	$l_install_certif = "Install ALCASAR AC Certificate";
365
	$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.der\">Install ALCASAR AC Certificate</a>";
364
	$l_install_certif_more = "Install ALCASAR AC Certificate";
366
	$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>";
365
	$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>";
367
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
366
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
368
	$l_category = "category :";
367
	$l_category = "category :";
369
	if (!$user->connected) {
368
	if (!$user->connected) {
370
		$l_logout_explain = "No Internet consultation session is actualy open on your system";
369
		$l_logout_explain = "No Internet consultation session is actualy open on your system";
Line 529... Line 528...
529
						<img src="<?= $img_rep.$img_internet ?>">
528
						<img src="<?= $img_rep.$img_internet ?>">
530
					</div>
529
					</div>
531
				<?php endif; ?>
530
				<?php endif; ?>
532
 
531
 
533
				<div class="box_menu" id="box_certif" onmouseover="setBoxInfoContent('text_certif');">
532
				<div class="box_menu" id="box_certif" onmouseover="setBoxInfoContent('text_certif');">
534
					<span><?= $l_install_certif ?></span>
533
					<span><a href="<?= $certCa_link ?>"><?= $l_install_certif ?></a></span>
535
					<img src="<?= $img_rep.$img_certificate ?>">
534
					<img src="<?= $img_rep.$img_certificate ?>">
536
				</div>
535
				</div>
537
 
536
 
538
				<div class="box_menu" id="box_mdp" onmouseover="setBoxInfoContent('text_mdp');">
537
				<div class="box_menu" id="box_mdp" onmouseover="setBoxInfoContent('text_mdp');">
539
					<img src="<?= $img_rep.$img_pwd ?>">
538
					<img src="<?= $img_rep.$img_pwd ?>">
Line 561... Line 560...
561
					<?php endif; ?>
560
					<?php endif; ?>
562
					<img src="<?= $img_rep.$img_internet ?>">
561
					<img src="<?= $img_rep.$img_internet ?>">
563
				</div>
562
				</div>
564
 
563
 
565
				<div class="div-cache" id="text_certif">
564
				<div class="div-cache" id="text_certif">
566
					<h2><?= $l_install_certif_more ?></h2>
565
					<h2><a href="<?= $certCa_link ?>"><?= $l_install_certif_more ?></a></h2>
567
					<p><?= "$l_certif_explain $l_certif_explain_help" ?></p>
566
					<p><?= "$l_certif_explain $l_certif_explain_help" ?></p>
568
					<img src="<?= $img_rep.$img_certificate ?>">				
567
					<img src="<?= $img_rep.$img_certificate ?>">				
569
				</div>
568
				</div>
570
 
569
 
571
				<div class="div-cache" id="text_mdp">
570
				<div class="div-cache" id="text_mdp">