2009-04-29 09:43:01 +02:00
|
|
|
<?php
|
2007-06-08 17:55:53 +02:00
|
|
|
|
2009-06-08 20:21:21 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2010-03-04 17:08:09 +01:00
|
|
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
2009-06-08 20:21:21 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2007-06-08 17:55:53 +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.
|
2007-06-08 17:55:53 +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.
|
|
|
|
|
2010-03-03 18:10:37 +01:00
|
|
|
global $config;
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
require_once ($config['homedir'] . '/include/functions_visual_map.php');
|
2011-02-16 19:39:28 +01:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// ACL for the general permission
|
|
|
|
$vconsoles_read = check_acl ($config['id_user'], 0, "VR");
|
|
|
|
$vconsoles_write = check_acl ($config['id_user'], 0, "VW");
|
|
|
|
$vconsoles_manage = check_acl ($config['id_user'], 0, "VM");
|
|
|
|
|
|
|
|
if (!$vconsoles_read && !$vconsoles_write && !$vconsoles_manage) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access map builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
$pure = (int)get_parameter('pure', 0);
|
|
|
|
$hack_metaconsole = '';
|
|
|
|
if (defined('METACONSOLE'))
|
|
|
|
$hack_metaconsole = '../../';
|
|
|
|
|
|
|
|
if (!defined('METACONSOLE')) {
|
2015-06-16 17:44:15 +02:00
|
|
|
ui_print_page_header(
|
|
|
|
__('Reporting') .' » ' . __('Visual Console'),
|
|
|
|
"images/op_reporting.png", false, "map_builder");
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
}
|
2010-02-22 20:03:55 +01:00
|
|
|
|
2010-04-13 19:45:51 +02:00
|
|
|
$id_layout = (int) get_parameter ('id_layout');
|
|
|
|
$copy_layout = (bool) get_parameter ('copy_layout');
|
2010-04-14 09:59:52 +02:00
|
|
|
$delete_layout = (bool) get_parameter ('delete_layout');
|
2016-01-28 11:57:32 +01:00
|
|
|
$refr = (int) get_parameter('refr', $config['vc_refr']);
|
2015-07-08 16:09:00 +02:00
|
|
|
$offset = (int) get_parameter('offset', 0);
|
|
|
|
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
|
2017-10-20 11:44:58 +02:00
|
|
|
$search = (string) get_parameter("search","");
|
|
|
|
$ag_group = (int)get_parameter("ag_group",0);
|
|
|
|
$recursion = get_parameter("recursion",0);
|
2010-04-14 09:59:52 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($delete_layout || $copy_layout) {
|
|
|
|
// Visual console required
|
|
|
|
if (empty($id_layout)) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access map builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
2010-04-14 09:59:52 +02:00
|
|
|
}
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
$group_id = db_get_value("id_group", "tlayout", "id", $id_layout);
|
|
|
|
if ($group_id === false) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access map builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// ACL for the visual console
|
|
|
|
// $vconsole_read = check_acl ($config['id_user'], $group_id, "VR");
|
|
|
|
$vconsole_write = check_acl ($config['id_user'], $group_id, "VW");
|
|
|
|
$vconsole_manage = check_acl ($config['id_user'], $group_id, "VM");
|
2015-06-16 17:44:15 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
if (!$vconsole_write && !$vconsole_manage) {
|
|
|
|
db_pandora_audit("ACL Violation",
|
|
|
|
"Trying to access map builder");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($delete_layout) {
|
2015-06-16 17:44:15 +02:00
|
|
|
db_process_sql_delete('tlayout_data',
|
|
|
|
array ('id_layout' => $id_layout));
|
|
|
|
$result = db_process_sql_delete('tlayout',
|
|
|
|
array ('id' => $id_layout));
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($result) {
|
2015-06-16 17:44:15 +02:00
|
|
|
db_pandora_audit(
|
|
|
|
"Visual console builder", "Delete visual console #$id_layout");
|
2015-04-09 14:00:37 +02:00
|
|
|
ui_print_success_message(__('Successfully deleted'));
|
|
|
|
db_clean_cache();
|
|
|
|
}
|
|
|
|
else {
|
2015-06-16 17:44:15 +02:00
|
|
|
db_pandora_audit(
|
|
|
|
"Visual console builder", "Fail try to delete visual console #$id_layout");
|
|
|
|
ui_print_error_message(
|
|
|
|
__('Not deleted. Error deleting data'));
|
2015-04-09 14:00:37 +02:00
|
|
|
}
|
|
|
|
$id_layout = 0;
|
|
|
|
}
|
2015-06-16 17:44:15 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($copy_layout) {
|
|
|
|
// Number of inserts
|
|
|
|
$ninsert = (int) 0;
|
2012-12-04 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
include/functions_visual_map_editor.php,
operation/reporting/reporting_xml.php,
operation/agentes/exportdata.excel.php,
operation/agentes/ver_agente.php,
operation/agentes/status_monitor.php,
operation/agentes/alerts_status.php,
operation/agentes/exportdata.csv.php: uploaded the changes of source
code style previous to my next commit for to make the next commit
more easy.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7224 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-04 13:21:39 +01:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// Return from DB the source layout
|
2015-06-16 17:44:15 +02:00
|
|
|
$layout_src = db_get_all_rows_filter("tlayout",
|
|
|
|
array("id" => $id_layout));
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// Name of dst
|
2015-06-16 17:44:15 +02:00
|
|
|
$name_dst = get_parameter ("name_dst",
|
|
|
|
$layout_src[0]['name'] . " copy");
|
2015-04-09 14:00:37 +02:00
|
|
|
|
|
|
|
// Create the new Console
|
|
|
|
$idGroup = $layout_src[0]['id_group'];
|
|
|
|
$background = $layout_src[0]['background'];
|
|
|
|
$height = $layout_src[0]['height'];
|
|
|
|
$width = $layout_src[0]['width'];
|
|
|
|
$visualConsoleName = $name_dst;
|
|
|
|
|
2015-06-16 17:44:15 +02:00
|
|
|
$values = array(
|
|
|
|
'name' => $visualConsoleName,
|
|
|
|
'id_group' => $idGroup,
|
|
|
|
'background' => $background,
|
|
|
|
'height' => $height,
|
|
|
|
'width' => $width);
|
2015-04-09 14:00:37 +02:00
|
|
|
$result = db_process_sql_insert('tlayout', $values);
|
|
|
|
|
|
|
|
$idNewVisualConsole = $result;
|
|
|
|
|
|
|
|
if ($result) {
|
|
|
|
$ninsert = 1;
|
2011-08-29 14:25:33 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// Return from DB the items of the source layout
|
2015-06-16 17:44:15 +02:00
|
|
|
$data_layout_src = db_get_all_rows_filter(
|
|
|
|
"tlayout_data",
|
|
|
|
array("id_layout" => $id_layout));
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
if (!empty($data_layout_src)) {
|
2010-04-13 19:45:51 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
//By default the id parent 0 is always 0.
|
|
|
|
$id_relations = array(0 => 0);
|
2011-08-29 14:25:33 +02:00
|
|
|
|
2015-06-16 17:44:15 +02:00
|
|
|
for ($a = 0; $a < count($data_layout_src); $a++) {
|
2015-04-09 14:00:37 +02:00
|
|
|
|
|
|
|
// Changing the source id by the new visual console id
|
|
|
|
$data_layout_src[$a]['id_layout'] = $idNewVisualConsole;
|
|
|
|
|
|
|
|
$old_id = $data_layout_src[$a]['id'];
|
|
|
|
|
|
|
|
// Unsetting the source's id
|
|
|
|
unset($data_layout_src[$a]['id']);
|
2011-08-29 14:25:33 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
// Configure the cloned Console
|
2015-06-16 17:44:15 +02:00
|
|
|
$result = db_process_sql_insert('tlayout_data',
|
|
|
|
$data_layout_src[$a]);
|
2015-04-09 14:00:37 +02:00
|
|
|
|
|
|
|
$id_relations[$old_id] = 0;
|
|
|
|
|
|
|
|
if ($result !== false) {
|
2015-06-08 13:13:09 +02:00
|
|
|
$id_relations[$old_id] = $result;
|
2015-04-09 14:00:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($result)
|
|
|
|
$ninsert++;
|
|
|
|
}// for each item of console
|
|
|
|
|
|
|
|
$inserts = count($data_layout_src) + 1;
|
|
|
|
|
|
|
|
// If the number of inserts is correct, the copy is completed
|
|
|
|
if ($ninsert == $inserts) {
|
|
|
|
|
|
|
|
//Update the ids of parents
|
2015-06-16 17:44:15 +02:00
|
|
|
$items = db_get_all_rows_filter("tlayout_data",
|
|
|
|
array("id_layout" => $idNewVisualConsole));
|
2011-08-29 14:25:33 +02:00
|
|
|
|
2015-04-09 14:00:37 +02:00
|
|
|
foreach ($items as $item) {
|
|
|
|
$new_parent = $id_relations[$item['parent_item']];
|
|
|
|
|
|
|
|
db_process_sql_update('tlayout_data',
|
2015-06-16 17:44:15 +02:00
|
|
|
array('parent_item' => $new_parent),
|
|
|
|
array('id' => $item['id']));
|
2015-04-09 14:00:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ui_print_success_message(__('Successfully copied'));
|
|
|
|
db_clean_cache();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
ui_print_error_message(__('Not copied. Error copying data'));
|
2011-08-29 14:25:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
2015-04-09 14:00:37 +02:00
|
|
|
// If the array is empty the copy is completed
|
|
|
|
ui_print_success_message(__('Successfully copied'));
|
|
|
|
db_clean_cache();
|
2010-04-13 19:45:51 +02:00
|
|
|
}
|
|
|
|
}
|
2014-07-31 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_networkmap.php, include/functions_graph.php,
include/db/postgresql.php, include/db/oracle.php,
include/functions_api.php, extensions/agents_alerts.php,
operation/search_main.php, operation/search_agents.getdata.php,
operation/agentes/status_monitor.php,
operation/agentes/networkmap.topology.php,
operation/agentes/ver_agente.php,
operation/search_modules.getdata.php, operation/search_results.php,
operation/events/events_list.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_template.php,
godmode/modules/manage_network_components_form.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php: tiny fixes for the improve the
support of postgreSQL databases.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10368 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-07-31 16:27:43 +02:00
|
|
|
else {
|
2015-04-09 14:00:37 +02:00
|
|
|
ui_print_error_message(__('Not copied. Error copying data'));
|
2010-04-13 19:45:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-20 11:44:58 +02:00
|
|
|
if ($ag_group > 0) {
|
|
|
|
|
|
|
|
$ag_groups = array();
|
|
|
|
$ag_groups = (array)$ag_group;
|
|
|
|
if ($recursion) {
|
|
|
|
$ag_groups = groups_get_id_recursive($ag_group, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<table class='databox filters' width='100%' style='font-weight: bold; margin-bottom: 10px;'>
|
|
|
|
<tr>";
|
|
|
|
if(!is_metaconsole()){
|
|
|
|
echo "<form method='post'
|
|
|
|
action='index.php?sec=network&sec2=godmode/reporting/map_builder'>";
|
|
|
|
} else {
|
|
|
|
echo "<form method='post'
|
|
|
|
action='index.php?sec=screen&sec2=screens/screens&action=visualmap'>";
|
|
|
|
}
|
|
|
|
|
|
|
|
echo "<td style='width:33%;'>";
|
|
|
|
echo __('Search') . ' ';
|
|
|
|
html_print_input_text ("search", $search, '', 50);
|
|
|
|
|
|
|
|
echo "</td>";
|
|
|
|
echo "<td style='width:25%;'>";
|
|
|
|
|
|
|
|
echo __('Group') . ' ';
|
|
|
|
$own_info = get_user_info($config['id_user']);
|
|
|
|
if (!$own_info['is_admin'] && !check_acl ($config['id_user'], 0, "AW"))
|
|
|
|
$return_all_group = false;
|
|
|
|
else
|
|
|
|
$return_all_group = true;
|
|
|
|
html_print_select_groups(false, "AR", $return_all_group, "ag_group", $ag_group, 'this.form.submit();', '', 0, false, false, true, '', false);
|
|
|
|
|
|
|
|
echo "<td style='width:25%;'>";
|
|
|
|
echo __('Group Recursion') . ' ';
|
|
|
|
html_print_checkbox ("recursion", 1, $recursion, false, false, 'this.form.submit()');
|
|
|
|
|
|
|
|
echo "</td><td style='width:22%;'>";
|
|
|
|
echo "<input name='search_visual_console' type='submit' class='sub search' value='".__('Search')."'>";
|
|
|
|
echo "</form>";
|
|
|
|
echo "</td>";
|
|
|
|
echo "</tr></table>";
|
|
|
|
|
2015-06-16 17:44:15 +02:00
|
|
|
$table = new stdClass();
|
2015-04-23 17:52:16 +02:00
|
|
|
$table->width = '100%';
|
2015-06-12 15:50:46 +02:00
|
|
|
$table->class = 'databox data';
|
2010-03-31 13:44:03 +02:00
|
|
|
$table->data = array ();
|
|
|
|
$table->head = array ();
|
|
|
|
$table->head[0] = __('Map name');
|
|
|
|
$table->head[1] = __('Group');
|
|
|
|
$table->head[2] = __('Items');
|
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
|
|
|
|
2014-03-28 17:33:26 +01:00
|
|
|
// Fix: IW was the old ACL for report editing, now is RW
|
|
|
|
//Only for RW flag
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($vconsoles_write || $vconsoles_manage) {
|
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
|
|
|
$table->head[3] = __('Copy');
|
|
|
|
$table->head[4] = __('Delete');
|
2015-06-12 15:50:46 +02:00
|
|
|
$table->size[3] = "6%";
|
|
|
|
$table->size[4] = "6%";
|
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
|
|
|
}
|
|
|
|
|
2010-03-31 13:44:03 +02:00
|
|
|
$table->align = array ();
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
$table->align[0] = 'left';
|
2015-04-23 17:52:16 +02:00
|
|
|
$table->align[1] = 'left';
|
|
|
|
$table->align[2] = 'left';
|
|
|
|
$table->align[3] = 'left';
|
|
|
|
$table->align[4] = 'left';
|
2010-03-31 13:44:03 +02:00
|
|
|
|
2014-01-23 15:26:41 +01:00
|
|
|
// Only display maps of "All" group if user is administrator
|
2015-04-09 14:00:37 +02:00
|
|
|
// or has "VR" privileges, otherwise show only maps of user group
|
2015-07-08 16:09:00 +02:00
|
|
|
$filters['offset'] = $offset;
|
|
|
|
$filters['limit'] = $pagination;
|
2017-10-20 11:44:58 +02:00
|
|
|
if(!empty($search)){
|
|
|
|
$filters['name'] = io_safe_input($search);
|
|
|
|
}
|
|
|
|
|
|
|
|
if($ag_group){
|
|
|
|
$filters['group'] = array_flip($ag_groups);
|
|
|
|
}
|
|
|
|
|
2011-02-16 19:39:28 +01:00
|
|
|
$own_info = get_user_info ($config['id_user']);
|
2015-07-08 16:09:00 +02:00
|
|
|
if (!defined('METACONSOLE')) {
|
2017-10-20 11:44:58 +02:00
|
|
|
$url = 'index.php?sec=network&sec2=godmode/reporting/map_builder&recursion='.$recursion.'&ag_group='.$ag_group.'&search='.$search.'&pagination='.$pagination;
|
2015-07-08 16:09:00 +02:00
|
|
|
}
|
|
|
|
else {
|
2017-10-20 11:44:58 +02:00
|
|
|
$url = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&recursion='.$recursion.'&ag_group='.$ag_group.'&search='.$search.'&pagination='.$pagination;
|
2015-07-08 16:09:00 +02:00
|
|
|
}
|
|
|
|
if ($own_info['is_admin'] || $vconsoles_read) {
|
2017-10-20 11:44:58 +02:00
|
|
|
if($ag_group){
|
|
|
|
$maps = visual_map_get_user_layouts (0,false,$filters,false);
|
|
|
|
unset($filters['offset']);
|
|
|
|
unset($filters['limit']);
|
|
|
|
$total_maps = count(visual_map_get_user_layouts(0,false,$filters,false));
|
|
|
|
}else{
|
|
|
|
$maps = visual_map_get_user_layouts (0,false,$filters);
|
|
|
|
unset($filters['offset']);
|
|
|
|
unset($filters['limit']);
|
|
|
|
$total_maps = count(visual_map_get_user_layouts(0,false,$filters));
|
|
|
|
}
|
2015-07-16 15:12:47 +02:00
|
|
|
}
|
|
|
|
else {
|
2015-06-16 17:44:15 +02:00
|
|
|
$maps = visual_map_get_user_layouts ($config['id_user'], false,
|
2015-07-08 16:09:00 +02:00
|
|
|
$filters, false);
|
2017-10-20 11:44:58 +02:00
|
|
|
unset($filters['offset']);
|
|
|
|
unset($filters['limit']);
|
2015-07-08 16:09:00 +02:00
|
|
|
$total_maps = count(visual_map_get_user_layouts ($config['id_user'], false,
|
2017-10-20 11:44:58 +02:00
|
|
|
$filters, false));
|
2015-07-08 16:09:00 +02:00
|
|
|
}
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!$maps && !is_metaconsole()) {
|
2017-10-20 11:44:58 +02:00
|
|
|
$total = count(visual_map_get_user_layouts ($config['id_user'], false,
|
|
|
|
false, false));
|
|
|
|
if(!$total){
|
|
|
|
require_once ($config['homedir'] . "/general/firts_task/map_builder.php");
|
|
|
|
} else {
|
|
|
|
ui_print_info_message(
|
|
|
|
array(
|
|
|
|
'no_close'=>false,
|
|
|
|
'message'=> __('No available data to show')));
|
|
|
|
}
|
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
|
|
|
}
|
2016-09-08 16:06:12 +02:00
|
|
|
elseif (!$maps && is_metaconsole()) {
|
2017-10-20 11:44:58 +02:00
|
|
|
$total = count(visual_map_get_user_layouts ($config['id_user'], false,
|
|
|
|
false, false));
|
|
|
|
if(!$total){
|
|
|
|
ui_print_info_message(
|
|
|
|
array(
|
|
|
|
'no_close'=>true,
|
|
|
|
'message'=> __('There are no visual console defined yet.')));
|
|
|
|
}else{
|
|
|
|
ui_print_info_message(
|
|
|
|
array(
|
|
|
|
'no_close'=>false,
|
|
|
|
'message'=> __('No available data to show')));
|
|
|
|
}
|
|
|
|
|
2015-07-06 18:18:20 +02:00
|
|
|
}
|
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
|
|
|
else {
|
2015-07-08 16:09:00 +02:00
|
|
|
ui_pagination ($total_maps, $url, $offset, $pagination);
|
|
|
|
|
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
|
|
|
foreach ($maps as $map) {
|
2015-04-09 14:00:37 +02:00
|
|
|
// ACL for the visual console permission
|
2015-06-16 17:44:15 +02:00
|
|
|
$vconsole_write = check_acl ($config['id_user'],
|
|
|
|
$map['id_group'], "VW");
|
|
|
|
$vconsole_manage = check_acl ($config['id_user'],
|
|
|
|
$map['id_group'], "VM");
|
2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:57:00 +01: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
|
|
|
$data = array ();
|
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!is_metaconsole()) {
|
2016-05-18 11:40:20 +02:00
|
|
|
$data[0] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
$map['id'].'&refr=' . $refr . '">'.$map['name'].'</a>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$data[0] = '<a href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure .
|
|
|
|
'&id_visualmap=' . $map['id'].'&refr=' . $refr . '">'.$map['name'].'</a>';
|
|
|
|
}
|
2007-06-08 17:55:53 +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
|
|
|
$data[1] = ui_print_group_icon ($map['id_group'], true);
|
|
|
|
$data[2] = db_get_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']);
|
|
|
|
|
2014-03-28 17:33:26 +01:00
|
|
|
// Fix: IW was the old ACL for report editing, now is RW
|
2015-04-09 14:00:37 +02:00
|
|
|
if ($vconsole_write || $vconsole_manage) {
|
2012-08-02 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql, include/functions_config.php: fixed the
"list_ACL_IPs_for_API" update.
* operation/events/events_marquee.php, godmode/setup/setup.php,
godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_list.builder.php,
godmode/alerts/configure_alert_special_days.php,
include/functions_api.php, include/functions_ui.php,
include/functions_netflow.php, include/functions_alerts.php,
include/functions_menu.php, include/functions_messages.php: cleaned
source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6846 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-08-03 14:48:09 +02:00
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!is_metaconsole()) {
|
2016-05-18 11:40:20 +02:00
|
|
|
$data[3] = '<a class="copy_visualmap" href="index.php?sec=network&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
|
|
|
$data[4] = '<a class="delete_visualmap" href="index.php?sec=network&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
}
|
|
|
|
else {
|
2013-11-12 11:15:21 +01:00
|
|
|
$data[3] = '<a class="copy_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&copy_layout=1">'.html_print_image ("images/copy.png", true).'</a>';
|
|
|
|
$data[4] = '<a class="delete_visualmap" href="index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=' . $pure . '&id_layout='.$map['id'].'&delete_layout=1">'.html_print_image ("images/cross.png", true).'</a>';
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
}
|
2007-06-08 17:55:53 +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
|
|
|
array_push ($table->data, $data);
|
2009-08-14 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php, godmode/agentes/massive_config.php,
godmode/alerts/alert_list.php, godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, include/functions_db.php,
include/functions_html.php, operation/agentes/exportdata.php,
operation/agentes/ver_agente.php: very changes for add input text
autocomplete with ajax jquery for agent input in several forms. Add to form
this exportdata, graph_builder, map_builder.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-14 18:38:57 +02:00
|
|
|
}
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_table ($table);
|
2009-08-14 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/agent_manager.php, godmode/agentes/massive_config.php,
godmode/alerts/alert_list.php, godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, include/functions_db.php,
include/functions_html.php, operation/agentes/exportdata.php,
operation/agentes/ver_agente.php: very changes for add input text
autocomplete with ajax jquery for agent input in several forms. Add to form
this exportdata, graph_builder, map_builder.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1849 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-14 18:38:57 +02:00
|
|
|
}
|
2015-06-26 14:52:01 +02:00
|
|
|
if ($maps) {
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!is_metaconsole())
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
echo '<div class="action-buttons" style="width: 0px;">';
|
|
|
|
else
|
2015-07-06 17:10:51 +02:00
|
|
|
echo '<div class="" style="width: 100%; text-align: right;">';
|
2010-06-06 23:01:10 +02:00
|
|
|
}
|
2015-07-06 18:18:20 +02:00
|
|
|
if ($maps || defined("METACONSOLE")) {
|
2015-06-26 14:52:01 +02:00
|
|
|
if ($vconsoles_write || $vconsoles_manage) {
|
|
|
|
if (!defined('METACONSOLE')) {
|
2016-05-18 11:40:20 +02:00
|
|
|
echo '<form action="index.php?sec=network&sec2=godmode/reporting/visual_console_builder" method="post">';
|
2015-06-26 14:52:01 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<form action="index.php?sec=screen&sec2=screens/screens&action=visualmap&action2=new&operation=new_visualmap&tab=data&pure=' . $pure . '" method="post">';
|
|
|
|
}
|
|
|
|
html_print_input_hidden ('edit_layout', 1);
|
|
|
|
html_print_submit_button (__('Create'), '', false,
|
|
|
|
'class="sub next"');
|
|
|
|
echo '</form>';
|
2012-12-11 Miguel de Dios <miguel.dedios@artica.es>
* 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, pandoradb.sql,
pandoradb.postgreSQL.sql, pandoradb.oracle.sql: in the table
"tlayout_data" added the column "id_metaconsole" for to show
visualmaps in the metaconsole.
* operation/visual_console/render_view.php,
include/functions_visual_map.php, operation/agentes/ver_agente.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.editor.js,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/map_builder.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/agent.php, include/functions_visual_map_editor.php,
* operation/agentes/datos_agente.php,
include/functions_netflow.php: cleaned source code style.
* include/functions_ui.php: in function
"ui_require_javascript_file_enterprise" fixed when need a
enterprise javascript instead metaconsole enterprise path.
* include/javascript/pandora.js: fixed the function
"agent_changed_by_multiple_agents" that needs in the metaconsole.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-11 16:01:45 +01:00
|
|
|
}
|
2015-06-26 14:52:01 +02:00
|
|
|
echo '</div>';
|
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
|
|
|
}
|
2013-04-10 09:57:54 +02:00
|
|
|
?>
|