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' :
2017-03-22 15:26:54 +01:00
case 'error_install' :
case 'error_authconfig' :
case 'error_dbconfig' :
case 'error_noconfig' :
case 'error_perms' :
case 'homedir_bad_defined' :
case 'homeurl_bad_defined' :
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 ;
2017-03-15 15:23:28 +01:00
$splash_title = __ ( 'Splash login' );
2013-04-22 12:31:20 +02:00
}
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' ])) {
2017-03-16 18:41:53 +01:00
$background_url = " ../../images/backgrounds/ " . $config [ 'login_background' ];
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
$login_body_style = " style= \" background-image: url(' $background_url '); \" " ;
}
2017-03-21 11:44:46 +01:00
echo '<div id="login_body" ' . $login_body_style . '>' ;
2017-03-15 10:12:18 +01:00
echo '<div id="header_login">' ;
echo '<div id="icon_custom_pandora">' ;
2017-03-15 15:23:28 +01:00
if ( defined ( 'PANDORA_ENTERPRISE' )) {
if ( isset ( $config [ 'custom_logo' ])){
echo '<img src="images/custom_logo/' . $config [ 'custom_logo' ] . '" alt="pandora_console">' ;
}
else {
echo '<img src="images/custom_logo/logo_login_consola.png" alt="pandora_console">' ;
}
}
else {
2017-03-17 09:34:31 +01:00
echo '<img src="images/custom_logo/pandora_logo_head_3.png" alt="pandora_console">' ;
2017-03-15 15:23:28 +01:00
}
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 ){
2017-03-21 11:44:46 +01:00
html_print_image ( " images/custom_logo_login/pandora_logo.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 15:23:28 +01: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
}
2017-04-19 13:26:20 +02:00
2017-04-20 11:18:43 +02:00
if ( $config [ 'enterprise_installed' ]) {
$reset_pass_link = 'reset_pass.php' ;
// Reset password link
echo '<div style="width:70%; height:40px; margin-right:auto; margin-left:auto; margin-top:20px; text-align:center;">' ;
echo '<a style="color: white !important;" href="index.php?reset=true&first=true">' . __ ( 'Forgotten your password?' );
echo '</a>' ;
echo '</div>' ;
}
2017-04-19 13:26:20 +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">' ;
2017-03-15 15:23:28 +01:00
if ( defined ( 'PANDORA_ENTERPRISE' )){
if ( $config [ 'custom_title1_login' ]){
echo strtoupper ( io_safe_output ( $config [ 'custom_title1_login' ]));
}
else {
echo __ ( 'WELCOME TO PANDORA FMS' );
}
}
else {
echo __ ( 'WELCOME TO PANDORA FMS' );
}
2017-03-15 10:12:18 +01:00
echo '</span></div>' ;
echo '<div><span class="span2">' ;
2017-03-15 15:23:28 +01:00
if ( defined ( 'PANDORA_ENTERPRISE' )){
if ( $config [ 'custom_title2_login' ]){
echo strtoupper ( io_safe_output ( $config [ 'custom_title2_login' ]));
}
else {
echo __ ( 'NEXT GENERATION' );
}
}
else {
echo __ ( 'NEXT GENERATION' );
}
2017-03-15 10:12:18 +01:00
echo '</span></div>' ;
echo '</div>' ;
echo '<div class ="img_banner_login">' ;
2017-03-15 15:23:28 +01:00
if ( defined ( 'PANDORA_ENTERPRISE' )) {
if ( isset ( $config [ 'custom_splash_login' ])){
html_print_image ( " enterprise/images/custom_splash_login/ " . $config [ 'custom_splash_login' ], false , array ( " alt " => " splash " , " border " => 0 , " title " => $splash_title ), false , true );
}
else {
html_print_image ( " enterprise/images/custom_splash_login/splash_image_default.png " , false , array ( " alt " => " logo " , " border " => 0 , " title " => $splash_title ), false , true );
}
}
else {
html_print_image ( " images/splash_image_default.png " , false , array ( " alt " => " logo " , " border " => 0 , " title " => $splash_title ), false , true );
}
2017-03-15 10:12:18 +01:00
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
2017-03-21 11:44:46 +01:00
echo '<div id="ver_num">' . $pandora_version . (( $develop_bypass == 1 ) ? ' ' . __ ( 'Build' ) . ' ' . $build_version : '' ) . '</div>' ;
echo '</div>' ;
2012-03-27 19:00:55 +02:00
2017-04-19 13:26:20 +02:00
if ( $mail != " " ) {
2017-04-20 10:59:32 +02:00
if ( $process_error_message == '' ) {
2017-04-19 16:04:24 +02:00
echo '<div id="reset_correct" title="' . __ ( 'Password reset' ) . '">' ;
echo '<div class="content_alert">' ;
echo '<div class="icon_message_alert">' ;
echo html_print_image ( 'images/icono_logo_pandora.png' , true , array ( " alt " => __ ( 'Password reset' ), " border " => 0 ));
echo '</div>' ;
echo '<div class="content_message_alert">' ;
echo '<div class="text_message_alert">' ;
echo '<h1>' . __ ( 'INFO' ) . '</h1>' ;
echo '<p>' . __ ( 'An email has been sent to the user\'s address' ) . '</p>' ;
echo '</div>' ;
echo '<div class="button_message_alert">' ;
html_print_submit_button ( " Ok " , 'reset_correct_button' , false );
echo '</div>' ;
echo '</div>' ;
2017-04-19 13:26:20 +02:00
echo '</div>' ;
2017-04-19 16:04:24 +02:00
echo '</div>' ;
}
else {
echo '<div id="reset_correct" title="' . __ ( 'Password reset' ) . '">' ;
echo '<div class="content_alert">' ;
echo '<div class="icon_message_alert">' ;
echo html_print_image ( 'images/icono_stop.png' , true , array ( " alt " => __ ( 'Password reset' ), " border " => 0 ));
2017-04-19 13:26:20 +02:00
echo '</div>' ;
2017-04-19 16:04:24 +02:00
echo '<div class="content_message_alert">' ;
echo '<div class="text_message_alert">' ;
echo '<h1>' . __ ( 'ERROR' ) . '</h1>' ;
2017-04-20 10:59:32 +02:00
echo '<p>' . $process_error_message . '</p>' ;
2017-04-19 16:04:24 +02:00
echo '</div>' ;
echo '<div class="button_message_alert">' ;
html_print_submit_button ( " Ok " , 'reset_correct_button' , false );
echo '</div>' ;
2017-04-19 13:26:20 +02:00
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
2017-04-19 16:04:24 +02:00
}
2017-04-19 13:26:20 +02:00
}
2017-04-20 10:59:32 +02:00
if ( $correct_reset_pass_process != " " ) {
echo '<div id="final_process_correct" title="' . __ ( 'Password reset' ) . '">' ;
echo '<div class="content_alert">' ;
echo '<div class="icon_message_alert">' ;
echo html_print_image ( 'images/icono_logo_pandora.png' , true , array ( " alt " => __ ( 'Password reset' ), " border " => 0 ));
echo '</div>' ;
echo '<div class="content_message_alert">' ;
echo '<div class="text_message_alert">' ;
echo '<h1>' . __ ( 'SUCCESS' ) . '</h1>' ;
echo '<p>' . $correct_reset_pass_process . '</p>' ;
echo '</div>' ;
echo '<div class="button_message_alert">' ;
html_print_submit_button ( " Ok " , 'final_process_correct_button' , false );
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
}
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
2017-03-22 15:26:54 +01:00
switch ( $login_screen ) {
case 'error_authconfig' :
case 'error_dbconfig' :
$title = __ ( 'Problem with Pandora FMS database' );
$message = __ ( ' Cannot connect to the database , please check your database setup in the < b > include / config . php </ b > file .< i >< br />< br />
Probably your database , hostname , user or password values are incorrect or
the database server is not running . ').' < br />< br /> ' ;
$message .= '<span class="red">' ;
$message .= '<b>' . __ ( 'DB ERROR' ) . ':</b><br>' ;
$message .= db_get_last_error ();
$message .= '</span>' ;
if ( $error_code == 'error_authconfig' ) {
$message .= '<br/><br/>' ;
$message .= __ ( 'If you have modified auth system, this problem could be because Pandora cannot override authorization variables from the config database. Remove them from your database by executing:<br><pre>DELETE FROM tconfig WHERE token = "auth";</pre>' );
}
break ;
case 'error_emptyconfig' :
$title = __ ( 'Empty configuration table' );
$message = __ ( ' Cannot load configuration variables from database . Please check your database setup in the
< b > include / config . php </ b > file .< i >< br >< br >
Most likely your database schema has been created but there are is no data in it , you have a problem with the database access credentials or your schema is out of date .
< br >< br > Pandora FMS Console cannot find < i > include / config . php </ i > or this file has invalid
permissions and HTTP server cannot read it . Please read documentation to fix this problem .</ i > ').' < br />< br /> ' ;
break ;
case 'error_noconfig' :
$title = __ ( 'No configuration file found' );
$message = __ ( ' Pandora FMS Console cannot find < i > include / config . php </ i > or this file has invalid
permissions and HTTP server cannot read it . Please read documentation to fix this problem . ').' < br />< br /> ' ;
if ( file_exists ( 'install.php' )) {
$link_start = '<a href="install.php">' ;
$link_end = '</a>' ;
}
else {
$link_start = '' ;
$link_end = '' ;
}
$message .= sprintf ( __ ( 'You may try to run the %s<b>installation wizard</b>%s to create one.' ), $link_start , $link_end );
break ;
case 'error_install' :
$title = __ ( 'Installer active' );
$message = __ ( ' For security reasons , normal operation is not possible until you delete installer file .
Please delete the < i >./ install . php </ i > file before running Pandora FMS Console . ' );
break ;
case 'error_perms' :
$title = __ ( 'Bad permission for include/config.php' );
$message = __ ( ' For security reasons , < i > config . php </ i > must have restrictive permissions , and " other " users
should not read it or write to it . It should be written only for owner
( usually www - data or http daemon user ), normal operation is not possible until you change
permissions for < i > include / config . php </ i > file . Please do it , it is for your security . ' );
break ;
case 'homedir_bad_defined' :
$title = __ ( 'Bad defined homedir' );
$message = __ ( 'In the config.php file in the variable $config["homedir"] = add the correct path' );
break ;
case 'homeurl_bad_defined' :
$title = __ ( 'Bad defined homeurl or homeurl_static' );
$message = __ ( 'In the config.php file in the variable $config["homeurl"] or $config["homeurl_static"] = add the correct path' );
break ;
}
if ( $login_screen == 'error_authconfig' || $login_screen == 'error_emptyconfig' || $login_screen == 'error_install' ||
$login_screen == 'error_dbconfig' || $login_screen == 'error_noconfig' || $login_screen == 'error_perms' ||
$login_screen == 'homedir_bad_defined' || $login_screen == 'homeurl_bad_defined' ){
echo '<div id="modal_alert" 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 ));
echo '</div>' ;
echo '<div class="content_message_alert">' ;
echo '<div class="text_message_alert">' ;
echo '<h1>' . $title . '</h1>' ;
echo '<p> ' . $message . '</h1>' ;
echo '</div>' ;
echo '<div class="button_message_alert">' ;
html_print_submit_button ( " Ok " , 'hide-login-error' , false );
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
echo '</div>' ;
}
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
2017-03-22 15:26:54 +01:00
//html_print_div(array('id' => 'modal_alert', 'hidden' => true));
2013-04-22 12:31:20 +02:00
2015-03-16 15:21:18 +01:00
?>
2017-03-22 15:26:54 +01:00
< script type = " text/javascript " language = " javascript " >
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
}
2017-03-22 15:26:54 +01:00
< ? php
switch ( $login_screen ) {
case 'error_authconfig' :
case 'error_dbconfig' :
case 'error_emptyconfig' :
case 'error_noconfig' :
case 'error_install' :
case 'error_perms' :
case 'homedir_bad_defined' :
case 'homeurl_bad_defined' :
?>
// Auto popup
$ ( document ) . ready ( function () {
$ ( function () {
$ ( " #modal_alert " ) . dialog ({
2013-04-22 12:31:20 +02:00
title : $ ( '#log_title' ) . html (),
resizable : true ,
draggable : false ,
modal : true ,
2017-03-22 15:26:54 +01:00
width : 600 ,
height : 250 ,
2013-04-22 12:31:20 +02:00
overlay : {
opacity : 0.5 ,
background : " black "
2017-03-22 15:26:54 +01:00
}
});
});
2017-03-15 10:12:18 +01:00
$ ( " #submit-hide-login-error " ) . click ( function () {
2017-03-22 15:26:54 +01:00
$ ( " #modal_alert " ) . dialog ( 'close' );
2017-03-15 10:12:18 +01:00
});
2017-03-22 15:26:54 +01:00
});
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 15:23:28 +01:00
$ ( " #login_failed " ) . dialog ( 'close' );
2017-03-15 10:12:18 +01:00
$ ( " #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
}
?>
2017-04-19 13:26:20 +02:00
$ ( document ) . ready ( function () {
$ ( function () {
$ ( " #reset_correct " ) . dialog ({
resizable : true ,
draggable : true ,
modal : true ,
height : 220 ,
width : 528 ,
clickOutside : true ,
overlay : {
opacity : 0.5 ,
background : " black "
}
});
});
$ ( " #submit-reset_correct_button " ) . click ( function () {
$ ( " #reset_correct " ) . dialog ( 'close' );
});
});
2017-04-20 10:59:32 +02:00
$ ( document ) . ready ( function () {
$ ( function () {
$ ( " #final_process_correct " ) . dialog ({
resizable : true ,
draggable : true ,
modal : true ,
height : 220 ,
width : 528 ,
clickOutside : true ,
overlay : {
opacity : 0.5 ,
background : " black "
}
});
});
$ ( " #submit-final_process_correct_button " ) . click ( function () {
$ ( " #final_process_correct " ) . 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
/* ]]> */
2013-04-22 12:31:20 +02:00
</ script >