2012-01-20 14:14:09 +01:00
< ? php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org 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; 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.
global $config ;
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
include_once ( $config [ 'homedir' ] . " /include/functions_graph.php " );
include_once ( $config [ 'homedir' ] . " /include/functions_ui.php " );
include_once ( $config [ 'homedir' ] . " /include/functions_netflow.php " );
2012-01-20 14:14:09 +01:00
2012-11-26 19:38:09 +01:00
ui_require_javascript_file ( 'calendar' );
2012-01-20 14:14:09 +01:00
// ACL
check_login ();
if ( ! check_acl ( $config [ " id_user " ], 0 , " AR " )) {
db_pandora_audit ( " ACL Violation " ,
" Trying to access event viewer " );
require ( " general/noaccess.php " );
return ;
}
2012-11-29 11:30:46 +01:00
$pure = get_parameter ( 'pure' , 0 );
2012-02-09 18:55:49 +01:00
// Ajax callbacks
2013-01-25 14:37:51 +01:00
if ( is_ajax ()) {
2012-02-09 18:55:49 +01:00
$get_filter_type = get_parameter ( 'get_filter_type' , 0 );
$get_filter_values = get_parameter ( 'get_filter_values' , 0 );
// Get filter of the current netflow filter
2013-01-25 14:37:51 +01:00
if ( $get_filter_type ) {
2012-02-09 18:55:49 +01:00
$id = get_parameter ( 'id' );
$advanced_filter = db_get_value_filter ( 'advanced_filter' , 'tnetflow_filter' , array ( 'id_sg' => $id ));
if ( empty ( $advanced_filter ))
$type = 0 ;
else
$type = 1 ;
echo $type ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
2012-02-09 18:55:49 +01:00
// Get values of the current netflow filter
2013-01-25 14:37:51 +01:00
if ( $get_filter_values ) {
2012-02-09 18:55:49 +01:00
$id = get_parameter ( 'id' );
$filter_values = db_get_row_filter ( 'tnetflow_filter' , array ( 'id_sg' => $id ));
2013-01-25 14:37:51 +01:00
2013-01-22 12:38:56 +01:00
// Decode HTML entities
$filter_values [ 'advanced_filter' ] = io_safe_output ( $filter_values [ 'advanced_filter' ]);
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-01-25 14:37:51 +01:00
2012-02-09 18:55:49 +01:00
echo json_encode ( $filter_values );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
2012-02-09 18:55:49 +01:00
return ;
}
2012-01-20 14:14:09 +01:00
// Read filter configuration
2012-01-23 19:17:52 +01:00
$filter_id = ( int ) get_parameter ( 'filter_id' , 0 );
2012-12-05 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql,
include/functions_config.php,
include/functions_netflow.php,
operation/netflow/nf_live_view.php,
pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql,
godmode/setup/setup_netflow.php,
godmode/netflow/nf_edit_form.php: Performance improvements. Use csv
output to avoid using regular expressions. Removed byte, flow and
packet unit and added kilobyte, megabyte, kilobytes per second and
megabytes per second.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-05 18:29:06 +01:00
$filter [ 'id_name' ] = get_parameter ( 'name' , '' );
2012-01-20 14:14:09 +01:00
$filter [ 'id_group' ] = ( int ) get_parameter ( 'assign_group' , 0 );
$filter [ 'aggregate' ] = get_parameter ( 'aggregate' , '' );
$filter [ 'output' ] = get_parameter ( 'output' , 'bytes' );
$filter [ 'ip_dst' ] = get_parameter ( 'ip_dst' , '' );
$filter [ 'ip_src' ] = get_parameter ( 'ip_src' , '' );
$filter [ 'dst_port' ] = get_parameter ( 'dst_port' , '' );
$filter [ 'src_port' ] = get_parameter ( 'src_port' , '' );
$filter [ 'advanced_filter' ] = get_parameter ( 'advanced_filter' , '' );
// Read chart configuration
2013-02-14 14:37:33 +01:00
$chart_type = get_parameter ( 'chart_type' , 'netflow_area' );
2012-01-20 14:14:09 +01:00
$max_aggregates = ( int ) get_parameter ( 'max_aggregates' , 0 );
2015-02-16 18:37:16 +01:00
$period = ( int ) get_parameter ( 'period' , SECONDS_1DAY );
2012-01-20 14:14:09 +01:00
$update_date = ( int ) get_parameter ( 'update_date' , 0 );
2013-06-11 Miguel de Dios <miguel.dedios@artica.es>
* extensions/insert_data.php,
godmode/alerts/configure_alert_template.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/agentes/planned_downtime.editor.php,
include/ajax/module.php, include/constants.php, operation/tree.php,
operation/netflow/nf_live_view.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/agentes/datos_agente.php: fixed the date and time format
and set a help tip to say the Pandora's format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-11 15:14:48 +02:00
$date = get_parameter_post ( 'date' , date ( DATE_FORMAT , get_system_time ()));
$time = get_parameter_post ( 'time' , date ( TIME_FORMAT , get_system_time ()));
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
$connection_name = get_parameter ( 'connection_name' , '' );
2012-12-07 15:03:00 +01:00
$interval_length = ( int ) get_parameter ( 'interval_length' , 300 );
2014-06-09 20:23:36 +02:00
$address_resolution = ( int ) get_parameter ( 'address_resolution' , $config [ 'netflow_get_ip_hostname' ]);
2015-04-15 12:31:31 +02:00
$filter_selected = ( int ) get_parameter ( 'filter_selected' , 0 );
2012-01-20 14:14:09 +01:00
// Read buttons
$draw = get_parameter ( 'draw_button' , '' );
2012-01-23 19:17:52 +01:00
$save = get_parameter ( 'save_button' , '' );
$update = get_parameter ( 'update_button' , '' );
2012-02-09 18:55:49 +01:00
2012-01-20 14:14:09 +01:00
// Calculate start and end dates
$end_date = strtotime ( $date . " " . $time );
$start_date = $end_date - $period ;
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
if ( ! defined ( 'METACONSOLE' )) {
//Header
2013-04-10 09:57:54 +02:00
ui_print_page_header ( __ ( 'Netflow live view' ), " images/op_netflow.png " , false , " " , false , array ());
2015-02-16 18:37:16 +01:00
2014-06-26 13:32:14 +02:00
$is_windows = strtoupper ( substr ( PHP_OS , 0 , 3 )) == 'WIN' ;
if ( $is_windows ) {
ui_print_error_message ( __ ( 'Not supported in Windows systems' ));
2012-12-13 15:49:05 +01:00
}
2014-06-26 13:32:14 +02:00
else {
// Check the nfdump binary
$check_result = netflow_check_nfdump_binary ( $config [ 'netflow_nfdump' ]);
// Not found or not executable
if ( $check_result == 1 ) {
ui_print_error_message (
sprintf ( __ ( 'nfdump binary (%s) not found!' ),
$config [ 'netflow_nfdump' ]));
}
// Wrong version
else if ( $check_result == 2 ) {
ui_print_error_message ( sprintf ( __ ( 'Make sure nfdump version 1.6.8 or newer is installed!' )));
}
2013-09-27 13:18:04 +02:00
}
2015-02-16 18:37:16 +01:00
2013-01-25 14:37:51 +01:00
}
else {
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
$nav_bar = array ( array ( 'link' => 'index.php?sec=main' , 'text' => __ ( 'Main' )),
2013-01-25 14:37:51 +01:00
array ( 'link' => 'index.php?sec=netf&sec2=operation/netflow/nf_live_view' , 'text' => __ ( 'Netflow live view' )));
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
ui_meta_print_page_header ( $nav_bar );
2012-11-28 16:04:27 +01:00
ui_meta_print_header ( __ ( " Netflow live view " ));
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
}
2012-01-23 19:17:52 +01:00
// Save user defined filter
2012-02-06 18:16:38 +01:00
if ( $save != '' && check_acl ( $config [ " id_user " ], 0 , " AW " )) {
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2012-01-24 Ramon Novoa <rnovoa@artica.es>
* include/functions_config.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/configurar_agente.php,
godmode/menu.php,
godmode/netflow/nf_edit_form.php: Added support for enterprise
netflow modules.
* godmode/netflow/nf_manage.php: Moved to
godmode/setup/setup_netflow.php.
* godmode/netflow/nf_option_form.php: Removed from repository. Not used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 18:11:12 +01:00
// Save filter args
$filter [ 'filter_args' ] = netflow_get_filter_arguments ( $filter );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2012-01-23 19:17:52 +01:00
$filter_id = db_process_sql_insert ( 'tnetflow_filter' , $filter );
if ( $filter_id === false ) {
$filter_id = 0 ;
2013-05-23 17:42:32 +02:00
ui_print_error_message ( __ ( 'Error creating filter' ));
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
}
else {
2013-05-23 17:42:32 +02:00
ui_print_success_message ( __ ( 'Filter created successfully' ));
2012-01-23 19:17:52 +01:00
}
}
// Update current filter
2012-02-06 18:16:38 +01:00
else if ( $update != '' && check_acl ( $config [ " id_user " ], 0 , " AW " )) {
2012-01-23 19:17:52 +01:00
// Do not update the filter name and group
$filter_copy = $filter ;
unset ( $filter_copy [ 'id_name' ]);
unset ( $filter_copy [ 'id_group' ]);
2012-01-24 Ramon Novoa <rnovoa@artica.es>
* include/functions_config.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/configurar_agente.php,
godmode/menu.php,
godmode/netflow/nf_edit_form.php: Added support for enterprise
netflow modules.
* godmode/netflow/nf_manage.php: Moved to
godmode/setup/setup_netflow.php.
* godmode/netflow/nf_option_form.php: Removed from repository. Not used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 18:11:12 +01:00
// Save filter args
$filter_copy [ 'filter_args' ] = netflow_get_filter_arguments ( $filter_copy );
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-02-14 14:37:33 +01:00
$result = db_process_sql_update ( 'tnetflow_filter' , $filter_copy ,
array ( 'id_sg' => $filter_id ));
ui_print_result_message ( $result , __ ( 'Filter updated successfully' ),
__ ( 'Error updating filter' ));
2012-01-23 19:17:52 +01:00
}
2012-02-09 18:55:49 +01:00
2012-01-23 19:17:52 +01:00
// The filter name will not be needed anymore
$filter [ 'id_name' ] = '' ;
2012-01-20 14:14:09 +01:00
2013-02-04 18:38:02 +01:00
$netflow_disable_custom_lvfilters = false ;
if ( isset ( $config [ 'netflow_disable_custom_lvfilters' ])) {
$netflow_disable_custom_lvfilters = $config [ 'netflow_disable_custom_lvfilters' ];
}
2013-06-20 11:00:44 +02:00
enterprise_hook ( 'open_meta_frame' );
2013-06-10 18:15:36 +02:00
2015-07-01 17:05:53 +02:00
$class = " databox filters " ;
2015-03-06 12:28:05 +01:00
2012-11-29 11:30:46 +01:00
echo '<form method="post" action="' . $config [ 'homeurl' ] . 'index.php?sec=netf&sec2=operation/netflow/nf_live_view&pure=' . $pure . '">' ;
2015-03-11 11:31:46 +01:00
echo " <table class=' " . $class . " ' width='100%'> " ;
2015-06-08 11:05:19 +02:00
if ( defined ( " METACONSOLE " )) {
2015-03-11 11:31:46 +01:00
echo " <thead>
< tr >
< th align = center colspan = 6 >
" . __('Draw live filter') . "
</ th >
</ tr >
2015-06-08 11:05:19 +02:00
</ thead > " ;
2015-03-11 11:31:46 +01:00
}
2014-06-09 20:23:36 +02:00
if ( defined ( 'METACONSOLE' )) {
$list_servers = array ();
$servers = db_get_all_rows_sql ( " SELECT *
FROM tmetaconsole_setup " );
if ( $servers === false )
$servers = array ();
foreach ( $servers as $server ) {
// If connection was good then retrieve all data server
if ( metaconsole_load_external_db ( $server )) {
$connection = true ;
}
else {
$connection = false ;
}
$row = db_get_row ( 'tconfig' , 'token' , 'activate_netflow' );
if ( $row [ 'value' ]) {
$list_servers [ $server [ 'server_name' ]] = $server [ 'server_name' ];
}
metaconsole_restore_db ();
}
echo " <tr> " ;
echo " <td> " . '<b>' . __ ( 'Connection' ) . '</b>' . " </td> " ;
2015-02-16 18:37:16 +01:00
echo " <td> " . html_print_select ( $list_servers ,
'connection_name' , $connection_name , '' , '' , 0 , true , false ,
false ) . " </td> " ;
2014-06-09 20:23:36 +02:00
echo " </tr> " ;
}
2015-02-16 18:37:16 +01:00
2013-01-25 14:37:51 +01:00
echo " <tr> " ;
echo " <td> " .
2013-02-14 14:37:33 +01:00
'<b>' . __ ( 'Date' ) . '</b>' .
2013-01-25 14:37:51 +01:00
" </td> " ;
echo " <td> " .
2013-06-10 10:53:42 +02:00
html_print_input_text ( 'date' , $date , false , 13 , 10 , true ) .
2013-01-25 14:37:51 +01:00
html_print_image ( " images/calendar_view_day.png " , true ,
2013-06-10 10:53:42 +02:00
array ( " alt " => " calendar " )) .
2013-06-11 15:39:03 +02:00
ui_print_help_tip ( __ ( 'Date format in Pandora is year/month/day' ), true ) .
2014-05-07 16:14:23 +02:00
html_print_input_text ( 'time' , $time , false , 10 , 8 , true ) .
2013-06-11 15:39:03 +02:00
ui_print_help_tip ( __ ( 'Time format in Pandora is hours(24h):minutes:seconds' ), true ) .
2013-01-25 14:37:51 +01:00
" </td> " ;
echo " <td> " . '<b>' . __ ( 'Interval' ) . '</b>' . " </td> " ;
echo " <td> " . html_print_select ( netflow_get_valid_intervals (), 'period' , $period , '' , '' , 0 , true , false , false ) . " </td> " ;
echo " <td> " . '<b>' . __ ( 'Resolution' ) . ui_print_help_tip ( __ ( " The interval will be divided in chunks the length of the resolution. " ), true ) . '</b>' . " </td> " ;
echo " <td> " . html_print_select ( netflow_get_valid_subintervals (), 'interval_length' , $interval_length , '' , '' , 0 , true , false , false ) . " </td> " ;
echo " </tr> " ;
echo " <tr> " ;
2013-02-14 14:37:33 +01:00
echo " <td> " . '<b>' . __ ( 'Type' ) . '</b>' . " </td> " ;
2013-01-25 14:37:51 +01:00
echo " <td> " . html_print_select ( netflow_get_chart_types (), 'chart_type' , $chart_type , '' , '' , 0 , true ) . " </td> " ;
2013-02-14 14:37:33 +01:00
echo " <td> " . '<b>' . __ ( 'Max. values' ) . '</b>' . " </td> " ;
2012-01-20 14:14:09 +01:00
$max_values = array ( '2' => '2' ,
'5' => '5' ,
'10' => '10' ,
'15' => '15' ,
'20' => '20' ,
'25' => '25' ,
2013-01-25 14:37:51 +01:00
'50' => '50' );
echo " <td> " . html_print_select ( $max_values , 'max_aggregates' , $max_aggregates , '' , '' , 0 , true ) . " </td> " ;
2014-06-09 20:23:36 +02:00
$onclick = " if (!confirm(' " . __ ( 'Warning' ) . " . " . __ ( 'IP address resolution can take a lot of time' ) . " ')) return false; " ;
$radio_buttons = __ ( 'Yes' ) . ' ' . html_print_radio_button_extended ( 'address_resolution' , 1 , '' , $address_resolution , false , $onclick , '' , true ) . ' ' ;
$radio_buttons .= __ ( 'No' ) . ' ' . html_print_radio_button ( 'address_resolution' , 0 , '' , $address_resolution , true );
echo " <td> " . '<b>' . __ ( 'IP address resolution' ) . '</b>' . ui_print_help_tip ( __ ( " Resolve the IP addresses to get their hostnames. " ), true ) . " </td> " ;
echo " <td> $radio_buttons </td> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
// Read filter type
if ( $filter [ 'advanced_filter' ] != '' ) {
$filter_type = 1 ;
}
else {
$filter_type = 0 ;
}
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-01-25 14:37:51 +01:00
echo " <tr class='filter_save' style='display: none;'> " ;
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/reporting/reporting_xml.php,
operation/netflow/nf_live_view.php, operation/netflow/nf_view.php,
operation/tree.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php,
operation/agentes/datos_agente.php,
operation/agentes/alerts_status.php, operation/menu.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/servers/manage_recontask.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_special_days.php, godmode/setup/links.php,
godmode/setup/os.php, godmode/users/configure_profile.php,
godmode/events/events.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/graph_builder.php,
godmode/reporting/reporting_builder.item_editor.php,
include/functions_menu.php, include/functions_visual_map.php,
include/functions_db.php: cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 12:38:02 +02:00
2013-01-25 14:37:51 +01:00
echo " <td colspan='6'> " .
ui_print_error_message ( 'Define a name for the filter and click on Save as new filter again' , '' , true ) . " </td> " ;
echo " </tr> " ;
echo " <tr class='filter_save' style='display: none;'> " ;
2012-12-17 14:44:28 +01:00
2013-01-25 14:37:51 +01:00
echo " <td> " . '<span id="filter_name_color"><b>' . __ ( 'Name' ) . '</b></span>' . " </td> " ;
echo " <td colspan='2'> " . html_print_input_text ( 'name' , $filter [ 'id_name' ], false , 20 , 80 , true ) . " </td> " ;
2012-01-23 19:17:52 +01:00
$own_info = get_user_info ( $config [ 'id_user' ]);
2013-01-25 14:37:51 +01:00
echo " <td> " . '<span id="filter_group_color"><b>' . __ ( 'Group' ) . '</b></span>' . " </td> " ;
echo " <td colspan='2'> " . html_print_select_groups ( $config [ 'id_user' ], " IW " , $own_info [ 'is_admin' ], 'assign_group' , $filter [ 'id_group' ], '' , '' , - 1 , true , false , false ) . " </td> " ;
2012-01-20 14:14:09 +01:00
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
echo " <tr> " ;
2012-07-10 13:03:00 +02:00
2013-02-04 18:38:02 +01:00
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
}
else {
echo " <td> " . '<b>' . __ ( 'Filter' ) . '</b>' . " </td> " ;
echo " <td> " .
__ ( 'Normal' ) . ' ' . html_print_radio_button_extended ( 'filter_type' , 0 , '' , $filter_type , false , 'displayNormalFilter();' , 'style="margin-right: 40px;"' , true ) .
__ ( 'Advanced' ) . ' ' . html_print_radio_button_extended ( 'filter_type' , 1 , '' , $filter_type , false , 'displayAdvancedFilter();' , 'style="margin-right: 40px;"' , true ) .
" </td> " ;
}
2013-01-25 14:37:51 +01:00
2013-02-28 17:46:34 +01:00
2013-01-25 14:37:51 +01:00
echo " <td> " . '<b>' . __ ( 'Load filter' ) . '</b>' . " </td> " ;
$user_groups = users_get_groups ( $config [ 'id_user' ], " AR " , $own_info [ 'is_admin' ], true );
2013-02-28 17:46:34 +01:00
$user_groups [ 0 ] = 0 ; //Add all groups.
$sql = " SELECT *
FROM tnetflow_filter
WHERE id_group IN ( " .implode(',', array_keys ( $user_groups )). " ) " ;
2015-04-15 12:31:31 +02:00
echo " <td colspan='3'> " . html_print_select_from_sql ( $sql , 'filter_id' , $filter_id , '' , __ ( 'Select a filter' ), 0 , true );
html_print_input_hidden ( " filter_selected " , $filter_selected , false );
echo " </td> " ;
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
2013-02-28 17:46:34 +01:00
2013-01-25 14:37:51 +01:00
echo " <tr class='filter_normal'> " ;
2013-02-04 18:38:02 +01:00
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
}
else {
2015-04-23 17:52:16 +02:00
echo " <td style='font-weight:bold;'> " . __ ( 'Dst Ip' ) . ui_print_help_tip ( __ ( " Destination IP. A comma separated list of destination ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249 " ), true ) . " </td> " ;
2013-02-04 18:38:02 +01:00
echo " <td colspan='2'> " . html_print_input_text ( 'ip_dst' , $filter [ 'ip_dst' ], false , 30 , 80 , true ) . " </td> " ;
}
2013-01-25 14:37:51 +01:00
2013-02-04 18:38:02 +01:00
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
}
else {
2015-04-23 17:52:16 +02:00
echo " <td style='font-weight:bold;'> " . __ ( 'Src Ip' ) . ui_print_help_tip ( __ ( " Source IP. A comma separated list of source ip. If we leave the field blank, will show all ip. Example filter by ip:<br>25.46.157.214,160.253.135.249 " ), true ) . " </td> " ;
2013-02-04 18:38:02 +01:00
echo " <td colspan='2'> " . html_print_input_text ( 'ip_src' , $filter [ 'ip_src' ], false , 30 , 80 , true ) . " </td> " ;
}
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
echo " <tr class='filter_normal'> " ;
2013-02-04 18:38:02 +01:00
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
}
else {
2015-04-23 17:52:16 +02:00
echo " <td style='font-weight:bold;'> " . __ ( 'Dst Port' ) . ui_print_help_tip ( __ ( " Destination port. A comma separated list of destination ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22 " ), true ) . " </td> " ;
2013-02-04 18:38:02 +01:00
echo " <td colspan='2'> " . html_print_input_text ( 'dst_port' , $filter [ 'dst_port' ], false , 30 , 80 , true ) . " </td> " ;
}
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
}
else {
2015-04-23 17:52:16 +02:00
echo " <td style='font-weight:bold;'> " . __ ( 'Src Port' ) . ui_print_help_tip ( __ ( " Source port. A comma separated list of source ports. If we leave the field blank, will show all ports. Example filter by ports 80 and 22:<br>80,22 " ), true ) . " </td> " ;
2013-02-04 18:38:02 +01:00
echo " <td colspan='2'> " . html_print_input_text ( 'src_port' , $filter [ 'src_port' ], false , 30 , 80 , true ) . " </td> " ;
}
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
echo " <tr class='filter_advance' style='display: none;'> " ;
2015-04-15 12:31:31 +02:00
if ( $netflow_disable_custom_lvfilters ) {
echo " <td></td> " ;
echo " <td></td> " ;
} else {
2015-04-29 09:52:44 +02:00
echo " <td> " . ui_print_help_icon ( 'pcap_filter' , true ) . " </td> " ;
2015-04-15 12:31:31 +02:00
echo " <td colspan='5'> " . html_print_textarea ( 'advanced_filter' , 4 , 40 , $filter [ 'advanced_filter' ], " style='min-height: 0px; width: 90%;' " , true ) . " </td> " ;
}
2013-01-25 14:37:51 +01:00
echo " </tr> " ;
echo " <tr> " ;
2013-06-07 11:13:08 +02:00
echo " <td> " . '<b>' . __ ( 'Aggregate by' ) . '</b>' . ui_print_help_icon ( 'aggregate_by' , true ) . " </td> " ;
2012-01-20 14:14:09 +01:00
$aggregate_list = array ();
$aggregate_list = array ( 'none' => __ ( 'None' ), 'proto' => __ ( 'Protocol' ), 'srcip' => __ ( 'Src Ip Address' ), 'dstip' => __ ( 'Dst Ip Address' ), 'srcport' => __ ( 'Src Port' ), 'dstport' => __ ( 'Dst Port' ) );
2013-01-25 14:37:51 +01:00
echo " <td colspan='2'> " . html_print_select ( $aggregate_list , " aggregate " , $filter [ 'aggregate' ], '' , '' , 0 , true , false , true , '' , false ) . " </td> " ;
2012-07-10 13:03:00 +02:00
2013-01-25 14:37:51 +01:00
echo " <td> " . '<b>' . __ ( 'Output format' ) . '</b>' . " </td> " ;
2012-12-12 13:10:16 +01:00
$show_output = array ( 'bytes' => __ ( 'Bytes' ), 'bytespersecond' => __ ( 'Bytes per second' ), 'kilobytes' => __ ( 'Kilobytes' ), 'megabytes' => __ ( 'Megabytes' ), 'kilobytespersecond' => __ ( 'Kilobytes per second' ), 'megabytespersecond' => __ ( 'Megabytes per second' ));
2013-01-25 14:37:51 +01:00
echo " <td colspan='2'> " . html_print_select ( $show_output , 'output' , $filter [ 'output' ], '' , '' , 0 , true , false , true , '' , false ) . " </td> " ;
echo " </tr> " ;
echo " </table> " ;
2015-04-23 17:52:16 +02:00
//echo "<br />";
2013-01-25 14:37:51 +01:00
2015-04-22 16:46:08 +02:00
echo " <table class='' width='100%' style='border: 0px; text-align:right;'><tr><td> " ;
2015-07-01 17:05:53 +02:00
echo html_print_submit_button ( __ ( 'Draw' ), 'draw_button' , false , 'class="sub upd"' , true ) ;
2013-02-04 18:38:02 +01:00
if ( ! $netflow_disable_custom_lvfilters ) {
if ( check_acl ( $config [ " id_user " ], 0 , " AW " )) {
html_print_submit_button ( __ ( 'Save as new filter' ), 'save_button' , false , 'class="sub upd" onClick="return defineFilterName();"' );
html_print_submit_button ( __ ( 'Update current filter' ), 'update_button' , false , 'class="sub upd"' );
}
2012-01-23 19:17:52 +01:00
}
2013-01-25 14:37:51 +01:00
2015-04-22 16:46:08 +02:00
echo " </td></tr></table> " ;
2012-01-20 14:14:09 +01:00
echo '</form>' ;
2013-01-25 14:37:51 +01:00
if ( $draw != '' ) {
2012-01-20 14:14:09 +01:00
// Draw
2012-12-07 15:03:00 +01:00
echo " <br/> " ;
2015-04-15 12:31:31 +02:00
// No filter selected
if ( $netflow_disable_custom_lvfilters && $filter_selected == 0 ) {
ui_print_error_message ( __ ( 'No filter selected' ));
}
// Draw the netflow chart
else {
2013-02-14 14:37:33 +01:00
echo netflow_draw_item ( $start_date , $end_date ,
$interval_length , $chart_type , $filter ,
2014-06-09 20:23:36 +02:00
$max_aggregates , $connection_name , 'HTML' , $address_resolution );
2015-04-15 12:31:31 +02:00
}
2012-01-20 14:14:09 +01:00
}
2013-06-10 10:53:42 +02:00
2013-06-20 11:00:44 +02:00
enterprise_hook ( 'close_meta_frame' );
2013-06-10 18:15:36 +02:00
2014-06-02 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/configure_alert_template.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/agentes/planned_downtime.editor.php, godmode/setup/news.php,
include/ajax/module.php, include/functions.php,
include/functions_ui.php, extensions/insert_data.php,
operation/netflow/nf_live_view.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/tree.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_monitores.php: fixed the i18n of the
timepicker.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10076 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-02 17:57:36 +02:00
ui_include_time_picker ();
2012-01-20 14:14:09 +01:00
?>
< script type = " text/javascript " >
2012-01-23 19:17:52 +01:00
// Hide the normal filter and display the advanced filter
function displayAdvancedFilter () {
// Erase the normal filter
2014-06-09 20:23:36 +02:00
$ ( " #text-ip_dst " ) . val ( '' );
$ ( " #text-ip_src " ) . val ( '' );
$ ( " #text-dst_port " ) . val ( '' );
$ ( " #text-src_port " ) . val ( '' );
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Hide the normal filter
2014-06-09 20:23:36 +02:00
$ ( " .filter_normal " ) . hide ();
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Show the advanced filter
2014-06-09 20:23:36 +02:00
$ ( " .filter_advance " ) . show ();
2012-01-23 19:17:52 +01:00
};
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Hide the advanced filter and display the normal filter
function displayNormalFilter () {
// Erase the advanced filter
2013-01-25 14:37:51 +01:00
$ ( " #textarea_advanced_filter " ) . val ( '' );
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Hide the advanced filter
2014-06-09 20:23:36 +02:00
$ ( " .filter_advance " ) . hide ();
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Show the normal filter
2014-06-09 20:23:36 +02:00
$ ( " .filter_normal " ) . show ();
2012-01-23 19:17:52 +01:00
};
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Ask the user to define a name for the filter in order to save it
function defineFilterName () {
2013-01-25 14:37:51 +01:00
if ( $ ( " #text-name " ) . val () == '' ) {
2014-06-09 20:23:36 +02:00
$ ( " .filter_save " ) . show ();
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
return false ;
}
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
return true ;
};
2012-07-10 13:03:00 +02:00
2012-01-23 19:17:52 +01:00
// Display the appropriate filter
var filter_type = < ? php echo $filter_type ?> ;
if ( filter_type == 0 ) {
displayNormalFilter ();
2012-07-10 13:03:00 +02:00
}
else {
2012-01-23 19:17:52 +01:00
displayAdvancedFilter ();
}
2013-01-25 14:37:51 +01:00
2012-02-09 18:55:49 +01:00
$ ( " #filter_id " ) . change ( function () {
var filter_type ;
2012-02-13 13:16:08 +01:00
// Hide information and name/group row
2014-06-09 20:23:36 +02:00
$ ( " .filter_save " ) . hide ();
2012-02-09 18:55:49 +01:00
// Clean fields
2012-07-10 13:03:00 +02:00
if ( $ ( " #filter_id " ) . val () == 0 ) {
2014-06-09 20:23:36 +02:00
displayNormalFilter ();
2012-02-09 18:55:49 +01:00
// Check right filter type
$ ( " #radiobtn0001 " ) . attr ( " checked " , " checked " );
2012-07-10 13:03:00 +02:00
2015-04-15 12:31:31 +02:00
$ ( " #hidden-filter_selected " ) . val ( 0 );
2012-02-09 18:55:49 +01:00
$ ( " #text-ip_dst " ) . val ( '' );
$ ( " #text-ip_src " ) . val ( '' );
$ ( " #text-dst_port " ) . val ( '' );
$ ( " #text-src_port " ) . val ( '' );
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
$ ( " #textarea_advanced_filter " ) . val ( '' );
$ ( " #aggregate " ) . val ( '' );
2012-02-09 18:55:49 +01:00
$ ( " #output " ) . val ( '' );
// Hide update filter button
2014-06-09 20:23:36 +02:00
$ ( " #submit-update_button " ) . hide ();
2012-07-10 13:03:00 +02:00
}
else {
// Load fields from DB
2015-04-15 12:31:31 +02:00
$ ( " #hidden-filter_selected " ) . val ( 1 );
2012-07-10 13:03:00 +02:00
2012-02-09 18:55:49 +01:00
// Get filter type
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
< ? php
if ( ! defined ( 'METACONSOLE' )) {
echo 'jQuery.post ("ajax.php",' ;
2013-01-25 14:37:51 +01:00
}
else {
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
echo 'jQuery.post ("' . $config [ 'homeurl' ] . '../../ajax.php",' ;
}
?>
2012-02-09 18:55:49 +01:00
{ " page " : " operation/netflow/nf_live_view " ,
" get_filter_type " : 1 ,
" id " : $ ( " #filter_id " ) . val ()
},
function ( data ) {
filter_type = data ;
// Display the appropriate filter
if ( filter_type == 0 ) {
2014-06-09 20:23:36 +02:00
$ ( " .filter_normal " ) . show ();
$ ( " .filter_advance " ) . hide ();
2012-02-09 18:55:49 +01:00
// Check right filter type
$ ( " #radiobtn0001 " ) . attr ( " checked " , " checked " );
2012-07-10 13:03:00 +02:00
}
else {
2014-06-09 20:23:36 +02:00
$ ( " .filter_normal " ) . hide ();
$ ( " .filter_advance " ) . show ();
2012-02-09 18:55:49 +01:00
// Check right filter type
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
$ ( " #radiobtn0002 " ) . attr ( " checked " , " checked " );
2012-07-10 13:03:00 +02:00
}
2012-09-21 13:24:16 +02:00
});
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
2012-02-09 18:55:49 +01:00
// Get filter values from DB
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
< ? php
if ( ! defined ( 'METACONSOLE' )) {
echo 'jQuery.post ("ajax.php",' ;
2013-01-25 14:37:51 +01:00
}
else {
2012-10-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_html.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf_edit.php: Added metaconsole integration to netflow
reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7043 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-04 12:49:11 +02:00
echo 'jQuery.post ("' . $config [ 'homeurl' ] . '../../ajax.php",' ;
}
?>
2012-02-09 18:55:49 +01:00
{ " page " : " operation/netflow/nf_live_view " ,
" get_filter_values " : 1 ,
" id " : $ ( " #filter_id " ) . val ()
},
function ( data ) {
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
jQuery . each ( data , function ( i , val ) {
if ( i == 'ip_dst' )
$ ( " #text-ip_dst " ) . val ( val );
if ( i == 'ip_src' )
$ ( " #text-ip_src " ) . val ( val );
if ( i == 'dst_port' )
$ ( " #text-dst_port " ) . val ( val );
if ( i == 'src_port' )
$ ( " #text-src_port " ) . val ( val );
if ( i == 'advanced_filter' )
$ ( " #textarea_advanced_filter " ) . val ( val );
if ( i == 'aggregate' )
$ ( " #aggregate " ) . val ( val );
if ( i == 'output' )
$ ( " #output " ) . val ( val );
});
2012-02-09 18:55:49 +01:00
},
2012-07-10 13:03:00 +02:00
" json " );
2014-06-09 20:23:36 +02:00
// Shows update filter button
$ ( " #submit-update_button " ) . show ();
2012-02-09 18:55:49 +01:00
}
});
$ ( document ) . ready ( function () {
// Hide update filter button
2012-03-05 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/main.php, general/shortcut_bar.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.preview.php, include/functions_api.php,
include/functions_html.php, include/htmlawed.php, include/pchart_graph.php,
operation/events/events_list.php, operation/netflow/nf_live_view.php:
cleaned source code style.
* godmode/menu.php, godmode/agentes/manage_config_remote.php: removed the
enterprise feature that have been wrong for years.
* general/header.php: changed to load the jquery-ui and jquery javascript
library to last version.
* extensions/insert_data.php, extensions/snmp_explorer.php,
godmode/agentes/agent_manager.php, include/ajax/agent.php,
include/javascript/pandora.js, operation/agentes/exportdata.php,
operation/events/events.php: changed the unknow plugin autocomplete for
the autocomple from jquery-ui.
* include/functions_ui.php: cleaned source code style and into the function
"ui_process_page_head" added the blacklist hardwrote for to use old jquery.
* include/styles/jquery-ui-1.8.17.custom.css,
include/javascript/jquery-1.7.1.min.js,
include/javascript/jquery.jquery-ui-1.8.17.custom.min.js: added the last
version of Jquery and Jquery-ui.
Merge from the branch "pandora_4.0"
* godmode/reporting/visual_console_builder.constans.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/javascript/pandora_visual_console.js: changed the unknow
plugin autocomplete for the autocomple from jquery-ui and added function to
paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart) with the
name "progress_bubble".
* images/percentile_item.disabled.png, images/percentile_item.png: added
images for button of percentile item (new item in visual map).
* include/styles/pandora.css: added the style for the new button percentile
item.
* include/functions_graph.php, include/graphs/fgraph.php,
include/graphs/functions_gd.php: cleaned source code style, and added the
params to set text and color in the function "progress_bar" and added
function to paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart)
with the name "progress_bubble".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-05 18:56:56 +01:00
if ( $ ( " #filter_id " ) . val () == 0 ) {
2014-06-09 20:23:36 +02:00
$ ( " #submit-update_button " ) . hide ();
2012-03-05 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/main.php, general/shortcut_bar.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.preview.php, include/functions_api.php,
include/functions_html.php, include/htmlawed.php, include/pchart_graph.php,
operation/events/events_list.php, operation/netflow/nf_live_view.php:
cleaned source code style.
* godmode/menu.php, godmode/agentes/manage_config_remote.php: removed the
enterprise feature that have been wrong for years.
* general/header.php: changed to load the jquery-ui and jquery javascript
library to last version.
* extensions/insert_data.php, extensions/snmp_explorer.php,
godmode/agentes/agent_manager.php, include/ajax/agent.php,
include/javascript/pandora.js, operation/agentes/exportdata.php,
operation/events/events.php: changed the unknow plugin autocomplete for
the autocomple from jquery-ui.
* include/functions_ui.php: cleaned source code style and into the function
"ui_process_page_head" added the blacklist hardwrote for to use old jquery.
* include/styles/jquery-ui-1.8.17.custom.css,
include/javascript/jquery-1.7.1.min.js,
include/javascript/jquery.jquery-ui-1.8.17.custom.min.js: added the last
version of Jquery and Jquery-ui.
Merge from the branch "pandora_4.0"
* godmode/reporting/visual_console_builder.constans.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/javascript/pandora_visual_console.js: changed the unknow
plugin autocomplete for the autocomple from jquery-ui and added function to
paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart) with the
name "progress_bubble".
* images/percentile_item.disabled.png, images/percentile_item.png: added
images for button of percentile item (new item in visual map).
* include/styles/pandora.css: added the style for the new button percentile
item.
* include/functions_graph.php, include/graphs/fgraph.php,
include/graphs/functions_gd.php: cleaned source code style, and added the
params to set text and color in the function "progress_bar" and added
function to paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart)
with the name "progress_bubble".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-05 18:56:56 +01:00
}
else {
2014-06-09 20:23:36 +02:00
$ ( " #submit-update_button " ) . show ();
2012-02-09 18:55:49 +01:00
}
2012-02-13 13:16:08 +01:00
// Change color of name and group if save button has been pushed
$ ( " #submit-save_button " ) . click ( function () {
2012-07-10 13:03:00 +02:00
if ( $ ( " #text-name " ) . val () == " " ) {
2012-02-13 13:16:08 +01:00
$ ( '#filter_name_color' ) . css ( 'color' , '#CC0000' );
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
$ ( '#filter_group_color' ) . css ( 'color' , '#CC0000' );
2012-03-05 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/main.php, general/shortcut_bar.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.preview.php, include/functions_api.php,
include/functions_html.php, include/htmlawed.php, include/pchart_graph.php,
operation/events/events_list.php, operation/netflow/nf_live_view.php:
cleaned source code style.
* godmode/menu.php, godmode/agentes/manage_config_remote.php: removed the
enterprise feature that have been wrong for years.
* general/header.php: changed to load the jquery-ui and jquery javascript
library to last version.
* extensions/insert_data.php, extensions/snmp_explorer.php,
godmode/agentes/agent_manager.php, include/ajax/agent.php,
include/javascript/pandora.js, operation/agentes/exportdata.php,
operation/events/events.php: changed the unknow plugin autocomplete for
the autocomple from jquery-ui.
* include/functions_ui.php: cleaned source code style and into the function
"ui_process_page_head" added the blacklist hardwrote for to use old jquery.
* include/styles/jquery-ui-1.8.17.custom.css,
include/javascript/jquery-1.7.1.min.js,
include/javascript/jquery.jquery-ui-1.8.17.custom.min.js: added the last
version of Jquery and Jquery-ui.
Merge from the branch "pandora_4.0"
* godmode/reporting/visual_console_builder.constans.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.editor.php,
include/functions_visual_map.php,
include/ajax/visual_console_builder.ajax.php,
include/javascript/pandora_visual_console.js: changed the unknow
plugin autocomplete for the autocomple from jquery-ui and added function to
paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart) with the
name "progress_bubble".
* images/percentile_item.disabled.png, images/percentile_item.png: added
images for button of percentile item (new item in visual map).
* include/styles/pandora.css: added the style for the new button percentile
item.
* include/functions_graph.php, include/graphs/fgraph.php,
include/graphs/functions_gd.php: cleaned source code style, and added the
params to set text and color in the function "progress_bar" and added
function to paint a Bubble Chart (http://en.wikipedia.org/wiki/Bubble_chart)
with the name "progress_bubble".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5693 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-03-05 18:56:56 +01:00
}
else {
2012-02-13 13:16:08 +01:00
$ ( '#filter_name_color' ) . css ( 'color' , '#000000' );
2012-09-18 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.editor.js,
godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_list.list.php,
godmode/gis_maps/configure_gis_map.php,
include/functions_visual_map_editor.php, include/functions_ui.php,
operation/tree.php, operation/agentes/exportdata.excel.php,
operation/agentes/exportdata.php, operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/ajax.php, operation/events/events_validate.php,
operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/reporting_viewer.php,
operation/netflow/nf_live_view.php,
operation/incidents/incident.php, operation/search_modules.php:
started to use the new function "ui_print_agent_autocomplete_input"
to make more easy (and standar) the autocomplete agent input.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6983 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-18 13:28:09 +02:00
$ ( '#filter_group_color' ) . css ( 'color' , '#000000' );
2012-02-13 13:16:08 +01:00
}
2012-07-10 13:03:00 +02:00
});
2012-02-09 18:55:49 +01:00
});
2013-06-10 10:53:42 +02:00
$ ( " #text-time " ) . timepicker ({
showSecond : true ,
2013-06-11 Miguel de Dios <miguel.dedios@artica.es>
* extensions/insert_data.php,
godmode/alerts/configure_alert_template.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/agentes/planned_downtime.editor.php,
include/ajax/module.php, include/constants.php, operation/tree.php,
operation/netflow/nf_live_view.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/agentes/datos_agente.php: fixed the date and time format
and set a help tip to say the Pandora's format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-11 15:14:48 +02:00
timeFormat : '<?php echo TIME_FORMAT_JS; ?>' ,
2013-06-10 10:53:42 +02:00
timeOnlyTitle : '<?php echo __(' Choose time ');?>' ,
timeText : '<?php echo __(' Time ');?>' ,
hourText : '<?php echo __(' Hour ');?>' ,
minuteText : '<?php echo __(' Minute ');?>' ,
secondText : '<?php echo __(' Second ');?>' ,
currentText : '<?php echo __(' Now ');?>' ,
closeText : '<?php echo __(' Close ');?>' });
2013-06-11 Miguel de Dios <miguel.dedios@artica.es>
* extensions/insert_data.php,
godmode/alerts/configure_alert_template.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/agentes/planned_downtime.editor.php,
include/ajax/module.php, include/constants.php, operation/tree.php,
operation/netflow/nf_live_view.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/agentes/datos_agente.php: fixed the date and time format
and set a help tip to say the Pandora's format.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-06-11 15:14:48 +02:00
$ ( " #text-date " ) . datepicker ({ dateFormat : " <?php echo DATE_FORMAT_JS; ?> " });
2013-06-10 10:53:42 +02:00
$ . datepicker . regional [ " <?php echo get_user_language(); ?> " ];
2012-10-08 21:19:58 +02:00
</ script >