diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index eb924227d0..bbdd8ba76c 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -171,11 +171,11 @@ if (isset($config['custom_support_url'])) { echo '
  • '.__('Support').'
  • '; } else { echo '
  • support
  • '; - echo '
  • '.__('Support').'
  • '; + echo '
  • '.__('Support').'
  • '; } } else if (!$custom_conf_enabled) { echo '
  • support
  • '; - echo '
  • '.__('Docs').'
  • '; + echo '
  • '.__('Support').'
  • '; } echo ''; @@ -370,17 +370,18 @@ if ($config['enterprise_installed']) { echo ''.__('Forgot your password?'); echo ''; - echo ''; echo ''; echo ''; } else if (isset($process_error_message) && !empty($process_error_message)) { - echo '
    '; + echo '
    '; echo '
    '; echo '
    '; - echo html_print_image('images/icono_stop.png', true, ['alt' => __('Password reset'), 'border' => 0]); + echo html_print_image('images/icono_stop.png', true, ['alt' => __('Forbidden'), 'border' => 0]); echo '
    '; echo '
    '; echo '
    '; echo '

    '.__('ERROR').'

    '; echo '

    '.$process_error_message.'

    '; + echo '
    '; echo '
    '; + echo '
    '; echo '
    '; - html_print_submit_button('Ok', 'reset_correct_button', false); + html_print_submit_button('Ok', 'reset_correct_button', false, ['class' => 'mini float-right']); echo '
    '; echo '
    '; echo '
    '; @@ -529,8 +533,9 @@ if (isset($correct_reset_pass_process)) { echo '

    '.__('SUCCESS').'

    '; echo '

    '.$correct_reset_pass_process.'

    '; echo '
    '; + echo '
    '; echo '
    '; - html_print_submit_button('Ok', 'final_process_correct_button', false); + html_print_submit_button('Ok', 'final_process_correct_button', false, ['class' => 'mini float-right']); echo '
    '; echo '
    '; echo ''; @@ -557,8 +562,9 @@ if (isset($login_failed)) { echo ''; } + echo '
    '; echo '
    '; - html_print_submit_button('Ok', 'hide-login-error', false, ['class' => ' mini']); + html_print_submit_button('Ok', 'hide-login-error', false, ['class' => ' mini float-right']); echo '
    '; echo ''; echo ''; @@ -581,8 +587,9 @@ if ($login_screen == 'logout') { } echo ''; + echo '
    '; echo '
    '; - html_print_submit_button('Ok', 'hide-login-logout', false, ['class' => ' mini']); + html_print_submit_button('Ok', 'hide-login-logout', false, ['class' => ' mini float-right']); echo '
    '; echo ''; echo ''; @@ -600,8 +607,9 @@ if ($login_screen === 'disabled_access_node') { 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 '
    '; echo '
    '; - html_print_submit_button('Ok', 'hide-login-logout', false); + html_print_submit_button('Ok', 'hide-login-logout', false, ['class' => 'mini float-right']); echo '
    '; echo ''; echo ''; @@ -708,8 +716,9 @@ if ($login_screen == 'error_authconfig' || $login_screen == 'error_emptyconfig' echo '

    '.$title.'

    '; echo '

    '.$message.''; echo ''; + echo '
    '; echo '

    '; - html_print_submit_button('Ok', 'hide-login-error', false); + html_print_submit_button('Ok', 'hide-login-error', false, ['class' => 'mini float-right']); echo '
    '; echo ''; echo ''; @@ -779,19 +788,23 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, clickOutside: true, overlay: { opacity: 0.5, background: "black" + }, + open: function (event, ui) { + $(".ui-widget-overlay").click(function () { + $('#login_logout').dialog('close'); + }); } }); }); $("#button-hide-login-logout").click (function () { - document.location = ""; - }); + $( "#login_logout" ).dialog( "close" ); + }); }); break; @@ -802,7 +815,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, clickOutside: true, overlay: { @@ -826,7 +838,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 400, width: 700, overlay: { opacity: 0.5, @@ -844,7 +855,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, overlay: { opacity: 0.5, @@ -869,7 +879,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, clickOutside: true, overlay: { @@ -890,7 +899,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, clickOutside: true, overlay: { @@ -910,7 +918,6 @@ html_print_div(['id' => 'forced_title_layer', 'class' => 'forced_title_layer', ' resizable: true, draggable: true, modal: true, - height: 220, width: 528, overlay: { opacity: 0.5, diff --git a/pandora_console/general/mysqlerr.php b/pandora_console/general/mysqlerr.php index fe24117d3a..6368122da3 100644 --- a/pandora_console/general/mysqlerr.php +++ b/pandora_console/general/mysqlerr.php @@ -1,167 +1,77 @@ - - - - - - -
    - -
    - - - - /images/icono_cerrar.png'> -
    - -
    - /images/mysqlerr.png'> -
    - -
    -
    - $value) { - if (preg_match('/._alt/i', $key)) { - $custom_conf_enabled = true; - break; - } +$custom_conf_enabled = false; +foreach ($config as $key => $value) { + if (preg_match('/._alt/i', $key)) { + $custom_conf_enabled = true; + break; } +} - if (!$custom_conf_enabled || isset($config['custom_docs_url_alt'])) { - if (isset($config['custom_docs_url_alt'])) { - $docs_url = $config['custom_docs_url_alt']; - } else { - $docs_url = 'https://pandorafms.com/manual/en/documentation/02_installation/04_configuration'; - } - - echo ' - -
    - '.__('Documentation').' - -
    -
    - '; +if (empty($custom_conf_enabled) === true || isset($config['custom_docs_url_alt']) === true) { + if (isset($config['custom_docs_url_alt']) === true) { + $docs_url = $config['custom_docs_url_alt']; + } else { + $docs_url = 'https://pandorafms.com/manual/en/documentation/02_installation/04_configuration'; } +} + +echo '
    '; + echo '
    '; + echo '
    '; + echo html_print_image('images/mysqlerr.png', true, ['alt' => __('Mysql error'), 'border' => 0]); + echo '
    '; + echo '
    '; + echo '
    '; + echo '

    '.__('Database error').'

    '; + echo '

    '.$message.'

    '; + echo '
    '; + echo '
    '; + echo '
    '; + html_print_submit_button( + __('Documentation'), + 'mysqlerr_button', + false, + ['class' => 'mini float-right'] + ); + echo '
    '; + echo '
    '; + echo '
    '; + echo '
    '; + ?> - ?> - - - -
    - -
    - - - diff --git a/pandora_console/images/icono_support.png b/pandora_console/images/icono_support.png index 6db6d32b52..302e245ebc 100644 Binary files a/pandora_console/images/icono_support.png and b/pandora_console/images/icono_support.png differ diff --git a/pandora_console/include/styles/login.css b/pandora_console/include/styles/login.css index f698f47eff..c07361fbd0 100644 --- a/pandora_console/include/styles/login.css +++ b/pandora_console/include/styles/login.css @@ -242,9 +242,6 @@ div.login_pass { cursor: pointer; } -#show-hide-pass img { -} - div.login_nick input:-webkit-autofill, div.login_nick input:-webkit-autofill:hover, div.login_nick input:-webkit-autofill:focus, @@ -351,7 +348,7 @@ span.span1 { } span.span2 { - font-size: 26px; + font-size: 20px; letter-spacing: -0.26px; font-weight: 350; color: #c1ccdc; @@ -379,7 +376,7 @@ div.img_banner_login img { } .reset_password a { - color: #14524f; + color: #ffffff; font-size: 9pt; font-weight: bold; } @@ -393,7 +390,7 @@ div.img_banner_login img { line-height: 49pt; } span.span2 { - font-size: 26px; + font-size: 20px; letter-spacing: -0.26px; font-weight: 350; color: #c1ccdc; @@ -731,3 +728,27 @@ div.login_pass input:-webkit-autofill:focus, div.login_pass input:-webkit-autofill:active { background-image: url("../../images/eye-closed-input.png"); } + +button.submitButton { + display: flex; + justify-content: center; + flex-direction: row; + min-width: 110px; + height: 42px; + font-size: 14px; + font-family: "Pandora-Regular"; + align-items: center; + line-height: 24px; + box-shadow: 0px 3px 6px #c7c7c7; + color: #fff; + border: 2px solid #14524f; + border-radius: 8px; + padding: 0 10px; + cursor: pointer; + z-index: 100; + font-weight: bold; +} + +.content_alert { + margin: 0 !important; +}