Subversion Repositories ALCASAR

Rev

Rev 2600 | Rev 2609 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2600 Rev 2605
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2600 2018-08-19 23:48:55Z tom.houdayer $
2
# $Id: index.php 2605 2018-08-20 00:09:25Z 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 150... Line 150...
150
	$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.";
150
	$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_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées.";
151
	$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_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
152
	$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible.";
153
	$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
153
	$l_contact_access_deny = "Contactez le responsable de la séurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif.";
154
	$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
154
	$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information.";
155
	$l_sms_access = "<a href=\"http://$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
155
	$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Enregistrement par SMS</a>";
156
	$l_install_certif = "Installer le certificat racine";
156
	$l_install_certif = "Installer le certificat racine";
157
	$l_install_certif_more = "Installation du certificat de l'autorité; racine d'ALCASAR";
157
	$l_install_certif_more = "Installation du certificat de l'autorité; racine d'ALCASAR";
158
	$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>";
158
	$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>";
159
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
159
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide complémentaire</a>";
160
	$l_category = "catégorie :";
160
	$l_category = "catégorie :";
161
	if (!$user->connected) {
161
	if (!$user->connected) {
162
		$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
162
		$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système.";
163
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
163
		$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Ouvrir une session Internet</a>";
164
	} else {
164
	} else {
165
		if ($user->username != $user->mac) { // authentication exception or not
165
		if ($user->username != $user->mac) { // authentication exception or not
166
			$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
166
			$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté : <a href=\"$logout_link\" title=\"Deconnecter l'utilisateur $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history dernières connexions :$connection_history";
167
			$l_logout = "<a href=\"$logout_link\">Se déconnecter d'internet</a>";
167
			$l_logout = "<a href=\"$logout_link\">Se déconnecter d'internet</a>";
168
		} else {
168
		} else {
Line 197... Line 197...
197
	$l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
197
	$l_explain_acc_access = "Este é o centro de controle do portal para acessar você deve ter uma conta administrativa valida.";
198
	$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
198
	$l_explain_access_deny = "Você tenta se conectar a um recurso cujo conteúdo é considerado inadequado no conteúdo de informações.";
199
	$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
199
	$l_explain_net_pb = "O sistema detectou que o acesso é de risco, não será permitido o acesso";
200
	$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
200
	$l_contact_access_deny = "Entre em contato com o administrador do sistema de segurança se acha que essa filtragem é abusiva.";
201
	$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
201
	$l_contact_net_pb = "Entre em contato com a empresa fornecedora de Internet para mais informações";
202
	$l_sms_access = "<a href=\"http://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
202
	$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
203
	$l_install_certif = "Instalar Certificado Alcasar AC";
203
	$l_install_certif = "Instalar Certificado Alcasar AC";
204
	$l_install_certif_more = "Instalar Certificado Alcasar AC";
204
	$l_install_certif_more = "Instalar Certificado Alcasar AC";
205
	$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>";
205
	$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>";
206
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
206
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Essa foi uma ajuda complementar</a>";
207
	$l_category = "categoria :";
207
	$l_category = "categoria :";
208
	if (!$user->connected) {
208
	if (!$user->connected) {
209
		$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
209
		$l_logout_explain = "Não há conexão de Internet aberta em seu computador, deseja conectar?";
210
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
210
		$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Abrir uma conexão de Internet</a>";
211
	} else {
211
	} else {
212
		if ($user->username != $user->mac) { // authentication exception or not
212
		if ($user->username != $user->mac) { // authentication exception or not
213
			$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history logins últimos :$connection_history";
213
			$l_logout_explain = "Se desejar, feche a conexão do usuário atual conectado.<br> Usuário conectado : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history logins últimos :$connection_history";
214
			$l_logout = "<a href=\"$logout_link\">Sair da Internet</a>";
214
			$l_logout = "<a href=\"$logout_link\">Sair da Internet</a>";
215
		} else {
215
		} else {
Line 244... Line 244...
244
	$l_explain_acc_access = "管理中心能管理门户,您必须通过超级用户或者管理用户来访问。";
244
	$l_explain_acc_access = "管理中心能管理门户,您必须通过超级用户或者管理用户来访问。";
245
	$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
245
	$l_explain_access_deny = "您试图访问一个含有不当信息的资源。";
246
	$l_explain_net_pb = "您的门户检测因特网不可用。";
246
	$l_explain_net_pb = "您的门户检测因特网不可用。";
247
	$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
247
	$l_contact_access_deny = "如果您认为该过滤不当,请联系安全负责人(OSSI/RSSI)。";
248
	$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
248
	$l_contact_net_pb = "请联系IT负责人或网络服务商来了解更多信息。";
249
	$l_sms_access = "<a href=\"http://$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
249
	$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">短信自动登录 </a>";
250
	$l_install_certif = "安装根证书";
250
	$l_install_certif = "安装根证书";
251
	$l_install_certif_more = "安装根证书";
251
	$l_install_certif_more = "安装根证书";
252
	$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
252
	$l_certif_explain = "允许您的计算机与ALCASAR门户进行安全数据交换。<BR>如果该证书未包含在您的计算机中,您的浏览器将出现一些安全提醒。<br><br>";
253
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
253
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">额外帮助</a>";
254
	$l_category = "类别 :";
254
	$l_category = "类别 :";
255
	if (!$user->connected) {
255
	if (!$user->connected) {
256
		$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
256
		$l_logout_explain = "您的系统目前没有打开任何网络咨询进程。";
257
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">打开一个网络进程</a>";
257
		$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">打开一个网络进程</a>";
258
	} else {
258
	} else {
259
		if ($user->username != $user->mac) { // authentication exception or not
259
		if ($user->username != $user->mac) { // authentication exception or not
260
			$l_logout_explain = "关闭当前连接进程。<br> 已连接用户:<a href=\"$logout_link\" title=\" $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history 最后连接 :$connection_history";
260
			$l_logout_explain = "关闭当前连接进程。<br> 已连接用户:<a href=\"$logout_link\" title=\" $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history 最后连接 :$connection_history";
261
			$l_logout = "<a href=\"$logout_link\">断开网络</a>";
261
			$l_logout = "<a href=\"$logout_link\">断开网络</a>";
262
		} else {
262
		} else {
Line 292... Line 292...
292
	$l_explain_access_deny = "محاولة لدخول موارد تحتوي على معلومات غير ملائمة المحتوى";
292
	$l_explain_access_deny = "محاولة لدخول موارد تحتوي على معلومات غير ملائمة المحتوى";
293
	$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
293
	$l_explain_net_pb = "بوابتك تكتشف ان الدخول على الانترنت غير متوفر";
294
	$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
294
	$l_contact_access_deny = "المرجو الاتصال بضابط أمن (OSS / RSS) إذا اعتقدت ان هذه التصفية غير قانونية";
295
	$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
295
	$l_contact_net_pb = "المرجو الاتصال بمدير المعلومات أو مورد الأنترنت للمزيد من المعلومات";
296
	$auto_save_sms_text = "تسجيل ذاتي على";
296
	$auto_save_sms_text = "تسجيل ذاتي على";
297
	$l_sms_access = "<a href=\"http://$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
297
	$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">SMS $auto_save_sms_text</a>";
298
	$l_install_certif = "ركب جذر الشهادة";
298
	$l_install_certif = "ركب جذر الشهادة";
299
	$l_install_certif_more = "ALCASAR تركيب شهادة السلطة؛ جذر الكزار";
299
	$l_install_certif_more = "ALCASAR تركيب شهادة السلطة؛ جذر الكزار";
300
	$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
300
	$exchange_data_text = "يمَكن من تبادل البيانات المؤمّنة بين محطة الاستفسار و بوابة الكزار الأسيرة";
301
	$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
301
	$cert_not_saved_text = "إذا لم يتم تسجيل هذه الشهادة على محطة الاستفسار الخاصة بك، فمن الممكن ان يتم إصدار تنبيهات أمنية من متصحفك";
302
	$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
302
	$l_certif_explain = "<br><br>.$cert_not_saved_text<br> .$exchange_data_text";
303
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
303
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">مساعدة إضافية </a>";
304
	$l_category = "فئة :";
304
	$l_category = "فئة :";
305
	if (!$user->connected) {
305
	if (!$user->connected) {
306
		$l_logout_explain = "و لا جلسة استفسار للإنترنت مفتوحة حاليا على نظامك";
306
		$l_logout_explain = "و لا جلسة استفسار للإنترنت مفتوحة حاليا على نظامك";
307
		$close_session_text = "فتح جلسة الإنترنت";
307
		$close_session_text = "فتح جلسة الإنترنت";
308
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">$close_session_text</a>";
308
		$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">$close_session_text</a>";
309
	} else {
309
	} else {
310
		if ($user->username != $user->mac) { // authentication exception or not
310
		if ($user->username != $user->mac) { // authentication exception or not
311
			$close_session_text = "إقفال جلسة المستخدم المتصل حاليا";
311
			$close_session_text = "إقفال جلسة المستخدم المتصل حاليا";
312
			$userlogged_text = "المستخدم متصل";
312
			$userlogged_text = "المستخدم متصل";
313
			$disconnect_user_text = "قطع الاتصال على المستخدم";
313
			$disconnect_user_text = "قطع الاتصال على المستخدم";
Line 359... Line 359...
359
	$l_explain_acc_access = "This center control the portal. You must have an administrative account.";
359
	$l_explain_acc_access = "This center control the portal. You must have an administrative account.";
360
	$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
360
	$l_explain_access_deny = "You try to connect to a resource whose content is deemed to contain inappropriate information.";
361
	$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
361
	$l_explain_net_pb = "Your portal has just detected that the Internet access is down";
362
	$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
362
	$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive.";
363
	$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
363
	$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information";
364
	$l_sms_access = "<a href=\"http://$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
364
	$l_sms_access = "<a href=\"//$hostname/autoregistrationinfo.php\">Auto Registration by SMS</a>";
365
	$l_install_certif = "Install ALCASAR AC Certificate";
365
	$l_install_certif = "Install ALCASAR AC Certificate";
366
	$l_install_certif_more = "Install ALCASAR AC Certificate";
366
	$l_install_certif_more = "Install ALCASAR AC Certificate";
367
	$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 = "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>";
368
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
368
	$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Complementary help</a>";
369
	$l_category = "category :";
369
	$l_category = "category :";
370
	if (!$user->connected) {
370
	if (!$user->connected) {
371
		$l_logout_explain = "No Internet consultation session is actualy open on your system";
371
		$l_logout_explain = "No Internet consultation session is actualy open on your system";
372
		$l_logout = "<a href=\"http://$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
372
		$l_logout = "<a href=\"//$hostname/index.php?url=$redirect_link\">Open an Internet session</a>";
373
	} else {
373
	} else {
374
		if ($user->username != $user->mac) { // authentication exception or not
374
		if ($user->username != $user->mac) { // authentication exception or not
375
			$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history last connections :$connection_history";
375
			$l_logout_explain = "Close the session of the user currently connected.<br> User logged-on : <a href=\"$logout_link\" title=\"Disconnect user $user->username\"><b>$user->username</b></a><br><br>$nb_connection_history last connections :$connection_history";
376
			$l_logout = "<a href=\"$logout_link\">Logoff from internet</a>";
376
			$l_logout = "<a href=\"$logout_link\">Logoff from internet</a>";
377
		} else {
377
		} else {