$value) { $url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value); } } $login_body_style = ''; // Overrides the default background with the defined by the user if (!empty($config['login_background'])) { $background_url = ui_get_full_url("images/backgrounds/") . $config['login_background']; $login_body_style = "style=\"background-image: url('$background_url');\""; } echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; //TODO: Put branding in variables (external file) or database /* CUSTOM BRANDING STARTS HERE */ // Replace the following with your own URL and logo. // A mashup of the Pandora FMS logo and your companies highly preferred echo '
'; echo ''; if (defined ('METACONSOLE')) { html_print_image ("enterprise/meta/images/pandora_login_enterprise.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true); } else if (defined ('PANDORA_ENTERPRISE')) { html_print_image ($config['homeurl'] . "/images/pandora_login_enterprise.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true); } else { html_print_image ($config['homeurl'] . "/images/pandora_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true); } echo ''; // This prints the current pandora console version. // For stable/live function it might be wise to comment it out /* CUSTOM BRANDING ENDS HERE */ echo ''; echo ''; echo '
'; switch ($login_screen) { case 'login': if (!empty ($page) && !empty ($sec)) { foreach ($_POST as $key => $value) { html_print_input_hidden ($key, $value); } } echo ''; echo ''; echo ''; echo ''; echo ''; break; case 'logout': echo '

' . __('Logged out') . '

'; echo ''; break; case 'double_auth': if (!empty ($page) && !empty ($sec)) { foreach ($_POST as $key => $value) { html_print_input_hidden ($key, $value); } } echo ''; echo ''; echo ''; break; default: if (isset($error_info)) { echo '

' . $error_info['title'] . '

'; echo ''; echo '
'; echo $error_info['message']; echo '
'; } break; } echo '
'; echo '
'; if (defined ('METACONSOLE')) { echo '
'; } else { echo '
'; } echo $pandora_version.(($develop_bypass == 1) ? ' '.__('Build').' '.$build_version : '') . '
'; if (isset ($login_failed)) { echo '
'; echo '
'; echo '
'; echo '' . $config["auth_error"] . ''; echo '
'; echo '
'; echo html_print_image('images/error_login.png', true, array("alt" => __('Login failed'), "border" => 0)); echo '
'; echo '
'; html_print_submit_button("Ok", 'hide-login-error', false, 'class="ui-button-dialog ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok" style="width:100px;"'); echo '
'; echo '
'; echo '
'; } ui_require_css_file ('dialog'); ui_require_css_file ('jquery-ui-1.10.0.custom'); ui_require_jquery_file('jquery-ui-1.10.0.custom'); ?> 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true)); html_print_div(array('id' => 'modal_alert', 'hidden' => true)); ?>