From fbbd61fb825f919a09002b24530b2e09e51580e1 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 31 Oct 2016 16:03:21 +0100 Subject: [PATCH] Change no access error page - #91 --- pandora_console/general/alert_enterprise.php | 26 ++++++-- pandora_console/general/noaccess.php | 59 ++++++------------- pandora_console/general/noaccess2.php | 42 +++++++++++++ pandora_console/images/access_denied.png | Bin 0 -> 3655 bytes 4 files changed, 80 insertions(+), 47 deletions(-) create mode 100644 pandora_console/general/noaccess2.php create mode 100644 pandora_console/images/access_denied.png diff --git a/pandora_console/general/alert_enterprise.php b/pandora_console/general/alert_enterprise.php index 668f1acdc8..bf80619169 100644 --- a/pandora_console/general/alert_enterprise.php +++ b/pandora_console/general/alert_enterprise.php @@ -18,7 +18,10 @@ echo "
"; -if(!enterprise_installed()){ +if($tipo=='noaccess'){ + echo "You don't have access to this page"; +} +elseif(!enterprise_installed()){ echo "Community version"; } else{ @@ -69,6 +72,9 @@ switch ($tipo) { case "alertagentmodal": echo "icono_info.png"; break; + case "noaccess": + echo "access_denied.png"; + break; default: break; } @@ -78,6 +84,14 @@ echo "'>
"; switch ($tipo) { + + case "noaccess": + + echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance.

+ Please know that all attempts to access this page are recorded in security logs of Pandora System Database'); + + break; + case "infomodal": if($open){ @@ -155,12 +169,12 @@ echo "
OK -
- -
+
"; +if($open){ +echo "
About Enterprise -
-"; +
"; +} ?> diff --git a/pandora_console/general/noaccess.php b/pandora_console/general/noaccess.php index bc3ae7073b..18ebba8390 100644 --- a/pandora_console/general/noaccess.php +++ b/pandora_console/general/noaccess.php @@ -1,42 +1,19 @@ - -// Pandora FMS - http://pandorafms.com -// ================================================== -// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas -// Please see http://pandorafms.org for full contribution list - -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; version 2 - -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -if (file_exists("images/grafico_llave.png")) { - ui_print_page_header (__('You don\'t have access to this page'), "", false, "", true); -} -else { - echo "

".__('You don\'t have access to this page')."

"; -} -?> - -
-
-
-
- __('No access'))); - } - ?> -
-
-
- Please know that all attempts to access this page are recorded in security logs of Pandora System Database');?> -
-
-
- - + $('body').append( "
" ); + jQuery.get ("ajax.php", + { + "page": "general/alert_enterprise", + "message":"noaccess"}, + function (data, status) { + $("#alert_messages").hide () + .empty () + .append (data) + .show (); + }, + "html" + ); + + + + \ No newline at end of file diff --git a/pandora_console/general/noaccess2.php b/pandora_console/general/noaccess2.php new file mode 100644 index 0000000000..bc3ae7073b --- /dev/null +++ b/pandora_console/general/noaccess2.php @@ -0,0 +1,42 @@ +

".__('You don\'t have access to this page')."

"; +} +?> + +
+
+
+
+ __('No access'))); + } + ?> +
+
+
+ Please know that all attempts to access this page are recorded in security logs of Pandora System Database');?> +
+
+
+ + diff --git a/pandora_console/images/access_denied.png b/pandora_console/images/access_denied.png new file mode 100644 index 0000000000000000000000000000000000000000..206fe0ac50effcb9b7958d079ecf91276c38840f GIT binary patch literal 3655 zcmV-N4!H4&P)?C+Bh|XZ9}3-(oB)fAn@S*DWWtVz$W>S7|p^q4F*8!Jh1_VoG`Fz0_7l_xd`2P?&?(x7IN`m_Wx~# zP|;_Yeni&@%eUwm0wpC8lK_ZL{Kz)o%62$&&4p*{@!N8O_5OW0q6)pV#@)d zvNbt{EZNn$f}j~gyvbrX|DU5H155W!~fb^xHt|AQ7mRbYUz*!;0~~nW?W@F4$+52xwGm4~^I_r_hW{5XfbkEGfB1};j~s^teWxMjf;Cu~fK3omDrqKq z7HgpP710)g>O@@N;Jqot8k0b@g&)2@1=jqZu*w~{JDF%-vXBxao%>Bu;*gTY72UwF zx9|devjwn;%7om8q+5`}+K)5_2hihi0gZ#x5xpgzNUUZu`WuQ^Qz@}6F9}{v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