2008-08-22 20:07:32 +02:00
|
|
|
<?php
|
2009-06-08 20:15:58 +02:00
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2010-06-19 11:52:12 +02:00
|
|
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
2009-06-08 20:15:58 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2008-06-17 17:47:13 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License
|
2008-08-22 20:07:32 +02:00
|
|
|
// as published by the Free Software Foundation for version 2.
|
2008-06-17 17:47:13 +02:00
|
|
|
// 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.
|
2009-06-08 20:15:58 +02:00
|
|
|
|
2008-06-17 17:47:13 +02:00
|
|
|
|
|
|
|
// Load global vars
|
2010-03-02 20:25:51 +01:00
|
|
|
global $config;
|
2008-06-17 17:47:13 +02:00
|
|
|
|
2008-08-29 18:05:08 +02:00
|
|
|
check_login ();
|
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
|
|
|
|
2015-02-10 15:48:41 +01:00
|
|
|
require_once ('include/functions_networkmap.php');
|
|
|
|
require_once ('include/functions_clippy.php');
|
2011-11-24 11:23:23 +01:00
|
|
|
|
2015-01-23 08:59:42 +01:00
|
|
|
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
|
|
|
|
2015-06-08 13:13:09 +02:00
|
|
|
$name = '';
|
2010-07-30 11:03:23 +02:00
|
|
|
$pure = (int) get_parameter ('pure', 0);
|
2010-07-23 14:14:07 +02:00
|
|
|
$activeTab = get_parameter ('tab', 'topology');
|
2010-07-30 11:03:23 +02:00
|
|
|
$id_networkmap = get_parameter ('id_networkmap', 0);
|
|
|
|
$save_networkmap = get_parameter ('save_networkmap', 0);
|
|
|
|
$delete_networkmap = get_parameter ('delete_networkmap', 0);
|
|
|
|
$add_networkmap = get_parameter ('add_networkmap', 0);
|
|
|
|
$update_networkmap = get_parameter ('update_networkmap', 0);
|
|
|
|
$recenter_networkmap = get_parameter ('recenter_networkmap', 0);
|
2010-08-23 19:15:18 +02:00
|
|
|
$hidden_options = get_parameter ('hidden_options', 1);
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// ACL checks //
|
|
|
|
// New networkmap.
|
|
|
|
if ($add_networkmap) {
|
|
|
|
// ACL for the new network map
|
|
|
|
// $networkmap_read = check_acl ($config['id_user'], 0, "MR");
|
|
|
|
$networkmap_write = check_acl ($config['id_user'], 0, "MW");
|
|
|
|
$networkmap_manage = check_acl ($config['id_user'], 0, "MM");
|
2015-06-30 16:29:39 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
if (!$networkmap_write && !$networkmap_manage) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to accessnode graph builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// The networkmap exist. Should have id and store goup.
|
|
|
|
else {
|
|
|
|
// Networkmap id required
|
|
|
|
if (empty($id_networkmap)) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access node graph builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get the group for ACL
|
|
|
|
$store_group = db_get_value("store_group", "tnetwork_map", "id_networkmap", $id_networkmap);
|
|
|
|
if ($store_group === false) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to accessnode graph builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// ACL for the general permission
|
|
|
|
$networkmap_read = check_acl ($config['id_user'], $store_group, "MR");
|
|
|
|
$networkmap_write = check_acl ($config['id_user'], $store_group, "MW");
|
|
|
|
$networkmap_manage = check_acl ($config['id_user'], $store_group, "MM");
|
2013-07-02 11:44:10 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
if (!$networkmap_read && !$networkmap_write && !$networkmap_manage) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access node graph builder");
|
|
|
|
include ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// Create
|
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
|
|
|
if ($add_networkmap) {
|
2010-07-30 11:03:23 +02:00
|
|
|
// Load variables
|
|
|
|
$layout = 'radial';
|
|
|
|
$depth = 'all';
|
|
|
|
$nooverlap = 0;
|
|
|
|
$modwithalerts = 0;
|
|
|
|
$hidepolicymodules = 0;
|
|
|
|
$zoom = 1;
|
|
|
|
$ranksep = 2.5;
|
|
|
|
$simple = 0;
|
|
|
|
$regen = 1;
|
|
|
|
$font_size = 12;
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
$text_filter = '';
|
|
|
|
$dont_show_subgroups = false;
|
2015-03-31 12:26:29 +02:00
|
|
|
$store_group = 0;
|
2010-07-30 11:03:23 +02:00
|
|
|
$group = 0;
|
|
|
|
$module_group = 0;
|
|
|
|
$center = 0;
|
|
|
|
$name = $activeTab;
|
2015-03-31 12:26:29 +02:00
|
|
|
$show_snmp_modules = 0;
|
|
|
|
$l2_network = 0;
|
2011-07-21 19:03:02 +02:00
|
|
|
$check = db_get_value('name', 'tnetwork_map', 'name', $name);
|
2013-05-30 16:28:18 +02:00
|
|
|
$sql = db_get_value_filter('COUNT(name)', 'tnetwork_map',
|
|
|
|
array('name' => "%$name"));
|
2012-07-13 Miguel de Dios <miguel.dedios@artica.es>
* godmode/snmpconsole/snmp_alert.php,
godmode/servers/manage_recontask_form.php,
include/functions_filemanager.php, include/functions_networkmap.php,
include/constants.php, include/graphs/functions_gd.php,
include/graphs/functions_pchart.php,
operation/events/events_list.php, operation/agentes/graphs.php,
operation/agentes/networkmap.php, operation/agentes/stat_win.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
operation/gis_maps/render_view.php: cleaned source code style and
change magic numbers for time constants.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6769 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-13 12:59:40 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
$values = array(
|
|
|
|
'name' => ($check ? "($sql) $name" : $name),
|
|
|
|
'type' => $activeTab,
|
|
|
|
'layout' => $layout,
|
|
|
|
'nooverlap' => $nooverlap,
|
|
|
|
'simple' => $simple,
|
|
|
|
'regenerate' => $regen,
|
|
|
|
'font_size' => $font_size,
|
|
|
|
'store_group' => $store_group,
|
|
|
|
'id_group' => $group,
|
|
|
|
'id_module_group' => $module_group,
|
|
|
|
'depth' => $depth,
|
|
|
|
'only_modules_with_alerts' => $modwithalerts,
|
|
|
|
'hide_policy_modules' => $hidepolicymodules,
|
|
|
|
'zoom' => $zoom,
|
|
|
|
'distance_nodes' => $ranksep,
|
|
|
|
'text_filter' => $text_filter,
|
|
|
|
'dont_show_subgroups' => $dont_show_subgroups,
|
|
|
|
'center' => $center,
|
|
|
|
'show_snmp_modules' => $show_snmp_modules,
|
|
|
|
'l2_network' => $l2_network
|
|
|
|
);
|
|
|
|
$id_networkmap = networkmap_create_networkmap($values);
|
2015-04-09 14:05:23 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
$message = ui_print_result_message ($id_networkmap,
|
|
|
|
__('Network map created successfully'),
|
|
|
|
__('Could not create network map'), '', true);
|
2015-04-09 14:05:23 +02:00
|
|
|
|
|
|
|
// Exit when the networkmap was not created
|
|
|
|
if ($id_networkmap === false) {
|
|
|
|
return;
|
|
|
|
}
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
2015-04-09 14:05:23 +02:00
|
|
|
// Action in existing networkmap
|
|
|
|
else if ($delete_networkmap || $save_networkmap || $update_networkmap) {
|
2011-07-21 19:03:02 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// ACL for the network map
|
|
|
|
// if (!isset($networkmap_read))
|
|
|
|
// $networkmap_read = check_acl ($config['id_user'], $store_group, "MR");
|
|
|
|
if (!isset($networkmap_write))
|
|
|
|
$networkmap_write = check_acl ($config['id_user'], $store_group, "MW");
|
|
|
|
if (!isset($networkmap_manage))
|
|
|
|
$networkmap_manage = check_acl ($config['id_user'], $store_group, "MM");
|
2015-06-30 16:29:39 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
if (!$networkmap_write && !$networkmap_manage) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to accessnode graph builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Actions //
|
|
|
|
|
|
|
|
// Not used now. The new behaviour is delete the map posting to the list.
|
|
|
|
if ($delete_networkmap) {
|
|
|
|
$result = networkmap_delete_networkmap($id_networkmap);
|
2013-06-17 15:36:33 +02:00
|
|
|
$message = ui_print_result_message ($result,
|
2015-04-09 14:05:23 +02:00
|
|
|
__('Network map deleted successfully'),
|
|
|
|
__('Could not delete network map'), '', true);
|
|
|
|
|
|
|
|
return;
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
2015-04-09 14:05:23 +02:00
|
|
|
|
|
|
|
// Save updates the db data, update only updates the view.
|
|
|
|
if ($save_networkmap || $update_networkmap) {
|
|
|
|
// Load variables
|
|
|
|
$layout = (string) get_parameter ('layout', 'radial');
|
|
|
|
$depth = (string) get_parameter ('depth', 'all');
|
|
|
|
$nooverlap = (bool) get_parameter ('nooverlap', 0);
|
|
|
|
$modwithalerts = (int) get_parameter ('modwithalerts', 0);
|
|
|
|
$hidepolicymodules = (int) get_parameter ('hidepolicymodules', 0);
|
|
|
|
$zoom = (float) get_parameter ('zoom', 1);
|
|
|
|
$ranksep = (float) get_parameter ('ranksep', 2.5);
|
|
|
|
$simple = (int) get_parameter ('simple', 0);
|
|
|
|
$regen = (int) get_parameter ('regen', 0);
|
|
|
|
$show_snmp_modules = (int) get_parameter ('show_snmp_modules', 0);
|
|
|
|
$font_size = (int) get_parameter ('font_size', 12);
|
|
|
|
$text_filter = get_parameter ('text_filter', '');
|
|
|
|
$dont_show_subgroups = (bool)get_parameter ('dont_show_subgroups', 0);
|
|
|
|
$store_group = (int) get_parameter ('store_group', 0);
|
|
|
|
$group = (int) get_parameter ('group', 0);
|
|
|
|
$module_group = (int) get_parameter ('module_group', 0);
|
|
|
|
$center = (int) get_parameter ('center', 0);
|
|
|
|
$name = (string) get_parameter ('name', $activeTab);
|
|
|
|
$l2_network = (int) get_parameter ('l2_network', 0);
|
|
|
|
|
|
|
|
if ($save_networkmap) {
|
|
|
|
// ACL for the new network map
|
|
|
|
$networkmap_read_new = check_acl ($config['id_user'], $store_group, "MR");
|
|
|
|
$networkmap_write_new = check_acl ($config['id_user'], $store_group, "MW");
|
|
|
|
$networkmap_manage_new = check_acl ($config['id_user'], $store_group, "MM");
|
|
|
|
|
|
|
|
if (!$networkmap_write_new && !$networkmap_manage_new) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to accessnode graph builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
$result = networkmap_update_networkmap($id_networkmap,
|
|
|
|
array('name' => $name,
|
|
|
|
'type' => $activeTab,
|
|
|
|
'layout' => $layout,
|
|
|
|
'nooverlap' => $nooverlap,
|
|
|
|
'simple' => $simple,
|
|
|
|
'regenerate' => $regen,
|
|
|
|
'font_size' => $font_size,
|
|
|
|
'store_group' => $store_group,
|
|
|
|
'id_group' => $group,
|
|
|
|
'id_module_group' => $module_group,
|
|
|
|
'depth' => $depth,
|
|
|
|
'only_modules_with_alerts' => $modwithalerts,
|
|
|
|
'hide_policy_modules' => $hidepolicymodules,
|
|
|
|
'zoom' => $zoom,
|
|
|
|
'distance_nodes' => $ranksep,
|
|
|
|
'text_filter' => $text_filter,
|
|
|
|
'dont_show_subgroups' => $dont_show_subgroups,
|
|
|
|
'center' => $center,
|
|
|
|
'show_snmp_modules' => (int)$show_snmp_modules,
|
|
|
|
'l2_network' => (int)$l2_network));
|
|
|
|
|
|
|
|
$message = ui_print_result_message ($result,
|
|
|
|
__('Network map saved successfully'),
|
|
|
|
__('Could not save network map'), '', true);
|
|
|
|
|
|
|
|
if ($result) {
|
|
|
|
// Save the new ACL permisison
|
|
|
|
$networkmap_read = $networkmap_read_new;
|
|
|
|
$networkmap_write = $networkmap_write_new;
|
|
|
|
$networkmap_manage = $networkmap_manage_new;
|
|
|
|
}
|
|
|
|
}
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
}
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
if (!$update_networkmap && !$save_networkmap) {
|
2011-05-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_html.php
include/functions_menu.php
include/graphs/fgraph.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_networkmap.php
include/functions_servers.php
include/functions_network_profiles.php
include/functions_network_components.php
include/functions_visual_map.php
include/ajax/visual_console_builder.ajax.php
include/ajax/agent.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_io.php
include/functions_api.php
include/functions_ui.php
include/fgraph.php
include/functions_incidents.php
include/functions.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
extensions/plugin_registration.php
operation/incidents/incident.incident.php
operation/incidents/incident.php
operation/incidents/incident_detail.php
operation/incidents/incident.download_file.php
operation/incidents/incident.list.php
operation/search_modules.php
operation/agentes/status_monitor.php
operation/agentes/export_csv.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/datos_agente.php
operation/agentes/estado_agente.php
operation/agentes/networkmap.topology.php
operation/agentes/networkmap.groups.php
operation/agentes/sla_view.php
operation/agentes/exportdata.php
operation/agentes/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/integria_incidents/incident.incident.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident.download_file.php
operation/integria_incidents/incident.list.php
operation/events/events_rss.php
operation/events/events_list.php
operation/search_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/custom_reporting.php
operation/search_reports.php
operation/search_results.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/tactical.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/servers/view_servers.php
general/logon_ok.php
general/header.php
godmode/admin_access_logs.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/menu.php
godmode/alerts/alert_list.list.php
godmode/alerts/configure_alert_compound.php
godmode/alerts/configure_alert_action.php
godmode/setup/os.list.php
godmode/setup/links.php
godmode/setup/setup.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_profiles.php
godmode/massive/massive_edit_agents.php
godmode/massive/massive_delete_modules.php
godmode/massive/massive_add_profiles.php
godmode/massive/massive_delete_alerts.php
godmode/massive/massive_edit_modules.php
godmode/modules/manage_network_components_form.php
godmode/modules/manage_nc_groups_form.php
godmode/modules/manage_network_templates.php
godmode/modules/manage_network_components_form_common.php
godmode/modules/manage_network_templates_form.php
godmode/modules/manage_network_components_form_wmi.php
godmode/modules/manage_network_components.php
godmode/modules/manage_nc_groups.php
godmode/reporting/reporting_builder.preview.php
godmode/reporting/graph_builder.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_incidents.php, functions_io.php, functions_menu.php, functions_messages.php,
functions_modules.php, functions_network_components.php, functions_network_profiles.php,
functions_networkmap.php, functions_reporting.php, functions_reports.php,
functions_servers.php have "incidents_", "io_", "menu_", "messages_", "modules_",
"network_profiles_", "network_components_", "networkmap_", "reporting_", "reports_",
"servers_" prefixes respectively.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-09 19:30:55 +02:00
|
|
|
$networkmap_data = networkmap_get_networkmap($id_networkmap);
|
2015-04-09 14:05:23 +02:00
|
|
|
if (empty($networkmap_data)) {
|
|
|
|
ui_print_error_message(__('There was an error loading the network map'));
|
|
|
|
return;
|
|
|
|
}
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// Load variables
|
2010-07-30 11:03:23 +02:00
|
|
|
$layout = $networkmap_data['layout'];
|
|
|
|
$depth = $networkmap_data['depth'];
|
|
|
|
$nooverlap = (bool)$networkmap_data['nooverlap'];
|
|
|
|
$modwithalerts = $networkmap_data['only_modules_with_alerts'];
|
|
|
|
$hidepolicymodules = $networkmap_data['hide_policy_modules'];
|
|
|
|
$zoom = $networkmap_data['zoom'];
|
|
|
|
$ranksep = $networkmap_data['distance_nodes'];
|
|
|
|
$simple = $networkmap_data['simple'];
|
|
|
|
$regen = $networkmap_data['regenerate'];
|
2011-07-04 15:07:04 +02:00
|
|
|
$show_snmp_modules = $networkmap_data['show_snmp_modules'];
|
2010-07-30 11:03:23 +02:00
|
|
|
$font_size = $networkmap_data['font_size'];
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
$text_filter = $networkmap_data['text_filter'];
|
|
|
|
$dont_show_subgroups = $networkmap_data['dont_show_subgroups'];
|
2015-03-31 12:26:29 +02:00
|
|
|
$store_group = $networkmap_data['store_group'];
|
2010-07-30 11:03:23 +02:00
|
|
|
$group = $networkmap_data['id_group'];
|
|
|
|
$module_group = $networkmap_data['id_module_group'];
|
|
|
|
$center = $networkmap_data['center'];
|
2015-07-22 13:02:47 +02:00
|
|
|
$name = io_safe_output($networkmap_data['name']);
|
2010-07-30 11:03:23 +02:00
|
|
|
$activeTab = $networkmap_data['type'];
|
2014-03-19 17:43:08 +01:00
|
|
|
$l2_network = $networkmap_data['l2_network'];
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
if ($recenter_networkmap) {
|
2010-07-30 11:03:23 +02:00
|
|
|
$center = (int) get_parameter ('center', 0);
|
|
|
|
}
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2010-07-30 11:03:23 +02:00
|
|
|
/* Main code */
|
2015-04-09 14:05:23 +02:00
|
|
|
|
|
|
|
$qs = http_build_query(array(
|
|
|
|
"sec" => "network",
|
|
|
|
"sec2" => "operation/agentes/networkmap_list"
|
|
|
|
));
|
|
|
|
$href = "index.php?$qs";
|
|
|
|
|
|
|
|
$buttons['list'] = array('active' => false, 'text' => "<a href=\"$href\">" .
|
|
|
|
html_print_image("images/list.png", true, array ("title" => __('List'))) ."</a>");
|
|
|
|
|
2008-06-17 17:47:13 +02:00
|
|
|
if ($pure == 1) {
|
2015-04-09 14:05:23 +02:00
|
|
|
$qs = http_build_query(array(
|
|
|
|
"sec" => "network",
|
|
|
|
"sec2" => "operation/agentes/networkmap",
|
|
|
|
"id_networkmap" => $id_networkmap,
|
|
|
|
"tab" => $activeTab
|
|
|
|
));
|
|
|
|
$href = "index.php?$qs";
|
|
|
|
|
|
|
|
$buttons['screen'] = array('active' => false, 'text' => "<a href=\"$href\">" .
|
|
|
|
html_print_image("images/normal_screen.png", true, array ('title' => __('Normal screen'))) ."</a>");
|
2012-07-13 Miguel de Dios <miguel.dedios@artica.es>
* godmode/snmpconsole/snmp_alert.php,
godmode/servers/manage_recontask_form.php,
include/functions_filemanager.php, include/functions_networkmap.php,
include/constants.php, include/graphs/functions_gd.php,
include/graphs/functions_pchart.php,
operation/events/events_list.php, operation/agentes/graphs.php,
operation/agentes/networkmap.php, operation/agentes/stat_win.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
operation/gis_maps/render_view.php: cleaned source code style and
change magic numbers for time constants.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6769 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-13 12:59:40 +02:00
|
|
|
}
|
|
|
|
else {
|
2015-04-09 14:05:23 +02:00
|
|
|
$qs = http_build_query(array(
|
|
|
|
"sec" => "network",
|
|
|
|
"sec2" => "operation/agentes/networkmap",
|
|
|
|
"id_networkmap" => $id_networkmap,
|
|
|
|
"tab" => $activeTab,
|
|
|
|
"pure" => 1
|
|
|
|
));
|
|
|
|
$href = "index.php?$qs";
|
|
|
|
|
|
|
|
$buttons['screen'] = array('active' => false, 'text' => "<a href=\"$href\">" .
|
|
|
|
html_print_image("images/full_screen.png", true, array ('title' => __('Full screen'))) ."</a>");
|
2009-06-10 15:37:40 +02:00
|
|
|
}
|
2012-04-18 14:56:14 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
if ($networkmap_write || $networkmap_manage) {
|
|
|
|
|
|
|
|
$qs = http_build_query(array(
|
|
|
|
"sec" => "network",
|
|
|
|
"sec2" => "operation/agentes/networkmap_list",
|
|
|
|
"id_networkmap" => $id_networkmap,
|
|
|
|
"delete_networkmap" => 1
|
|
|
|
));
|
|
|
|
$href = "index.php?$qs";
|
|
|
|
|
|
|
|
$buttons['deletemap'] = array('active' => false, 'text' => "<a href=\"$href\">" .
|
|
|
|
html_print_image("images/delete_mc.png", true, array ("title" => __('Delete map'))) ."</a>");
|
|
|
|
|
|
|
|
$qs = http_build_query(array(
|
|
|
|
"sec" => "network",
|
|
|
|
"sec2" => "operation/agentes/networkmap",
|
|
|
|
"id_networkmap" => $id_networkmap,
|
|
|
|
"save_networkmap" => 1,
|
|
|
|
"tab" => $activeTab,
|
|
|
|
"name" => $name,
|
|
|
|
"store_group" => $store_group,
|
|
|
|
"group" => $group,
|
|
|
|
"layout" => $layout,
|
|
|
|
"nooverlap" => $nooverlap,
|
|
|
|
"simple" => $simple,
|
|
|
|
"regen" => $regen,
|
|
|
|
"zoom" => $zoom,
|
2015-07-15 08:49:16 +02:00
|
|
|
"ranksep" => $ranksep,
|
2015-04-09 14:05:23 +02:00
|
|
|
"font_size" => $font_size,
|
|
|
|
"depth" => $depth,
|
|
|
|
"modwithalerts" => $modwithalerts,
|
|
|
|
"text_filter" => $text_filter,
|
|
|
|
"dont_show_subgroups" => $dont_show_subgroups,
|
|
|
|
"hidepolicymodules" => $hidepolicymodules,
|
|
|
|
"module_group" => $module_group,
|
|
|
|
"hidden_options" => (int)$hidden_options,
|
|
|
|
"show_snmp_modules" => (int)$show_snmp_modules,
|
|
|
|
"l2_network" => (int)$l2_network,
|
|
|
|
"pure" => $pure
|
|
|
|
));
|
|
|
|
$href = "index.php?$qs";
|
|
|
|
|
|
|
|
$buttons['savemap'] = array('active' => false, 'text' => "<a href=\"$href\">" .
|
|
|
|
html_print_image("images/save_mc.png", true, array ("title" => __('Save map'))) .'</a>');
|
2015-01-23 08:59:42 +01:00
|
|
|
}
|
2013-07-02 11:44:10 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// Disabled. It's a waste of resources to check the ACL of every networkmap
|
|
|
|
// for only provide a shorthand feature.
|
|
|
|
// $combolist = '<form name="query_sel" method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap">';
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// $networkmaps = networkmap_get_networkmaps('','', true, $strict_user);
|
|
|
|
// if (empty($networkmaps))
|
|
|
|
// $networkmaps = array();
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// $combolist .= html_print_select($networkmaps, 'id_networkmap', $id_networkmap,
|
|
|
|
// 'onchange:this.form.submit()', '', 0, true, false, false,
|
|
|
|
// '', false, 'margin-top:4px; margin-left:3px; width:150px;');
|
2010-08-23 19:15:18 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// $combolist .= html_print_input_hidden('hidden_options',$hidden_options, true);
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// $combolist .= '</form>';
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
// $buttons['combolist'] = $combolist;
|
2010-07-23 14:14:07 +02:00
|
|
|
|
2012-06-18 13:22:13 +02:00
|
|
|
$title = '';
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/op_network.png";
|
2012-07-10 13:03:00 +02:00
|
|
|
switch ($activeTab) {
|
2010-07-23 14:14:07 +02:00
|
|
|
case 'topology':
|
2012-07-10 13:03:00 +02:00
|
|
|
$title = __('Topology view');
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/op_network.png";
|
2012-07-10 13:03:00 +02:00
|
|
|
break;
|
2010-07-23 14:14:07 +02:00
|
|
|
case 'groups':
|
2012-07-10 13:03:00 +02:00
|
|
|
$title = __('Groups view');
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/group.png";
|
2012-07-10 13:03:00 +02:00
|
|
|
break;
|
2010-07-23 14:14:07 +02:00
|
|
|
case 'policies':
|
2012-07-10 13:03:00 +02:00
|
|
|
$title = __('Policies view');
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/policies_mc.png";
|
2012-07-10 13:03:00 +02:00
|
|
|
break;
|
2015-05-25 12:55:18 +02:00
|
|
|
case 'dynamic':
|
2014-08-21 15:56:48 +02:00
|
|
|
$title = __('Dynamic view');
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/dynamic_network_icon.png";
|
2013-07-25 18:52:45 +02:00
|
|
|
break;
|
2015-04-09 14:05:23 +02:00
|
|
|
case 'radial_dynamic':
|
2014-08-21 15:56:48 +02:00
|
|
|
$title = __('Radial dynamic view');
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon = "images/radial_dynamic_network_icon.png";
|
2014-08-21 13:41:30 +02:00
|
|
|
break;
|
2008-07-11 22:20:43 +02:00
|
|
|
}
|
2008-06-30 10:11:10 +02:00
|
|
|
|
2012-07-10 13:03:00 +02:00
|
|
|
if (!empty($name)) {
|
2011-07-12 15:11:33 +02:00
|
|
|
$title .= " » ". mb_substr($name, 0, 25);
|
2010-08-23 19:15:18 +02:00
|
|
|
}
|
2010-07-23 14:14:07 +02:00
|
|
|
|
2013-05-30 16:28:18 +02:00
|
|
|
ui_print_page_header (__('Network map') . " - " . $title,
|
2015-04-09 14:05:23 +02:00
|
|
|
$icon, false, "network_map", false, $buttons);
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-01-23 08:59:42 +01:00
|
|
|
if ((tags_has_user_acl_tags()) && (!$strict_user)) {
|
2013-01-10 17:00:30 +01:00
|
|
|
ui_print_tags_warning();
|
|
|
|
}
|
|
|
|
|
2012-07-10 13:03:00 +02:00
|
|
|
if ($delete_networkmap || $add_networkmap || $save_networkmap) {
|
2010-07-30 11:03:23 +02:00
|
|
|
echo $message;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CONFIGURATION FORM
|
|
|
|
|
|
|
|
// Layout selection
|
|
|
|
$layout_array = array (
|
2012-07-10 13:03:00 +02:00
|
|
|
'circular' => 'circular',
|
|
|
|
'radial' => 'radial',
|
|
|
|
'spring1' => 'spring 1',
|
|
|
|
'spring2' => 'spring 2',
|
|
|
|
'flat' => 'flat');
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2012-04-02 Dario Rodriguez <dario.rodriguez@artica.es>
*operation/visual_console/render_view.php,
operation/visual_console/index.php,
operation/agentes/networkmap.php,
operation/servers/view_server.php,
operation/servers/recon_view.php,
operation/servers/view_server_detail.php,
operation/menu.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
general/header.php,
godmode/servers/modificar_server.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
godmode/reporting/graphs.php: Merged changes in menu structure
from 4.0.2 to trunk version
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5860 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-04-02 09:53:24 +02:00
|
|
|
$options_form = '<form action="index.php?sec=network&sec2=operation/agentes/networkmap&id_networkmap='.$id_networkmap.'&tab='.$activeTab.'&pure='.$pure.'&center='.$center.'" method="post">';
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Fill an array with the form inputs
|
|
|
|
$form_elems = array();
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Name
|
|
|
|
$element = __('Name') . ' ' .
|
2015-07-22 13:02:47 +02:00
|
|
|
html_print_input_text ('name', io_safe_output($name), '', 25, 50, true);
|
2015-03-31 12:26:29 +02:00
|
|
|
if ($activeTab == 'groups')
|
|
|
|
$element .= clippy_context_help("topology_group");
|
|
|
|
$form_elems[] = $element;
|
|
|
|
|
|
|
|
// Store group
|
|
|
|
$form_elems[] = __('Store group') . ' ' .
|
|
|
|
html_print_select_groups(false, 'AR', false, 'store_group', $store_group, '', 'All', 0, true);
|
|
|
|
|
|
|
|
// Group
|
|
|
|
$form_elems[] = __('Group') . ' ' .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
html_print_select_groups(false, 'AR', false, 'group', $group, '', 'All', 0, true);
|
2015-03-31 12:26:29 +02:00
|
|
|
|
2015-04-23 13:04:54 +02:00
|
|
|
// Free text
|
|
|
|
if ($activeTab != 'radial_dynamic') {
|
|
|
|
$form_elems[] = __('Free text for search (*):') . ' ' .
|
|
|
|
html_print_input_text('text_filter', $text_filter, '', 25, 100, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Module group
|
2014-08-21 15:56:48 +02:00
|
|
|
if ($activeTab == 'groups' || $activeTab == 'policies' || $activeTab == 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Module group') . ' ' .
|
2014-07-17 16:28:59 +02:00
|
|
|
html_print_select_from_sql ('
|
|
|
|
SELECT id_mg, name
|
|
|
|
FROM tmodule_group', 'module_group', $module_group, '', 'All', 0, true);
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
2013-05-30 16:28:18 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Layout
|
2015-05-25 12:55:18 +02:00
|
|
|
if ($activeTab != 'dynamic' && $activeTab != 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Layout') . ' ' .
|
2013-07-25 18:52:45 +02:00
|
|
|
html_print_select ($layout_array, 'layout', $layout, '', '', '', true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Depth
|
2012-07-10 13:03:00 +02:00
|
|
|
if ($activeTab == 'groups') {
|
2013-05-30 16:28:18 +02:00
|
|
|
$depth_levels = array(
|
|
|
|
'all' => __('All'),
|
|
|
|
'agent' => __('Agents'),
|
|
|
|
'group' => __('Groups'));
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Depth') . ' ' .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
html_print_select ($depth_levels, 'depth', $depth, '', '', '', true, false, false);
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
2013-07-02 11:44:10 +02:00
|
|
|
|
2015-04-23 13:04:54 +02:00
|
|
|
// Interfaces
|
|
|
|
if ($activeTab == 'topology') {
|
|
|
|
$form_elems[] = __('Show interfaces') . ' ' .
|
|
|
|
html_print_checkbox ('show_snmp_modules', '1', $show_snmp_modules, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// No overlap
|
2015-05-25 12:55:18 +02:00
|
|
|
if ($activeTab != 'dynamic' && $activeTab != 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('No Overlap') . ' ' .
|
2013-07-25 18:52:45 +02:00
|
|
|
html_print_checkbox ('nooverlap', '1', $nooverlap, true);
|
|
|
|
}
|
2013-05-30 16:28:18 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Modules with alerts
|
|
|
|
if (($activeTab == 'groups' || $activeTab == 'policies') && $depth == 'all') {
|
|
|
|
$form_elems[] = __('Only modules with alerts') . ' ' .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
html_print_checkbox ('modwithalerts', '1', $modwithalerts, true);
|
2015-03-31 12:26:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hide policy modules
|
|
|
|
if ($activeTab == 'groups') {
|
|
|
|
if ($config['enterprise_installed']) {
|
|
|
|
$form_elems[] = __('Hide policy modules') . ' ' .
|
|
|
|
html_print_checkbox ('hidepolicymodules', '1', $hidepolicymodules, true);
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Simple
|
2015-05-25 12:55:18 +02:00
|
|
|
if ($activeTab != 'dynamic' && $activeTab != 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Simple') . ' ' .
|
2013-07-25 18:52:45 +02:00
|
|
|
html_print_checkbox ('simple', '1', $simple, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Regenerate
|
2015-05-25 12:55:18 +02:00
|
|
|
if ($activeTab != 'dynamic' && $activeTab != 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Regenerate') . ' ' .
|
2013-07-25 18:52:45 +02:00
|
|
|
html_print_checkbox ('regen', '1', $regen, true);
|
|
|
|
}
|
2013-07-02 11:44:10 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Zoom
|
2010-07-30 11:03:23 +02:00
|
|
|
if ($pure == "1") {
|
|
|
|
$zoom_array = array (
|
|
|
|
'1' => 'x1',
|
|
|
|
'1.2' => 'x2',
|
|
|
|
'1.6' => 'x3',
|
|
|
|
'2' => 'x4',
|
|
|
|
'2.5' => 'x5',
|
|
|
|
'5' => 'x10',
|
|
|
|
);
|
2012-07-10 13:03:00 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Zoom') . ' ' .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
html_print_select ($zoom_array, 'zoom', $zoom, '', '', '', true, false, false, false);
|
2013-07-02 11:44:10 +02:00
|
|
|
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
2013-05-30 16:28:18 +02:00
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Font
|
2015-05-25 12:55:18 +02:00
|
|
|
if ($activeTab != 'dynamic' && $activeTab != 'radial_dynamic') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Font') . ' ' .
|
2013-07-25 18:52:45 +02:00
|
|
|
html_print_input_text ('font_size', $font_size, $alt = 'Font size (in pt)', 2, 4, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Don't show subgroups
|
2014-07-17 16:28:59 +02:00
|
|
|
if (($activeTab == 'groups') || ($activeTab == 'topology')) {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Don\'t show subgroups:') .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
ui_print_help_tip(__('Only run with it is filter for any group'), true) .
|
|
|
|
' ' .
|
|
|
|
html_print_checkbox ('dont_show_subgroups', '1', $dont_show_subgroups, true);
|
2010-07-30 11:03:23 +02:00
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// L2 network
|
2014-03-19 17:43:08 +01:00
|
|
|
if ($activeTab == 'topology') {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('L2 network interfaces') . ' ' .
|
2014-03-19 17:43:08 +01:00
|
|
|
html_print_checkbox ('l2_network', '1', $l2_network, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
// Distance between nodes
|
2014-03-19 17:43:08 +01:00
|
|
|
if ($nooverlap == 1) {
|
2015-03-31 12:26:29 +02:00
|
|
|
$form_elems[] = __('Distance between nodes') . ' ' .
|
2014-03-19 17:43:08 +01:00
|
|
|
html_print_input_text ('ranksep', $ranksep, __('Separation between elements in the map (in Non-overlap mode)'), 3, 4, true);
|
|
|
|
}
|
|
|
|
|
2015-03-31 12:26:29 +02:00
|
|
|
unset($table);
|
2015-04-23 13:04:54 +02:00
|
|
|
$table->width = '100%';
|
|
|
|
$table->class = 'databox filters';
|
2015-03-31 12:26:29 +02:00
|
|
|
$table->data = array();
|
|
|
|
|
2015-04-23 13:04:54 +02:00
|
|
|
$max_col = 4;
|
2015-03-31 12:26:29 +02:00
|
|
|
$col = 0;
|
|
|
|
$row = 0;
|
|
|
|
|
|
|
|
foreach ($form_elems as $key => $element) {
|
|
|
|
if ($col >= $max_col) {
|
|
|
|
$col = 0;
|
|
|
|
$row++;
|
|
|
|
}
|
2015-04-23 13:04:54 +02:00
|
|
|
$table->size[] = "25%";
|
2015-03-31 12:26:29 +02:00
|
|
|
$table->data[$row][$col] = $element;
|
|
|
|
$col++;
|
|
|
|
}
|
|
|
|
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
$options_form .= html_print_input_hidden('update_networkmap',1, true) .
|
|
|
|
html_print_input_hidden('hidden_options',0, true);
|
|
|
|
$options_form .= html_print_table ($table, true);
|
|
|
|
$options_form .= "<div style='width: " . $table->width . "; text-align: right;'>" .
|
2013-05-30 16:28:18 +02:00
|
|
|
html_print_submit_button (__('Refresh'), "updbutton", false, 'class="sub next"', true) .
|
2012-09-24 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.sql, pandoradb.postgreSQL.sql, pandoradb.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql: added the fields
"text_filter" and "dont_show_subgroups" for to new filters to
generate the networkmap.
* operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php,
include/functions_networkmap.php, include/functions_servers.php:
added the new filters for free text for agents and hidden the
subgroups of any group in the group networkmap.
* extensions/resource_registration.php,
operation/agentes/networkmap.php, general/header.php,
godmode/netflow/nf_report_form.php,
godmode/agentes/module_manager.php, include/functions_groups.php,
include/auth/ldap.php, operation/agentes/estado_ultimopaquete.php,
include/functions.php, include/functions_db.php: cleaned source code
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6995 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-24 13:59:05 +02:00
|
|
|
"</div>";
|
|
|
|
$options_form .= '</form>';
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2011-04-13 18:11:02 +02:00
|
|
|
ui_toggle($options_form, __('Map options'), '', $hidden_options);
|
2010-07-30 11:03:23 +02:00
|
|
|
|
2015-04-09 14:05:23 +02:00
|
|
|
switch ($activeTab) {
|
|
|
|
case 'groups':
|
|
|
|
require_once('operation/agentes/networkmap.groups.php');
|
|
|
|
break;
|
|
|
|
case 'policies':
|
|
|
|
require_once(ENTERPRISE_DIR . '/operation/policies/networkmap.policies.php');
|
|
|
|
break;
|
2015-05-25 12:55:18 +02:00
|
|
|
case 'dynamic':
|
2015-04-09 14:05:23 +02:00
|
|
|
require_once('operation/agentes/networkmap.dinamic.php');
|
|
|
|
break;
|
|
|
|
case 'radial_dynamic':
|
|
|
|
require_once('operation/agentes/networkmap.dinamic.php');
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
case 'topology':
|
|
|
|
require_once('operation/agentes/networkmap.topology.php');
|
|
|
|
break;
|
2008-06-17 17:47:13 +02:00
|
|
|
}
|
2013-04-10 09:57:54 +02:00
|
|
|
?>
|