Change no access error page - #91

This commit is contained in:
enriquecd 2016-10-31 16:03:21 +01:00
parent 73c283eb05
commit fbbd61fb82
4 changed files with 80 additions and 47 deletions

View File

@ -18,7 +18,10 @@ echo "
<div class='modalheader'>
<span class='modalheadertext'>";
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 "'>
<div class='modalcontenttext'>";
switch ($tipo) {
case "noaccess":
echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br/> <br/>
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 "
</div>
<div class='modalokbutton cerrar'>
<span class='modalokbuttontext'>OK</span>
</div>
<div class='modalgobutton gopandora'>
</div>";
if($open){
echo "<div class='modalgobutton gopandora'>
<span class='modalokbuttontext'>About Enterprise</span>
</div>
";
</div>";
}
?>

View File

@ -1,42 +1,19 @@
<?php
<script>
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
$('body').append( "<div id='opacidad' style='position:fixed;background:black;opacity:0.6;z-index:1'></div>" );
jQuery.get ("ajax.php",
{
"page": "general/alert_enterprise",
"message":"noaccess"},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
.append (data)
.show ();
},
"html"
);
// 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 "<br><br><center><h3>".__('You don\'t have access to this page')."</h3></center>";
}
?>
<div id="noaccess" style="width: 500px; height:180px;">
<div id="noaccess-title" style=" height: 20px; width: 98%;"><?php echo __('Access to this page is restricted');?></div>
<div>
<div id="noaccess-image" style="width: 15%;">
<?php
if (file_exists("images/grafico_llave.png")) {
echo html_print_image('images/grafico_llave.png', true, array("alt" => __('No access')));
}
?>
</div>
<div id="noaccess-text" style="width: 70%;">
<?php echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br/> <br/>
Please know that all attempts to access this page are recorded in security logs of Pandora System Database');?>
</div>
</div>
</div>
<!-- Container div. ENDS HERE -->
</script>

View File

@ -0,0 +1,42 @@
<?php
// 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 "<br><br><center><h3>".__('You don\'t have access to this page')."</h3></center>";
}
?>
<div id="noaccess" style="width: 500px; height:180px;">
<div id="noaccess-title" style=" height: 20px; width: 98%;"><?php echo __('Access to this page is restricted');?></div>
<div>
<div id="noaccess-image" style="width: 15%;">
<?php
if (file_exists("images/grafico_llave.png")) {
echo html_print_image('images/grafico_llave.png', true, array("alt" => __('No access')));
}
?>
</div>
<div id="noaccess-text" style="width: 70%;">
<?php echo __('Access to this page is restricted to authorized users only, please contact system administrator if you need assistance. <br/> <br/>
Please know that all attempts to access this page are recorded in security logs of Pandora System Database');?>
</div>
</div>
</div>
<!-- Container div. ENDS HERE -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB