pandorafms/pandora_console/general/header.php

62 lines
3.0 KiB
PHP
Raw Normal View History

<?php
// Pandora FMS - the Free Monitoring System
// ========================================
2008-04-01 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Alert type 0 is not 1. 1-3 are reserved. Removed prediction module (nosense since it uses normal modules). * include/functions_db.php: Added wrapper give_db_value to get_db_value because A LOT of code uses old syntax and this makes too many errors. * include/functions.php: Fixed pagination issues with blocksize config. * pandoradb.sql: Change alert command lenght and added some comments for future implementation of alert criticity and others. * operation/incidents/incident.php: Fixed some bugs calling to old funcions / variables. * operation/events/events.php: Fixed some bugs calling to old funcions / variables. Removed graph and simplified header. * operation/agentes/estado_alertas.php: Changed get_db_value call and removed (Raul) button to create alert from here. * operation/agentes/estado_grupo.php: Implemented support for optional view of down modules and fired alerts. * operation/agentes/ver_agente.php, operation/agentes/datos_agente.php: Uses of new get_db_value and new session id variable. * images/mod_async_string.png: Added image. * images/mod_async_inc.png: Added image. * images/mod_image_png.png: Added image. * images/mod_async_data.png: Added image. * images/mod_async_proc.png: Added image. * images/mod_image_jpg.png: Added image. * godmode/setup/setup.php: Several fixes. * godmode/agentes/alert_manager.php: Several changes for new alert manager. Not finished. Interim commit. * godmode/agentes/configurar_agente.php: More changes needed to alert editor. * godmode/agentes/alert_manager_editor.php: New file for alert management. * godmode/modules/module_list.php: Some updates, removed invalid column. * godmode/alerts/modify_alert.php: Alert types < 4 cannot be modified (this includes combined, internal audit and Pandora FMS log). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-01 15:53:11 +02:00
// Copyright (c) 2008 Artica Soluciones Tecnológicas, http://www.artica.es
// Please see http://pandora.sourceforge.net for full contribution list
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
echo '<div id="head_r"><span id="logo_text1">Pandora</span> <span id="logo_text2">FMS</span></div>
<div id="head_l"><a href="index.php"><img src="images/pandora_logo_head.png" border="0" alt="logo" /></a></div><div id="head_m">';
2008-04-03 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: IA to prediction in description. * pandoradb.sql: Added priority to alert and custom recovery fields. * include/styles/tip.css, include/styles/pandora.css: New styles for tooltip info (combined and alerts) and some changes in frames for agent management / view. * include/functions_db.php: Added check_server_status() function to check from console server status. If in 15 minutes there is no updated keepalive from any server, they will be marked as down. And function return down. This function is now called on each page. Added funtions to display alert status in a tooltip. * include/languages/language_en.php: More strings. * include/functions.php: Added several funtions to simplify alert report. * operation/agentes/estado_alertas.php: Updated. Shows also combined alerts and give a lot of information in different tooltips. * operation/agentes/estado_ultimopaquete.php: Clean blank spaces in URL. * operation/agentes/estado_monitores.php: now is possible to force a module refresh from main view. * operation/agentes/ver_agente.php: Tab has been upgraded. * images/mod_data.png, images/mod_data_inc.png images/mod_proc.png images/mod_keepalive.png images/mod_string.png: Added new type icons and updated old ones. * general/header.php: Global check for servers and autorefresh control. * godmode/agentes/alert_manager.php: New alert management for combined alerts, visualization, etc. * godmode/agentes/configurar_agente.php: Included new alert management. * godmode/agentes/alert_manager_editor.php: New alert management editor. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@791 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-04-03 17:43:34 +02:00
if(!isset ($_SESSION["id_usuario"])) {
echo "</div>";
return;
}
$table->width=520;
$table->border=0;
$table->cellpadding=3;
$table->size=array("30%");
$table->class="inherit";
$table->rowclass=array("inherit","inherit");
$table->data[] = array (
// First column
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<img src="images/user_'.((dame_admin ($_SESSION["id_usuario"]) == 1) ? 'suit' : 'green' ).'.png" class="bot">&nbsp;'.'<a class="white">'.__('You are ').'[<b>'.$_SESSION["id_usuario"].'</b>]</a>',
// Second column
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<a class="white_bold" href="index.php?sec=main"><img src="images/information.png" class="bot">&nbsp;'.__('General information').'</a>',
// Third column
// Autorefresh
((get_parameter ("refr") != 0) ?
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<a class="white_grey_bold" href="'.((substr($_SERVER['REQUEST_URI'],-1) != "/") ? $_SERVER['REQUEST_URI'] : 'index.php?' ).'&refr=0"><img src="images/page_lightning.png" class="bot" />&nbsp;'. __('Autorefresh').'</a>'
:
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<a class="white_bold" href="'.((substr($_SERVER['REQUEST_URI'],-1) != "/") ? $_SERVER['REQUEST_URI'] : "index.php?" ).'&refr=5"><img src="images/page_lightning.png" class="bot" />&nbsp;'.__('Autorefresh').'</a>'
)
);
$table->data[] = array (
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<a class="white_bold" href="index.php?bye=bye"><img src="images/lock.png" class="bot">&nbsp;'. __('Logout').'</a>',
'<a class="white_bold" href="index.php?sec=estado_server&sec2=operation/servers/view_server&refr=60">'.
((check_server_status () == 0) ?
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<img src="images/error.png" class="bot" />&nbsp;'.__('Server status: DOWN')
:
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<img src="images/ok.png" class="bot" />&nbsp;'.__('System ready')
).'</a>',
// Event - refresh
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
'<a class="white_bold" href="index.php?sec=eventos&sec2=operation/events/events&refr=5"><img src="images/lightning_go.png" class="bot" />&nbsp;'.__('Events').'</a>'
);
print_table ($table);
2008-08-22 Sancho Lerena <slerena@gmail.com> * pandoradb_data.sql: Removed data for locale, added for new date string format. * include/functions_html.php: Deletion of table properties after calling it makes a bad render on several pages that uses some properties for other things (width). * include/functions_reporting.php: Added several checks to avoid notices. * include/config_process.php: Removed locale code. Added code for new datetime string format. * include/locale.class.php: Removed. * include/functions.php: pandora_help() was not returning correct output. Added format_datetime() function to render date / time strings in user defined format. * include/functions_db.php: Added check in get_monitors_down() to avoid notice in void foreach. * operation/incidents/incident_detail.php: Solved problem with attachments. * operation/users/user.php: Solved problem with old help_lang[] array. * operation/messages/message.php: Sime minor fixes and style improvements. * operation/servers/view_server.php: Remove description. * operation/servers/view_server_detail.php: Removed bad field retrieval from database and added format_datetime(). * reporting/fgraph.php: Fixed small problem in monitors_health_pipe(). (changed parameters). * general/footer.php: Updated use of new functions. * general/header.php: Added blank spaces between icons and texts. * godmode/setup/setup.php: Management of new string format for datetime. * godmode/profiles/profile_list.php: Submit button now uses div instead tables. * godmode/reporting/reporting_builder.php: Added check before foreach() to avoid notice warnings. Changed div for buttons. * godmode/reporting/map_builder.php: Fixed div for submit button. * godmode/servers/modificar_server.php: Fixed typo in SQL sentence. Removed usage of not-used-now locale format functions. Alter legend to use a plain-formatted table to avoid background color in legend. * /en/help_date_format.php: Added help for date format string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-22 16:28:00 +02:00
unset ($table);
echo "</div>";
?>