diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index c615e74f61..88bd581f2c 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -63,6 +63,7 @@ switch ($login_screen) { case 'error_perms': case 'homedir_bad_defined': case 'homeurl_bad_defined': + case 'disabled_access_node': $logo_link = 'index.php'; $logo_title = __('Go to Login'); break; @@ -208,6 +209,7 @@ if (is_metaconsole() === true) { switch ($login_screen) { case 'logout': case 'login': + case 'disabled_access_node': if (!empty($page) && !empty($sec)) { foreach ($_POST as $key => $value) { html_print_input_hidden(io_safe_input($key), io_safe_input($value)); @@ -508,9 +510,29 @@ if ($login_screen == 'logout') { echo ''; } +if ($login_screen === 'disabled_access_node') { + echo '
'; + echo '
'; + echo '
'; + echo html_print_image('images/icono_logo_pandora.png', true, ['alt' => __('Centralized user in metaconsole'), 'border' => 0]); + echo '
'; + echo '
'; + echo '
'; + echo '

'.__('Centralized user in metaconsole').'

'; + echo '

'.__('This user does not have access on node, please enable node access on this user from metaconsole.').'

'; + echo '
'; + echo '
'; + html_print_submit_button('Ok', 'hide-login-logout', false); + echo '
'; + echo '
'; + echo '
'; + echo '
'; +} + switch ($login_screen) { case 'error_dbconfig': case 'error_authconfig': + case 'disabled_node_access': if (!isset($config['rb_product_name_alt'])) { $title = __('Problem with %s database', get_product_name()); } else { @@ -694,6 +716,29 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' }); break; + case 'disabled_access_node': + $(document).ready (function () { + $(function() { + $("#disabled_access_node").dialog({ + resizable: true, + draggable: true, + modal: true, + height: 220, + width: 528, + clickOutside: true, + overlay: { + opacity: 0.5, + background: "black" + } + }); + }); + + $("#submit-hide-login-logout").click (function () { + document.location = ""; + }); + }); + break; + default: $(document).ready (function () { // IE9- modal warning window diff --git a/pandora_console/index.php b/pandora_console/index.php index 6d986c8c3a..0d01bd41dc 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -996,6 +996,7 @@ if (! isset($config['id_user'])) { $iduser = $_SESSION['id_usuario']; unset($_SESSION['id_usuario']); unset($iduser); + $login_screen = 'disabled_access_node'; include_once 'general/login_page.php'; while (ob_get_length() > 0) { ob_end_flush();