2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2006-10-04 18:15:20 +02:00
|
|
|
|
2009-06-08 20:26:14 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2006-10-04 18:15:20 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
|
2006-10-04 18:15:20 +02:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2006-10-04 18:15:20 +02:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
if (isset($config["homedir"])) {
|
2013-04-22 12:31:20 +02:00
|
|
|
$homedir = $config["homedir"] . '/';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$homedir = '';
|
|
|
|
}
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
|
2013-04-22 12:31:20 +02:00
|
|
|
include_once($homedir . 'include/functions_ui.php');
|
|
|
|
include_once($homedir . 'include/functions.php');
|
|
|
|
include_once($homedir . 'include/functions_html.php');
|
|
|
|
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
if (!isset($login_screen)) {
|
2013-04-22 12:31:20 +02:00
|
|
|
$login_screen = 'login';
|
|
|
|
}
|
|
|
|
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
switch ($login_screen) {
|
2013-04-22 12:31:20 +02:00
|
|
|
case 'login':
|
|
|
|
$logo_link = 'http://www.pandorafms.com';
|
|
|
|
$logo_title = __('Go to Pandora FMS Website');
|
|
|
|
break;
|
|
|
|
case 'logout':
|
2014-12-11 16:18:26 +01:00
|
|
|
case 'double_auth':
|
2013-04-22 12:31:20 +02:00
|
|
|
$logo_link = 'index.php';
|
|
|
|
$logo_title = __('Go to Login');
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
error_reporting(0);
|
|
|
|
$error_info = ui_get_error($login_screen);
|
|
|
|
$logo_link = 'index.php';
|
|
|
|
$logo_title = __('Refresh');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-01-07 11:42:38 +01:00
|
|
|
$url = '?login=1';
|
2008-12-23 22:41:05 +01:00
|
|
|
//These variables come from index.php
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_GET as $key => $value) {
|
2010-08-18 13:35:42 +02:00
|
|
|
$url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
|
2008-12-23 22:41:05 +01:00
|
|
|
}
|
2007-08-06 13:44:49 +02:00
|
|
|
}
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
$login_body_style = '';
|
2014-03-27 Alejandro Gallardo <alejandro.gallardo@artica.es>
* include/functions_config.php,
godmode/setup/setup_visuals.php,
general/login_page.php: Now is possible to select a
custom login background in the setup visuals section.
* images/backgrounds/default_4.0-stripes.gif,
images/backgrounds/default_4.0.jpg,
images/backgrounds/default_5.0.png,
images/backgrounds/flowers.jpg,
images/backgrounds/grass.jpg,
images/backgrounds/tiles.jpg,
images/backgrounds/wall.jpg,
images/backgrounds/wood.jpg: Added new images to use
it as custom login backgrounds.
* images/backgrounds/background1.jpg,
images/backgrounds/background2.jpg,
images/backgrounds/background3.jpg,
images/backgrounds/background4.jpg,
images/backgrounds/background5.jpg,
images/backgrounds/background6.jpg,
images/backgrounds/background7.jpg,
images/backgrounds/background8.jpg,
images/backgrounds/background9.jpg,
images/backgrounds/background10.jpg,
images/backgrounds/background_red.jpg: Delete some
VERY old images.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-03-27 12:49:00 +01:00
|
|
|
// 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 '<div id="login_body" ' . $login_body_style . '></div>';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div id="header_login">';
|
|
|
|
echo '<div id="icon_custom_pandora">';
|
|
|
|
echo '<img src="images/custom_logo/logo_login_consola.png" alt="pandora_console">';
|
2014-06-03 18:59:55 +02:00
|
|
|
echo '</div>';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div id="list_icon_docs_support"><ul>';
|
|
|
|
echo '<li><a href="http://wiki.pandorafms.com/" target="_blank"><img src="images/icono_docs.png" alt="docs pandora"></a></li>';
|
|
|
|
echo '<li>' . __('Docs') . '</li>';
|
|
|
|
echo '<li id="li_margin_left"><a href="https://pandorafms.com/monitoring-services/support/" target="_blank"><img src="images/icono_support.png" alt="support pandora"></a></li>';
|
|
|
|
echo '<li>' . __('Support') . '</li>';
|
|
|
|
echo '</ul></div>';
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
echo '<div class="container_login">';
|
|
|
|
echo '<div class="login_page">';
|
|
|
|
echo '<form method="post" action="' . ui_get_full_url('index.php'.$url) . '" ><div class="login_logo_icon">';
|
|
|
|
echo '<a href="' . $logo_link . '">';
|
2015-04-24 13:45:13 +02:00
|
|
|
if (defined ('METACONSOLE')) {
|
2016-10-03 13:36:04 +02:00
|
|
|
if (!isset ($config["custom_logo_login"])){
|
2016-10-03 12:27:59 +02:00
|
|
|
html_print_image ("images/custom_logo_login/login_logo.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
|
|
|
}
|
2017-03-15 10:12:18 +01:00
|
|
|
}
|
2015-04-24 13:45:13 +02:00
|
|
|
else if (defined ('PANDORA_ENTERPRISE')) {
|
2017-03-15 10:12:18 +01:00
|
|
|
|
2016-10-03 13:36:04 +02:00
|
|
|
if (!isset ($config["custom_logo_login"])){
|
2017-03-15 10:12:18 +01:00
|
|
|
html_print_image ("enterprise/images/custom_logo_login/login_logo_v7.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
2016-10-03 12:27:59 +02:00
|
|
|
}
|
|
|
|
else{
|
2017-03-15 10:12:18 +01:00
|
|
|
html_print_image ("enterprise/images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
2016-10-03 12:27:59 +02:00
|
|
|
}
|
2015-04-24 13:45:13 +02:00
|
|
|
}
|
|
|
|
else {
|
2016-11-03 11:31:31 +01:00
|
|
|
if (!isset ($config["custom_logo_login"]) || $config["custom_logo_login"] == 0){
|
2016-10-03 12:27:59 +02:00
|
|
|
html_print_image ("images/custom_logo_login/login_logo.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
|
|
|
}
|
|
|
|
else{
|
2016-09-28 13:26:58 +02:00
|
|
|
html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
|
2016-10-03 12:27:59 +02:00
|
|
|
}
|
2016-11-03 11:31:31 +01:00
|
|
|
echo "<br><span style='font-size:120%;color:white;top:10px;position:relative;'>Community edition</span>";
|
2015-04-24 13:45:13 +02:00
|
|
|
}
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '</a></div>';
|
2015-04-24 13:45:13 +02:00
|
|
|
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
switch ($login_screen) {
|
2017-03-15 10:12:18 +01:00
|
|
|
case 'logout':
|
2013-04-22 12:31:20 +02:00
|
|
|
case 'login':
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_POST as $key => $value) {
|
|
|
|
html_print_input_hidden ($key, $value);
|
|
|
|
}
|
|
|
|
}
|
2016-02-17 13:05:22 +01:00
|
|
|
if ($config['auth'] == 'saml') {
|
2016-05-30 10:23:33 +02:00
|
|
|
echo '<div id="log_nick" class="login_nick" style="display: none;">';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div>';
|
|
|
|
html_print_image ("/images/usuario_login.png", false);
|
|
|
|
echo '</div>';
|
2016-05-27 13:59:19 +02:00
|
|
|
html_print_input_text_extended ("nick", '', "nick", '', '', '' , false,
|
2017-03-15 10:12:18 +01:00
|
|
|
'', 'placeholder="'.__('User').'"');
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '</div>';
|
|
|
|
|
2016-05-30 10:23:33 +02:00
|
|
|
echo '<div id="log_pass" class="login_pass" style="display: none;">';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div>';
|
|
|
|
html_print_image ("/images/candado_login.png", false);
|
|
|
|
echo '</div>';
|
2016-05-27 13:59:19 +02:00
|
|
|
html_print_input_text_extended ("pass", '', "pass", '', '', '' ,false,
|
2017-03-15 10:12:18 +01:00
|
|
|
'', 'placeholder="'.__('Password').'"', false, true);
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '</div>';
|
|
|
|
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div id="log_button" class="login_button" style="display: none; margin-bottom: 20px;">';
|
2016-05-27 13:59:19 +02:00
|
|
|
html_print_submit_button(__("Login as admin"), "login_button", false, 'class="sub next_login"');
|
|
|
|
echo '</div>';
|
|
|
|
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div class="login_button" id="remove_button" style="margin-bottom: 20px;">';
|
|
|
|
echo '<input type="button" id="input_saml" value="Login as admin" onclick="show_normal_menu()">';
|
|
|
|
echo '</div>';
|
|
|
|
|
|
|
|
echo '<div class="login_button">';
|
|
|
|
html_print_submit_button(__("Login with SAML"), "login_button_saml", false, '');
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '</div>';
|
2016-02-17 13:05:22 +01:00
|
|
|
}
|
2016-02-18 12:29:50 +01:00
|
|
|
else {
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '<div class="login_nick">';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div>';
|
|
|
|
html_print_image ("/images/usuario_login.png", false);
|
|
|
|
echo '</div>';
|
2016-05-27 13:59:19 +02:00
|
|
|
html_print_input_text_extended ("nick", '', "nick", '', '', '' , false,
|
2017-03-15 10:12:18 +01:00
|
|
|
'', 'autocomplete="off" placeholder="'.__('User').'"');
|
|
|
|
echo '</div>';
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '<div class="login_pass">';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div>';
|
|
|
|
html_print_image ("/images/candado_login.png", false);
|
|
|
|
echo '</div>';
|
2016-05-27 13:59:19 +02:00
|
|
|
html_print_input_text_extended ("pass", '', "pass", '', '', '' ,false,
|
2017-03-15 10:12:18 +01:00
|
|
|
'', 'autocomplete="off" placeholder="'.__('Password').'"', false, true);
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="login_button">';
|
2016-02-18 12:29:50 +01:00
|
|
|
html_print_submit_button(__("Login"), "login_button", false, 'class="sub next_login"');
|
2016-05-27 13:59:19 +02:00
|
|
|
echo '</div>';
|
2016-02-18 12:29:50 +01:00
|
|
|
}
|
2016-05-27 13:59:19 +02:00
|
|
|
|
2013-04-22 12:31:20 +02:00
|
|
|
break;
|
2014-12-11 16:18:26 +01:00
|
|
|
case 'double_auth':
|
|
|
|
if (!empty ($page) && !empty ($sec)) {
|
|
|
|
foreach ($_POST as $key => $value) {
|
|
|
|
html_print_input_hidden ($key, $value);
|
|
|
|
}
|
|
|
|
}
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div class="login_nick">';
|
|
|
|
echo '<div>';
|
|
|
|
html_print_image ("/images/icono_autenticacion.png", false);
|
2014-12-11 16:18:26 +01:00
|
|
|
echo '</div>';
|
2017-03-15 10:12:18 +01:00
|
|
|
html_print_input_text_extended ("auth_code", '', "auth_code", '', '', '' , false, '', 'class="login login_password" placeholder="'.__('Authentication code').'"', false, true);
|
2014-12-11 16:18:26 +01:00
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="login_button">';
|
|
|
|
html_print_submit_button(__("Check code") . ' >', "login_button", false, 'class="sub next_login"');
|
|
|
|
echo '</div>';
|
|
|
|
break;
|
2013-04-22 12:31:20 +02:00
|
|
|
default:
|
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
|
|
|
if (isset($error_info)) {
|
2013-04-22 12:31:20 +02:00
|
|
|
echo '<h1 id="log_title">' . $error_info['title'] . '</h1>';
|
|
|
|
echo '<div id="error_buttons">';
|
2015-05-27 12:36:40 +02:00
|
|
|
echo '<a href="index.php">' . html_print_image($config['homeurl'] . '/images/refresh_white.png', true, array('title' => __('Refresh')), false, true) . '</a>';
|
|
|
|
echo '<a href="javascript: modal_alert_critical()">' . html_print_image($config['homeurl'] . '/images/help_white.png', true, array('title' => __('View details')), false, true) . '</a>';
|
2013-04-22 12:31:20 +02:00
|
|
|
echo '</div>';
|
|
|
|
echo '<div id="log_msg">';
|
|
|
|
echo $error_info['message'];
|
|
|
|
echo '</div>';
|
|
|
|
}
|
|
|
|
break;
|
2012-03-27 19:00:55 +02:00
|
|
|
}
|
2014-06-03 18:59:55 +02:00
|
|
|
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '</form></div>';
|
|
|
|
|
|
|
|
echo '<div class="login_data">';
|
|
|
|
echo '<div class ="text_banner_login">';
|
|
|
|
echo '<div><span class="span1">';
|
|
|
|
echo "WELCOME TO PANDORA FMS";
|
|
|
|
echo '</span></div>';
|
|
|
|
echo '<div><span class="span2">';
|
|
|
|
echo " NEXT GENERATION ";
|
|
|
|
echo '</span></div>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '<div class ="img_banner_login">';
|
|
|
|
html_print_image ("/images/splash_imagenes.png", false);
|
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
|
2014-10-24 11:01:58 +02:00
|
|
|
|
|
|
|
if (defined ('METACONSOLE')) {
|
2015-04-24 13:45:13 +02:00
|
|
|
echo '<div id="ver_num">';
|
2014-10-24 11:01:58 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<div id="ver_num">';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo $pandora_version.(($develop_bypass == 1) ? ' '.__('Build').' '.$build_version : '') . '</div>';
|
2012-01-27 13:48:18 +01:00
|
|
|
|
2012-03-27 19:00:55 +02:00
|
|
|
|
|
|
|
if (isset ($login_failed)) {
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div id="login_failed" title="' . __('Login failed') . '">';
|
|
|
|
echo '<div class="content_alert">';
|
|
|
|
echo '<div class="icon_message_alert">';
|
|
|
|
echo html_print_image('images/icono_stop.png', true, array("alt" => __('Login failed'), "border" => 0));
|
2012-04-12 11:26:51 +02:00
|
|
|
echo '</div>';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '<div class="content_message_alert">';
|
|
|
|
echo '<div class="text_message_alert">';
|
|
|
|
echo '<h1>' . __('ERROR') . '</h1>';
|
|
|
|
echo '<p>' . $config["auth_error"] . '</p>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="button_message_alert">';
|
|
|
|
html_print_submit_button("Ok", 'hide-login-error', false);
|
|
|
|
echo '</div>';
|
2012-03-27 19:00:55 +02:00
|
|
|
echo '</div>';
|
2017-03-15 10:12:18 +01:00
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($login_screen == 'logout'){
|
|
|
|
echo '<div id="login_logout" title="' . __('Logged out') . '">';
|
|
|
|
echo '<div class="content_alert">';
|
|
|
|
echo '<div class="icon_message_alert">';
|
|
|
|
echo html_print_image('images/icono_logo_pandora.png', true, array("alt" => __('Logged out'), "border" => 0));
|
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="content_message_alert">';
|
|
|
|
echo '<div class="text_message_alert">';
|
|
|
|
echo '<h1>'. __('Logged out') .'</h1>';
|
|
|
|
echo '<p>' . __('Your session is over. Please close your browser window to close this Pandora session.') .'</p>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '<div class="button_message_alert">';
|
|
|
|
html_print_submit_button("Ok", 'hide-login-logout', false);
|
|
|
|
echo '</div>';
|
2012-03-27 19:00:55 +02:00
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
2013-02-19 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/configure_alert_command.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/agentes/agent_template.php,
godmode/snmpconsole/snmp_alert.php, index.php,
operation/search_users.php,
operation/integria_incidents/incident.php,
operation/reporting/reporting_xml.php,
operation/agentes/exportdata.csv.php: cleaned source code style.
* general/login_help_dialog.php, general/login_page.php: fixed the
set to hidden window of info.
Fixes: #3604645
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7680 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-02-19 12:27:57 +01:00
|
|
|
echo '</div>';
|
2012-03-27 19:00:55 +02:00
|
|
|
}
|
2012-01-27 13:48:18 +01:00
|
|
|
|
2014-12-11 18:49:04 +01:00
|
|
|
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');
|
2012-03-27 19:00:55 +02:00
|
|
|
?>
|
2012-01-27 13:48:18 +01:00
|
|
|
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
<?php
|
2013-04-22 12:31:20 +02:00
|
|
|
// Hidden div to forced title
|
|
|
|
html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true));
|
2012-01-27 13:48:18 +01:00
|
|
|
|
2013-04-22 12:31:20 +02:00
|
|
|
html_print_div(array('id' => 'modal_alert', 'hidden' => true));
|
|
|
|
|
2015-03-16 15:21:18 +01:00
|
|
|
?>
|
2009-03-16 18:50:06 +01:00
|
|
|
<script type="text/javascript" language="javascript">
|
2017-03-15 10:12:18 +01:00
|
|
|
|
2016-05-27 13:59:19 +02:00
|
|
|
function show_normal_menu() {
|
|
|
|
document.getElementById('input_saml').style.display = 'none';
|
|
|
|
document.getElementById('log_nick').style.display = 'block';
|
|
|
|
document.getElementById('log_pass').style.display = 'block';
|
2017-03-15 10:12:18 +01:00
|
|
|
document.getElementById('log_button').style.display = 'block';
|
|
|
|
document.getElementById('remove_button').style.display = 'none';
|
2016-05-30 10:23:33 +02:00
|
|
|
|
|
|
|
document.getElementById('log_nick').className = 'login_nick';
|
|
|
|
document.getElementById('log_pass').className = 'login_pass';
|
2016-05-27 13:59:19 +02:00
|
|
|
}
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
|
2013-04-22 12:31:20 +02:00
|
|
|
function modal_alert_critical() {
|
|
|
|
$("#modal_alert").hide ()
|
|
|
|
.empty ()
|
|
|
|
.append ($('#log_msg').html())
|
|
|
|
.dialog ({
|
|
|
|
title: $('#log_title').html(),
|
|
|
|
resizable: true,
|
|
|
|
draggable: false,
|
|
|
|
modal: true,
|
|
|
|
overlay: {
|
|
|
|
opacity: 0.5,
|
|
|
|
background: "black"
|
|
|
|
},
|
|
|
|
width: 500,
|
2015-04-28 15:29:15 +02:00
|
|
|
height: 200
|
2013-04-22 12:31:20 +02:00
|
|
|
})
|
|
|
|
.show ();
|
|
|
|
}
|
|
|
|
<?php
|
2017-03-15 10:12:18 +01:00
|
|
|
html_debug_print($login_screen, true);
|
2013-04-22 12:31:20 +02:00
|
|
|
switch($login_screen) {
|
|
|
|
case 'error_authconfig':
|
|
|
|
case 'error_emptyconfig':
|
|
|
|
?>
|
|
|
|
// Auto popup
|
|
|
|
//modal_alert_critical();
|
2017-03-15 10:12:18 +01:00
|
|
|
$("#submit-hide-login-error").click (function () {
|
|
|
|
$("#login_failed" ).dialog('close')
|
|
|
|
});
|
2013-04-22 12:31:20 +02:00
|
|
|
<?php
|
2017-03-15 10:12:18 +01:00
|
|
|
break;
|
|
|
|
case 'logout':
|
|
|
|
?>
|
|
|
|
$(document).ready (function () {
|
|
|
|
$(function() {
|
|
|
|
$("#login_logout").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 () {
|
|
|
|
$("#login_logout").dialog('close');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
<?php
|
|
|
|
break;
|
2013-04-22 12:31:20 +02:00
|
|
|
default:
|
|
|
|
?>
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
$(document).ready (function () {
|
|
|
|
// IE9- modal warning window
|
|
|
|
$(function() {
|
|
|
|
$( "#dialog" ).dialog({
|
2012-01-27 13:48:18 +01:00
|
|
|
resizable: true,
|
|
|
|
draggable: true,
|
2012-03-27 19:00:55 +02:00
|
|
|
modal: true,
|
2012-05-08 10:55:35 +02:00
|
|
|
height: 400,
|
|
|
|
width: 700,
|
2012-01-27 13:48:18 +01:00
|
|
|
overlay: {
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
opacity: 0.5,
|
2017-03-15 10:12:18 +01:00
|
|
|
background: "black"
|
|
|
|
}
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
});
|
2012-05-08 10:55:35 +02:00
|
|
|
});
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
|
|
|
|
$("#close-dialog-browser").click (function () {
|
2017-03-15 10:12:18 +01:00
|
|
|
$("#dialog" ).dialog('close');
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$( "#login_failed" ).dialog({
|
2012-03-27 19:00:55 +02:00
|
|
|
resizable: true,
|
|
|
|
draggable: true,
|
|
|
|
modal: true,
|
2017-03-15 10:12:18 +01:00
|
|
|
height: 220,
|
|
|
|
width: 528,
|
2012-03-27 19:00:55 +02:00
|
|
|
overlay: {
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
opacity: 0.5,
|
2017-03-15 10:12:18 +01:00
|
|
|
background: "black"
|
|
|
|
}
|
2012-03-27 19:00:55 +02:00
|
|
|
});
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
});
|
2017-03-15 10:12:18 +01:00
|
|
|
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
$("#submit-hide-login-error").click (function () {
|
2017-03-15 10:12:18 +01:00
|
|
|
$("#login_failed" ).dialog('close'):
|
|
|
|
$("#login_correct_pass").dialog('close');
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
});
|
|
|
|
});
|
2012-03-27 19:00:55 +02:00
|
|
|
|
2013-02-26 17:31:40 +01:00
|
|
|
$('#nick').focus();
|
2013-04-22 12:31:20 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
/* ]]> */
|
2013-04-22 12:31:20 +02:00
|
|
|
</script>
|