';
echo '';
if (defined ('METACONSOLE')) {
html_print_image ("images/logo_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
}
else if (defined ('PANDORA_ENTERPRISE')) {
html_print_image ("images/logo_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
}
else {
html_print_image ("images/logo_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 ' | ';
switch ($login_screen) {
case 'login':
if (!empty ($page) && !empty ($sec)) {
foreach ($_POST as $key => $value) {
html_print_input_hidden ($key, $value);
}
}
echo ' ';
html_print_image ("/images/usuario_login.png", false);
html_print_input_text_extended ("nick", '', "nick", '', '', '' , false,
'', 'class="login login_user" placeholder="'.__('User').'"');
echo ' ';
echo '';
html_print_image ("/images/candado_login.png", false);
html_print_input_text_extended ("pass", '', "pass", '', '', '' ,false,
'', 'class="login login_password" placeholder="'.__('Password').'"', false, true);
echo ' ';
echo '';
if ($config['auth'] == 'saml') {
html_print_submit_button(__("Login with SAML"), "login_button_saml", false, 'class="sub login_boton"');
}
else {
html_print_submit_button(__("Login"), "login_button", false, 'class="sub next_login"');
}
echo ' ';
break;
case 'logout':
echo '' . __('Logged out') . '';
echo '';
echo __('Your session is over. Please close your browser window to close this Pandora session.').'
';
echo ' ';
break;
case 'double_auth':
if (!empty ($page) && !empty ($sec)) {
foreach ($_POST as $key => $value) {
html_print_input_hidden ($key, $value);
}
}
echo '';
echo __('Authenticator code') . ' ';
echo ' ';
echo '';
html_print_input_text_extended ("auth_code", '', "auth_code", '', '', '' , false, '', 'class="login login_password"', false, true);
echo ' ';
echo '';
html_print_submit_button(__("Check code") . ' >', "login_button", false, 'class="sub next_login"');
echo ' ';
break;
default:
if (isset($error_info)) {
echo '' . $error_info['title'] . '';
echo '';
echo '';
echo $error_info['message'];
echo ' ';
}
break;
}
echo ' |