2006-07-12 15:43:41 +02:00
|
|
|
<?php
|
|
|
|
|
2009-06-08 20:17:33 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 21:51:46 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
2009-06-08 20:17:33 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2006-06-29 21:31:53 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
|
|
|
|
2006-06-29 21:31: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
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2006-06-29 21:31:53 +02:00
|
|
|
// GNU General Public License for more details.
|
2009-06-08 20:17:33 +02:00
|
|
|
|
2008-08-04 16:29:41 +02:00
|
|
|
if (! isset ($config['id_user'])) {
|
2006-12-15 18:39:11 +01:00
|
|
|
return;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2008-10-22 11:08:03 +02:00
|
|
|
|
2009-03-03 16:21:13 +01:00
|
|
|
require_once ('include/functions_menu.php');
|
2017-12-28 15:13:06 +01:00
|
|
|
include_once ($config["homedir"] . '/include/functions_visual_map.php');
|
2009-03-03 16:21:13 +01:00
|
|
|
|
2008-10-22 11:08:03 +02:00
|
|
|
enterprise_include ('operation/menu.php');
|
2006-12-15 18:39:11 +01:00
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation = array ();
|
|
|
|
$menu_operation['class'] = 'operation';
|
2009-03-02 Esteban Sanchez <estebans@artica.es>
* include/functions_menu.php: Added to repository. Functions for menu.
* operation/menu.php, godmode/menu.php: Added class to menu due to
changes in print_menu().
* general/main_menu.php: temp_print_menu() moved to functions_menu.php
* include/functions_themes.php: Added to repository. Implement
functions relative to themes (only CSS themes list at this moment).
* include/styles/pandora.css, include/styles/pandora_black.css,
include/styles/pandora_minimal.css, include/styles/pandora_red.css:
Added author, name and description comments to adopt to new
get_themes() interface.
* include/styles/pandora_width.css: Improved and make lighter by
simply rewrite some classes.
* include/functions.php: Added is_ajax().
* godmode/agentes/module_manager_editor.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php,
operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
operation/events/events.php, operation/messages/message.php: Use
is_ajax()
* godmode/setup/setup.php: Use enterprise_include() instead of manual
checking. Use get_css_themes() to show the theme list.
* include/styles/common.css: Added to repository. Minimal styles to
make pandora works and common with all the CSS themes.
* include/functions_ui.php: Added common.css file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 14:43:15 +01:00
|
|
|
|
2006-12-15 18:39:11 +01:00
|
|
|
// Agent read, Server read
|
2013-06-18 13:38:54 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AR")) {
|
2012-07-10 17:18:00 +02:00
|
|
|
//View agents
|
|
|
|
$menu_operation["estado"]["text"] = __('Monitoring');
|
|
|
|
$menu_operation["estado"]["sec2"] = "operation/agentes/tactical";
|
|
|
|
$menu_operation["estado"]["refr"] = 0;
|
|
|
|
$menu_operation["estado"]["id"] = "oper-agents";
|
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
|
|
|
|
2012-07-10 17:18:00 +02:00
|
|
|
$sub = array ();
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["view"]["text"] = __('Views');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["view"]["id"] = 'Views';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["view"]["type"] = "direct";
|
|
|
|
$sub["view"]["subtype"] = "nolink";
|
|
|
|
$sub["view"]["refr"] = 0;
|
2012-08-22 16:09:05 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2 = array ();
|
|
|
|
|
|
|
|
$sub2["operation/agentes/tactical"]["text"] = __('Tactical view');
|
|
|
|
$sub2["operation/agentes/tactical"]["refr"] = 0;
|
2012-08-22 16:09:05 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2["operation/agentes/group_view"]["text"] = __('Group view');
|
|
|
|
$sub2["operation/agentes/group_view"]["refr"] = 0;
|
2012-08-22 16:09:05 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2['operation/tree']['text'] = __('Tree view');
|
|
|
|
$sub2["operation/tree"]["refr"] = 0;
|
|
|
|
|
|
|
|
$sub2["operation/agentes/estado_agente"]["text"] = __('Agent detail');
|
|
|
|
$sub2["operation/agentes/estado_agente"]["refr"] = 0;
|
|
|
|
$sub2["operation/agentes/estado_agente"]["subsecs"] = array(
|
2012-07-10 17:18:00 +02:00
|
|
|
"operation/agentes/ver_agente");
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2["operation/agentes/status_monitor"]["text"] = __('Monitor detail');
|
|
|
|
$sub2["operation/agentes/status_monitor"]["refr"] = 0;
|
2012-07-10 17:18:00 +02:00
|
|
|
|
2017-10-24 13:51:34 +02:00
|
|
|
enterprise_hook ('tag_view_submenu');
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub2["operation/agentes/alerts_status"]["text"] = __('Alert detail');
|
|
|
|
$sub2["operation/agentes/alerts_status"]["refr"] = 0;
|
2012-07-10 17:18:00 +02:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["view"]["sub2"] = $sub2;
|
2012-07-10 17:18:00 +02:00
|
|
|
|
|
|
|
enterprise_hook ('inventory_menu');
|
2016-08-29 09:40:43 +02:00
|
|
|
|
|
|
|
if ($config['activate_netflow']) {
|
|
|
|
$sub["operation/netflow/nf_live_view"]["text"] = __('Netflow Live View');
|
|
|
|
$sub["operation/netflow/nf_live_view"]["id"] = 'Netflow Live View';
|
|
|
|
$sub["operation/netflow/nf_live_view"]["refr"] = 0;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
|
|
|
|
2013-01-11 17:02:10 +01:00
|
|
|
if ($config['log_collector'] == 1) {
|
|
|
|
enterprise_hook ('log_collector_menu');
|
|
|
|
}
|
2016-09-08 16:06:12 +02:00
|
|
|
//End of view agents
|
|
|
|
}
|
|
|
|
|
|
|
|
//SNMP Console
|
|
|
|
$sub2 = array();
|
|
|
|
if (check_acl ($config['id_user'], 0, "AR") || check_acl ($config['id_user'], 0, "AW") ) {
|
|
|
|
$sub2["operation/snmpconsole/snmp_view"]["text"] = __("SNMP console");
|
|
|
|
$sub2["operation/snmpconsole/snmp_browser"]["text"] = __("SNMP browser");
|
|
|
|
enterprise_hook ('snmpconsole_submenu');
|
|
|
|
}
|
|
|
|
if (check_acl ($config['id_user'], 0, "PM"))
|
|
|
|
$sub2["operation/snmpconsole/snmp_mib_uploader"]["text"] = __("MIB uploader");
|
|
|
|
|
|
|
|
if (check_acl ($config['id_user'], 0, "LW") || check_acl ($config['id_user'], 0, "LM")) {
|
|
|
|
$sub2["godmode/snmpconsole/snmp_filters"]["text"] = __("SNMP filters");
|
|
|
|
$sub2["godmode/snmpconsole/snmp_trap_generator"]["text"] = __("SNMP trap generator");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($sub2)) {
|
|
|
|
$sub["snmpconsole"]["sub2"] = $sub2;
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["snmpconsole"]["text"] = __('SNMP');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["snmpconsole"]["id"] = 'SNMP';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["snmpconsole"]["refr"] = 0;
|
2015-04-10 09:29:33 +02:00
|
|
|
$sub["snmpconsole"]["type"] = "direct";
|
|
|
|
$sub["snmpconsole"]["subtype"] = "nolink";
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
|
|
|
|
2018-01-16 15:41:35 +01:00
|
|
|
enterprise_hook ('cluster_menu');
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!empty($sub)) {
|
|
|
|
$menu_operation["estado"]["text"] = __('Monitoring');
|
|
|
|
$menu_operation["estado"]["sec2"] = "operation/agentes/tactical";
|
|
|
|
$menu_operation["estado"]["refr"] = 0;
|
|
|
|
$menu_operation["estado"]["id"] = "oper-agents";
|
|
|
|
$menu_operation["estado"]["sub"] = $sub;
|
2016-08-29 09:40:43 +02:00
|
|
|
}
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
//Start network view
|
|
|
|
$sub = array();
|
|
|
|
if (check_acl ($config['id_user'], 0, "MR") || check_acl ($config['id_user'], 0, "MW") || check_acl ($config['id_user'], 0, "MM")) {
|
2016-09-13 16:39:21 +02:00
|
|
|
//Network enterprise
|
|
|
|
$sub["operation/agentes/pandora_networkmap"]["text"] = __('Network map');
|
|
|
|
$sub["operation/agentes/pandora_networkmap"]["id"] = 'Network map';
|
|
|
|
$sub["operation/agentes/pandora_networkmap"]["refr"] = 0;
|
2012-07-10 17:18:00 +02:00
|
|
|
|
2016-04-29 15:31:22 +02:00
|
|
|
enterprise_hook ('transmap_console');
|
2016-08-29 09:40:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enterprise_hook ('services_menu');
|
|
|
|
|
2017-12-28 15:13:06 +01:00
|
|
|
if (check_acl ($config['id_user'], 0, "VR") || check_acl ($config['id_user'], 0, "VW") || check_acl ($config['id_user'], 0, "VM")) {
|
|
|
|
if(!isset($config['vc_favourite_view']) || $config['vc_favourite_view'] == 0){
|
|
|
|
//Visual console
|
|
|
|
$sub["godmode/reporting/map_builder"]["text"] = __('Visual console');
|
|
|
|
$sub["godmode/reporting/map_builder"]["id"] = 'Visual console';
|
2007-05-20 19:12:31 +02:00
|
|
|
}
|
2017-12-28 15:13:06 +01:00
|
|
|
else{
|
|
|
|
//Visual console favorite
|
|
|
|
$sub["godmode/reporting/visual_console_favorite"]["text"] = __('Visual console');
|
|
|
|
$sub["godmode/reporting/visual_console_favorite"]["id"] = 'Visual console';
|
|
|
|
}
|
|
|
|
|
|
|
|
if($config['vc_menu_items'] != 0){
|
|
|
|
//Set godomode path
|
|
|
|
if(!isset($config['vc_favourite_view']) || $config['vc_favourite_view'] == 0){
|
|
|
|
$sub["godmode/reporting/map_builder"]["subsecs"] = array(
|
|
|
|
"godmode/reporting/map_builder",
|
|
|
|
"godmode/reporting/visual_console_builder");
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$sub["godmode/reporting/visual_console_favorite"]["subsecs"] = array(
|
|
|
|
"godmode/reporting/map_builder",
|
|
|
|
"godmode/reporting/visual_console_builder");
|
|
|
|
}
|
|
|
|
|
|
|
|
//$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
|
|
|
$own_info = get_user_info($config['id_user']);
|
|
|
|
$returnAllGroups = 0;
|
|
|
|
if($own_info['is_admin']){
|
|
|
|
$returnAllGroups = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
$layouts = visual_map_get_user_layouts ($config['id_user'],false,false,$returnAllGroups,true);
|
2015-03-26 13:12:48 +01:00
|
|
|
|
2017-12-28 15:13:06 +01:00
|
|
|
$sub2 = array ();
|
|
|
|
|
|
|
|
if ($layouts === false) {
|
|
|
|
$layouts = array ();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$id = (int) get_parameter ('id', -1);
|
|
|
|
$break_max_console = false;
|
|
|
|
$max = $config['vc_menu_items'];
|
|
|
|
$i=0;
|
|
|
|
foreach ($layouts as $layout) {
|
|
|
|
$i++;
|
|
|
|
if ($i > $max) {
|
|
|
|
$break_max_console = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
$name = io_safe_output($layout['name']);
|
|
|
|
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["text"] = mb_substr ($name, 0, 19);
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["id"] = mb_substr ($name, 0, 19);
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["title"] = $name;
|
|
|
|
if (!empty($config['vc_refr'])) {
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["refr"] = $config['vc_refr'];
|
|
|
|
}
|
|
|
|
elseif (((int)get_parameter('refr', 0)) > 0) {
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["refr"] = (int)get_parameter('refr', 0);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$sub2["operation/visual_console/render_view&id=".$layout["id"]]["refr"] = 0;
|
|
|
|
}
|
2015-03-26 13:12:48 +01:00
|
|
|
}
|
2017-12-28 15:13:06 +01:00
|
|
|
|
|
|
|
if($break_max_console){
|
|
|
|
$sub2["godmode/reporting/visual_console_favorite"]["text"] = __('Show more') . " >";
|
|
|
|
$sub2["godmode/reporting/visual_console_favorite"]["id"] = "visual_favourite_console";
|
|
|
|
$sub2["godmode/reporting/visual_console_favorite"]["title"] = "show_more";
|
|
|
|
$sub2["godmode/reporting/visual_console_favorite"]["refr"] = 0;
|
2015-03-26 13:12:48 +01:00
|
|
|
}
|
2015-04-21 17:26:20 +02:00
|
|
|
|
2017-12-28 15:13:06 +01:00
|
|
|
if (!empty($sub2)){
|
|
|
|
if(!isset($config['vc_favourite_view']) || $config['vc_favourite_view'] == 0){
|
|
|
|
$sub["godmode/reporting/map_builder"]["sub2"] = $sub2;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$sub["godmode/reporting/visual_console_favorite"]["sub2"] = $sub2;
|
|
|
|
}
|
2015-03-26 13:12:48 +01:00
|
|
|
}
|
2017-12-28 15:13:06 +01:00
|
|
|
}
|
2007-05-20 19:12:31 +02:00
|
|
|
}
|
2016-09-08 16:06:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (check_acl ($config['id_user'], 0, "MR") || check_acl ($config['id_user'], 0, "MW") || check_acl ($config['id_user'], 0, "MM")) {
|
|
|
|
|
2016-08-29 16:09:11 +02:00
|
|
|
//INI GIS Maps
|
|
|
|
if ($config['activate_gis']) {
|
|
|
|
$sub["gismaps"]["text"] = __('GIS Maps');
|
|
|
|
$sub["gismaps"]["id"] = 'GIS Maps';
|
|
|
|
$sub["gismaps"]["type"] = "direct";
|
|
|
|
$sub["gismaps"]["subtype"] = "nolink";
|
|
|
|
$sub2 = array ();
|
|
|
|
$sub2["operation/gis_maps/gis_map"]["text"] = __("List of Gis maps");
|
|
|
|
$sub2["operation/gis_maps/gis_map"]["id"] = "List of Gis maps";
|
|
|
|
$gisMaps = db_get_all_rows_in_table ('tgis_map', 'map_name');
|
|
|
|
if ($gisMaps === false) {
|
|
|
|
$gisMaps = array ();
|
|
|
|
}
|
|
|
|
$id = (int) get_parameter ('id', -1);
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2016-08-29 16:09:11 +02:00
|
|
|
$own_info = get_user_info ($config['id_user']);
|
|
|
|
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
|
|
|
$own_groups = array_keys(users_get_groups($config['id_user'], "IR"));
|
|
|
|
else
|
|
|
|
$own_groups = array_keys(users_get_groups($config['id_user'], "IR", false));
|
|
|
|
|
|
|
|
foreach ($gisMaps as $gisMap) {
|
|
|
|
$is_in_group = in_array($gisMap['group_id'], $own_groups);
|
|
|
|
if (!$is_in_group) {
|
|
|
|
continue;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2016-08-29 16:09:11 +02:00
|
|
|
if (! check_acl ($config["id_user"], $gisMap["group_id"], "IR")) {
|
|
|
|
continue;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2016-08-29 16:09:11 +02:00
|
|
|
$sub2["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["text"] = mb_substr (io_safe_output($gisMap["map_name"]), 0, 15);
|
|
|
|
$sub2["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["id"] = mb_substr (io_safe_output($gisMap["map_name"]), 0, 15);
|
|
|
|
$sub2["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["title"] = io_safe_output($gisMap["map_name"]);
|
|
|
|
$sub2["operation/gis_maps/render_view&map_id=".$gisMap["id_tgis_map"]]["refr"] = 0;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2016-08-29 16:09:11 +02:00
|
|
|
|
|
|
|
$sub["gismaps"]["sub2"] = $sub2;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2016-09-08 16:06:12 +02:00
|
|
|
//END GIS Maps
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (!empty($sub)) {
|
|
|
|
$menu_operation["network"]["text"] = __('Topology maps');
|
|
|
|
$menu_operation["network"]["sec2"] = "operation/agentes/networkmap_list";
|
|
|
|
$menu_operation["network"]["refr"] = 0;
|
|
|
|
$menu_operation["network"]["id"] = "oper-networkconsole";
|
2016-08-29 09:40:43 +02:00
|
|
|
$menu_operation["network"]["sub"] = $sub;
|
2016-09-08 16:06:12 +02:00
|
|
|
}
|
2016-08-29 09:40:43 +02:00
|
|
|
//End networkview
|
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
// Reports read
|
2016-09-08 16:06:12 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "RR") || check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
// Reporting
|
|
|
|
$menu_operation["reporting"]["text"] = __('Reporting');
|
|
|
|
$menu_operation["reporting"]["sec2"] = "godmode/reporting/reporting_builder";
|
|
|
|
$menu_operation["reporting"]["id"] = "oper-reporting";
|
2016-01-28 11:57:32 +01:00
|
|
|
$menu_operation["reporting"]["refr"] = 300;
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub = array ();
|
2015-03-26 13:12:48 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/reporting/reporting_builder"]["text"] = __('Custom reporting');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/reporting/reporting_builder"]["id"] = 'Custom reporting';
|
2015-04-09 15:04:23 +02:00
|
|
|
//Set godomode path
|
|
|
|
$sub["godmode/reporting/reporting_builder"]["subsecs"] = array("godmode/reporting/reporting_builder",
|
|
|
|
"operation/reporting/reporting_viewer");
|
2015-03-26 13:12:48 +01:00
|
|
|
|
2012-07-10 17:18:00 +02:00
|
|
|
|
2013-01-29 Miguel de Dios <miguel.dedios@artica.es>
* godmode/modules/manage_network_components_form.php,
godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php, operation/menu.php,
operation/agentes/status_monitor.php,
operation/agentes/exportdata.excel.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, general/login_help_dialog.php,
general/shortcut_bar.php: uploaded a lost changes for to clean the
source code structure.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7538 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-01-29 11:03:20 +01:00
|
|
|
$sub["godmode/reporting/graphs"]["text"] = __('Custom graphs');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/reporting/graphs"]["id"] = 'Custom graphs';
|
2012-07-10 17:18:00 +02:00
|
|
|
//Set godomode path
|
|
|
|
$sub["godmode/reporting/graphs"]["subsecs"] = array(
|
|
|
|
"operation/reporting/graph_viewer",
|
|
|
|
"godmode/reporting/graph_builder");
|
2012-08-22 16:09:05 +02:00
|
|
|
|
2012-07-10 17:18:00 +02:00
|
|
|
enterprise_hook ('dashboard_menu');
|
2012-08-22 16:09:05 +02:00
|
|
|
enterprise_hook ('reporting_godmenu');
|
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["reporting"]["sub"] = $sub;
|
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
|
|
|
//End reporting
|
2012-12-28 18:06:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Events reading
|
2016-08-29 09:40:43 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "ER")
|
|
|
|
|| check_acl ($config['id_user'], 0, "EW")
|
|
|
|
|| check_acl ($config['id_user'], 0, "EM")) {
|
2006-12-15 18:39:11 +01:00
|
|
|
// Events
|
2015-06-08 13:13:09 +02:00
|
|
|
$menu_operation["eventos"]["text"] = __('Events');
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["eventos"]["refr"] = 0;
|
|
|
|
$menu_operation["eventos"]["sec2"] = "operation/events/events";
|
|
|
|
$menu_operation["eventos"]["id"] = "oper-events";
|
2008-12-19 22:45:20 +01:00
|
|
|
|
|
|
|
$sub = array ();
|
2015-04-13 13:44:29 +02:00
|
|
|
$sub["operation/events/events"]["text"] = __('View events');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/events/events"]["id"] = 'View events';
|
2016-01-18 14:50:42 +01:00
|
|
|
$sub["operation/events/events"]["pages"] =
|
|
|
|
array("godmode/events/events");
|
2008-12-19 22:45:20 +01:00
|
|
|
$sub["operation/events/event_statistics"]["text"] = __('Statistics');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/events/event_statistics"]["id"] = 'Statistics';
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
//If ip doesn't is in list of allowed IP, isn't show this options
|
2016-08-31 12:08:20 +02:00
|
|
|
include_once ('include/functions_api.php');
|
2016-08-30 10:47:00 +02:00
|
|
|
if (isInACL($_SERVER['REMOTE_ADDR'])) {
|
|
|
|
$pss = get_user_info($config['id_user']);
|
|
|
|
$hashup = md5($config['id_user'].$pss['password']);
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
//RSS
|
2016-08-30 10:47:00 +02:00
|
|
|
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup."&search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["text"] = __('RSS');
|
|
|
|
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup."&search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["id"] = 'RSS';
|
|
|
|
$sub["operation/events/events_rss.php?user=".$config['id_user']."&hashup=".$hashup."&search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["type"] = "direct";
|
2016-09-08 16:06:12 +02:00
|
|
|
|
|
|
|
//Marquee
|
|
|
|
$sub["operation/events/events_marquee.php"]["text"] = __('Marquee');
|
|
|
|
$sub["operation/events/events_marquee.php"]["id"] = 'Marquee';
|
|
|
|
$sub["operation/events/events_marquee.php"]["type"] = "direct";
|
2016-08-30 10:47:00 +02:00
|
|
|
}
|
|
|
|
|
2008-12-19 22:45:20 +01:00
|
|
|
//CSV
|
2013-07-17 17:58:15 +02:00
|
|
|
$sub["operation/events/export_csv.php?search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["text"] = __('CSV File');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/events/export_csv.php?search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["id"] = 'CSV File';
|
2013-07-17 17:58:15 +02:00
|
|
|
$sub["operation/events/export_csv.php?search=&event_type=&severity=-1&status=3&id_group=0&refr=0&id_agent=0&pagination=20&group_rep=1&event_view_hr=8&id_user_ack=0&tag_with=&tag_without=&filter_only_alert-1&offset=0&toogle_filter=no&filter_id=0&id_name=&id_group=0&history=0§ion=list&open_filter=0&pure="]["type"] = "direct";
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2010-09-27 13:24:43 +02:00
|
|
|
//Sound Events
|
|
|
|
$javascript = "javascript: window.open('operation/events/sound_events.php');";
|
|
|
|
$javascript = 'javascript: alert(111);';
|
|
|
|
$javascript = 'javascript: openSoundEventWindow();';
|
2010-11-16 16:56:26 +01:00
|
|
|
$sub[$javascript]["text"] = __('Sound Events');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub[$javascript]["id"] = 'Sound Events';
|
2010-09-27 13:24:43 +02:00
|
|
|
$sub[$javascript]["type"] = "direct";
|
|
|
|
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function openSoundEventWindow() {
|
2012-09-06 Miguel de Dios <miguel.dedios@artica.es>
* general/header.php, general/login_page.php,
godmode/setup/setup.php, include/functions_ui.php,
include/functions_graph.php, include/functions_html.php,
include/graphs/fgraph.php, include/graphs/functions_pchart.php,
include/graphs/functions_flot.php, include/functions_reporting.php,
include/functions_visual_map.php, include/functions_config.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
operation/agentes/tactical.php, operation/menu.php,
operation/events/events.php: added the feature to set a
public url for inverse proxy or for example mod_proxy of Apache.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-06 19:01:22 +02:00
|
|
|
url = '<?php
|
|
|
|
echo ui_get_full_url('operation/events/sound_events.php');
|
|
|
|
?>';
|
2010-09-27 13:24:43 +02:00
|
|
|
|
2015-06-08 13:13:09 +02:00
|
|
|
window.open(url,
|
|
|
|
'<?php __('Sound Alerts'); ?>',
|
2017-05-25 17:11:35 +02:00
|
|
|
'width=600, height=450, resizable=no, toolbar=no, location=no, directories=no, status=no, menubar=no');
|
2010-09-27 13:24:43 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["eventos"]["sub"] = $sub;
|
2009-11-27 Sancho lerena <slerena@artica.es>
* operation/menu.php: User section has no ACL check, always can be seen.
* index.php: Added suppor for user-defined custom language (this code was
on my disk for 3 months, pending to be commited!).
* include/functions_db.php,
* include/functions_agents.php,
* godmode/alerts/alert_list.php,
* godmode/agentes/modificar_agente.php,
* godmode/agentes/configurar_agente.php: Added audit calls to several
management operations who don't have or have insufficient audit info.
* godmode/users/configure_user.php: Fixed several annoyings bugs. Added
custom language support, and added more audit info on management operations.
* godmode/users/user_list.php: More audit info.
* include/config_process.php: Add new debug option to render error log to
/pandora_console.log. Also set timezone if not defined (this makes warnings
on several PHP 5.x setups). Added user custom language support.
* include/functions_events.php: More audit info. Fixed problems with HTML
encoding render.
* functions_io.php: Some cleaning.
* include/functions_messages.php: Fixed problems with HTML
encoding render.
* functions_ui.php: Fixed problems with HTML encoding render in
print_string_substr() function.
* auth/mysql.php: is_user_admin() functions seems to be broken ¿?¿!. Fixed.
* styles/pandora.css: removed green colored left border in default style.
* message.php, incident*: Fixed problems with HTML encoding render.
* user.php: Better ACL check before let user to view/edit another user.
* user_edit: Removed some un-used form fields, some arrangements in layout,
and FIXED forever problems with password change (new code written).
* users/user_statistics.php: Now user can see its own audit records.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-27 21:02:12 +01:00
|
|
|
}
|
|
|
|
|
2012-04-02 16:33:34 +02:00
|
|
|
//Workspace
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["workspace"]["text"] = __('Workspace');
|
|
|
|
$menu_operation["workspace"]["sec2"] = "operation/users/user_edit";
|
|
|
|
$menu_operation["workspace"]["id"] = "oper-users";
|
2012-04-02 16:33:34 +02:00
|
|
|
|
2011-03-17 21:51:46 +01:00
|
|
|
// ANY user can view him/herself !
|
|
|
|
// Users
|
2012-04-02 16:33:34 +02:00
|
|
|
$sub = array();
|
|
|
|
$sub["operation/users/user_edit"]["text"] = __('Edit my user');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/users/user_edit"]["id"] = 'Edit my user';
|
2012-04-02 16:33:34 +02:00
|
|
|
$sub["operation/users/user_edit"]["refr"] = 0;
|
|
|
|
|
2012-04-23 13:20:28 +02:00
|
|
|
// ANY user can chat with other user and dogs.
|
|
|
|
// Users
|
|
|
|
$sub["operation/users/webchat"]["text"] = __('WebChat');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/users/webchat"]["id"] = 'WebChat';
|
2012-04-23 13:20:28 +02:00
|
|
|
$sub["operation/users/webchat"]["refr"] = 0;
|
|
|
|
|
2013-06-18 13:38:54 +02:00
|
|
|
|
2012-04-02 16:33:34 +02:00
|
|
|
//Incidents
|
2016-09-08 16:06:12 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "IR")
|
|
|
|
|| check_acl ($config['id_user'], 0, "IW")
|
|
|
|
|| check_acl ($config['id_user'], 0, "IM")) {
|
2015-06-08 13:13:09 +02:00
|
|
|
$temp_sec2 = $sec2;
|
2017-01-25 12:40:42 +01:00
|
|
|
$sec2 = "incident";
|
|
|
|
$sec2sub = "operation/incidents/incident_statistics";
|
2012-04-02 16:33:34 +02:00
|
|
|
$sub[$sec2]["text"] = __('Incidents');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub[$sec2]["id"] = 'Incidents';
|
2015-04-10 09:29:33 +02:00
|
|
|
$sub[$sec2]["type"] = "direct";
|
|
|
|
$sub[$sec2]["subtype"] = "nolink";
|
2012-04-02 16:33:34 +02:00
|
|
|
$sub[$sec2]["refr"] = 0;
|
2012-04-23 13:20:28 +02:00
|
|
|
$sub[$sec2]["subsecs"] = array(
|
|
|
|
"operation/incidents/incident_detail",
|
|
|
|
"operation/integria_incidents");
|
2014-08-26 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/configure_alert_action.php,
include/help/clippy/godmode_agentes_modificar_agente.php,
include/help/clippy/homepage.php,
include/help/clippy/module_unknow.php,
include/help/clippy/godmode_agentes_configurar_agente.php,
include/help/clippy/godmode_alerts_alert_actions.php,
include/help/clippy/operation_agentes_ver_agente.php,
include/help/clippy/godmode_alerts_configure_alert_action.php,
include/help/clippy/operation_agentes_status_monitor.php,
include/help/en/help_context_pandora_server_email.php,
include/functions_clippy.php, operation/menu.php,
operation/agentes/status_monitor.php: some changes suggested by
Carla.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10457 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-08-26 13:22:06 +02:00
|
|
|
|
2012-04-23 13:20:28 +02:00
|
|
|
$sub2 = array ();
|
2016-08-29 09:40:43 +02:00
|
|
|
$sub2['operation/incidents/incident']["text"] = __("List of Incidents");
|
2014-08-18 14:53:59 +02:00
|
|
|
$sub2[$sec2sub]["text"] = __('Statistics');
|
2012-04-02 16:33:34 +02:00
|
|
|
|
|
|
|
$sub[$sec2]["sub2"] = $sub2;
|
|
|
|
$sec2 = $temp_sec2;
|
|
|
|
}
|
2010-08-26 17:51:09 +02:00
|
|
|
|
2013-06-18 13:38:54 +02:00
|
|
|
|
|
|
|
// Messages
|
2015-04-23 08:44:04 +02:00
|
|
|
$sub["message_list"]["text"] = __('Messages');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["message_list"]["id"] = 'Messages';
|
2015-04-23 08:44:04 +02:00
|
|
|
$sub["message_list"]["refr"] = 0;
|
|
|
|
$sub["message_list"]["type"] = "direct";
|
|
|
|
$sub["message_list"]["subtype"] = "nolink";
|
2013-06-18 13:38:54 +02:00
|
|
|
$sub2 = array ();
|
2015-04-23 08:44:04 +02:00
|
|
|
$sub2["operation/messages/message_list"]["text"] = __('Messages List');
|
2013-06-18 13:38:54 +02:00
|
|
|
$sub2["operation/messages/message_edit&new_msg=1"]["text"] = __('New message');
|
|
|
|
|
2015-04-23 08:44:04 +02:00
|
|
|
$sub["message_list"]["sub2"] = $sub2;
|
2012-04-02 16:33:34 +02:00
|
|
|
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["workspace"]["sub"] = $sub;
|
2012-04-02 16:33:34 +02:00
|
|
|
|
|
|
|
//End Workspace
|
2009-11-27 Sancho lerena <slerena@artica.es>
* operation/menu.php: User section has no ACL check, always can be seen.
* index.php: Added suppor for user-defined custom language (this code was
on my disk for 3 months, pending to be commited!).
* include/functions_db.php,
* include/functions_agents.php,
* godmode/alerts/alert_list.php,
* godmode/agentes/modificar_agente.php,
* godmode/agentes/configurar_agente.php: Added audit calls to several
management operations who don't have or have insufficient audit info.
* godmode/users/configure_user.php: Fixed several annoyings bugs. Added
custom language support, and added more audit info on management operations.
* godmode/users/user_list.php: More audit info.
* include/config_process.php: Add new debug option to render error log to
/pandora_console.log. Also set timezone if not defined (this makes warnings
on several PHP 5.x setups). Added user custom language support.
* include/functions_events.php: More audit info. Fixed problems with HTML
encoding render.
* functions_io.php: Some cleaning.
* include/functions_messages.php: Fixed problems with HTML
encoding render.
* functions_ui.php: Fixed problems with HTML encoding render in
print_string_substr() function.
* auth/mysql.php: is_user_admin() functions seems to be broken ¿?¿!. Fixed.
* styles/pandora.css: removed green colored left border in default style.
* message.php, incident*: Fixed problems with HTML encoding render.
* user.php: Better ACL check before let user to view/edit another user.
* user_edit: Removed some un-used form fields, some arrangements in layout,
and FIXED forever problems with password change (new code written).
* users/user_statistics.php: Now user can see its own audit records.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-27 21:02:12 +01:00
|
|
|
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2009-11-27 Sancho lerena <slerena@artica.es>
* operation/menu.php: User section has no ACL check, always can be seen.
* index.php: Added suppor for user-defined custom language (this code was
on my disk for 3 months, pending to be commited!).
* include/functions_db.php,
* include/functions_agents.php,
* godmode/alerts/alert_list.php,
* godmode/agentes/modificar_agente.php,
* godmode/agentes/configurar_agente.php: Added audit calls to several
management operations who don't have or have insufficient audit info.
* godmode/users/configure_user.php: Fixed several annoyings bugs. Added
custom language support, and added more audit info on management operations.
* godmode/users/user_list.php: More audit info.
* include/config_process.php: Add new debug option to render error log to
/pandora_console.log. Also set timezone if not defined (this makes warnings
on several PHP 5.x setups). Added user custom language support.
* include/functions_events.php: More audit info. Fixed problems with HTML
encoding render.
* functions_io.php: Some cleaning.
* include/functions_messages.php: Fixed problems with HTML
encoding render.
* functions_ui.php: Fixed problems with HTML encoding render in
print_string_substr() function.
* auth/mysql.php: is_user_admin() functions seems to be broken ¿?¿!. Fixed.
* styles/pandora.css: removed green colored left border in default style.
* message.php, incident*: Fixed problems with HTML encoding render.
* user.php: Better ACL check before let user to view/edit another user.
* user_edit: Removed some un-used form fields, some arrangements in layout,
and FIXED forever problems with password change (new code written).
* users/user_statistics.php: Now user can see its own audit records.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2139 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-11-27 21:02:12 +01:00
|
|
|
// Rest of options, all with AR privilege (or should events be with incidents?)
|
2016-08-29 09:40:43 +02:00
|
|
|
//~ if (check_acl ($config['id_user'], 0, "AR")) {
|
|
|
|
|
|
|
|
// Extensions menu additions
|
|
|
|
if (is_array ($config['extensions'])) {
|
|
|
|
|
|
|
|
$sub = array ();
|
|
|
|
$sub2 = array ();
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "RR") || check_acl ($config['id_user'], 0, "RW") || check_acl ($config['id_user'], 0, "RM")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["operation/agentes/exportdata"]["text"] = __('Export data');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["operation/agentes/exportdata"]["id"] = 'Export data';
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["operation/agentes/exportdata"]["subsecs"] = array("operation/agentes/exportdata");
|
2016-08-29 09:40:43 +02:00
|
|
|
}
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AR") || check_acl ($config['id_user'], 0, "AD") || check_acl ($config['id_user'], 0, "AW")) {
|
2015-04-09 15:04:23 +02:00
|
|
|
$sub["godmode/agentes/planned_downtime.list"]["text"] = __('Scheduled downtime');
|
2015-11-17 11:20:45 +01:00
|
|
|
$sub["godmode/agentes/planned_downtime.list"]["id"] = 'Scheduled downtime';
|
2016-08-29 09:40:43 +02:00
|
|
|
}
|
|
|
|
|
2016-09-08 16:06:12 +02:00
|
|
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
2016-08-29 09:40:43 +02:00
|
|
|
$sub["operation/servers/recon_view"]["text"] = __('Recon view');
|
|
|
|
$sub["operation/servers/recon_view"]["id"] = 'Recon view';
|
|
|
|
$sub["operation/servers/recon_view"]["refr"] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($config["extensions"] as $extension) {
|
|
|
|
//If no operation_menu is a godmode extension
|
|
|
|
if ($extension["operation_menu"] == '') {
|
|
|
|
continue;
|
|
|
|
}
|
2015-04-09 15:04:23 +02:00
|
|
|
|
2016-08-29 09:40:43 +02:00
|
|
|
//Check the ACL for this user
|
|
|
|
if (! check_acl ($config['id_user'], 0, $extension['operation_menu']['acl'])) {
|
|
|
|
continue;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
|
|
|
|
2016-08-29 09:40:43 +02:00
|
|
|
$extension_menu = $extension["operation_menu"];
|
|
|
|
if ($extension["operation_menu"]["name"] == 'Matrix' &&
|
|
|
|
( !check_acl ($config['id_user'], 0, "ER") ||
|
|
|
|
!check_acl ($config['id_user'], 0, "EW") ||
|
|
|
|
!check_acl ($config['id_user'], 0, "EM") )) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
//Check if was displayed inside other menu
|
|
|
|
if ($extension["operation_menu"]["fatherId"] == '') {
|
|
|
|
if ($extension_menu['name'] == 'Update manager') {
|
2008-12-19 22:45:20 +01:00
|
|
|
continue;
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2016-08-29 09:40:43 +02:00
|
|
|
$sub[$extension_menu["sec2"]]["text"] = $extension_menu["name"];
|
|
|
|
$sub[$extension_menu["sec2"]]["id"] = $extension_menu["name"];
|
|
|
|
$sub[$extension_menu["sec2"]]["refr"] = 0;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (array_key_exists('fatherId',$extension_menu)) {
|
|
|
|
// Check that extension father ID exists previously on the menu
|
|
|
|
if ((strlen($extension_menu['fatherId']) > 0)) {
|
|
|
|
if (array_key_exists('subfatherId',$extension_menu)) {
|
|
|
|
if ((strlen($extension_menu['subfatherId']) > 0)) {
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["text"] = __($extension_menu['name']);
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["id"] = $extension_menu['name'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["refr"] = 0;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["icon"] = $extension_menu['icon'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["sec"] = 'extensions';
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["extension"] = true;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['hasExtensions'] = true;
|
2015-04-09 15:04:23 +02:00
|
|
|
}
|
2015-06-08 09:32:01 +02:00
|
|
|
else {
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["text"] = __($extension_menu['name']);
|
2015-11-17 11:20:45 +01:00
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["id"] = $extension_menu['name'];
|
2015-04-09 15:04:23 +02:00
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["refr"] = 0;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["icon"] = $extension_menu['icon'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["sec"] = 'extensions';
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["extension"] = true;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['hasExtensions'] = true;
|
|
|
|
}
|
2012-04-10 17:35:13 +02:00
|
|
|
}
|
2016-08-29 09:40:43 +02:00
|
|
|
else {
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["text"] = __($extension_menu['name']);
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["id"] = $extension_menu['name'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["refr"] = 0;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["icon"] = $extension_menu['icon'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["sec"] = 'extensions';
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["extension"] = true;
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]["enterprise"] = $extension['enterprise'];
|
|
|
|
$menu_operation[$extension_menu['fatherId']]['hasExtensions'] = true;
|
|
|
|
}
|
2012-04-23 13:20:28 +02:00
|
|
|
}
|
2012-04-10 17:35:13 +02:00
|
|
|
}
|
2008-08-04 10:15:16 +02:00
|
|
|
}
|
2016-08-29 09:40:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($sub)) {
|
|
|
|
$menu_operation["extensions"]["text"] = __('Tools');
|
|
|
|
$menu_operation["extensions"]["sec2"] = "operation/extensions";
|
|
|
|
$menu_operation["extensions"]["id"] = "oper-extensions";
|
2012-06-18 17:16:17 +02:00
|
|
|
$menu_operation["extensions"]["sub"] = $sub;
|
2016-08-29 09:40:43 +02:00
|
|
|
|
2009-08-27 18:57:19 +02:00
|
|
|
}
|
2009-10-26 Ramon Novoa <rnovoa@artica.es>
* extensions/update_manager.php,
operation/incidents/incident.php,
operation/menu.php,
godmode/setup/links.php,
godmode/users/configure_user.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/agent_manager.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graphs.php,
godmode/reporting/graph_builder.php,
godmode/alerts/alert_templates.php,
godmode/menu.php: Several ACL related fixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2053 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-10-26 19:51:29 +01:00
|
|
|
}
|
2016-08-29 09:40:43 +02:00
|
|
|
//~ }
|
2009-08-27 18:57:19 +02:00
|
|
|
|
2012-06-07 16:22:38 +02:00
|
|
|
// Save operation menu array to use in operation/extensions.php view
|
2012-06-18 17:16:17 +02:00
|
|
|
$operation_menu_array = $menu_operation;
|
2009-08-27 18:57:19 +02:00
|
|
|
|
2013-02-05 12:30:04 +01:00
|
|
|
|
2012-09-27 15:02:16 +02:00
|
|
|
if(!$config['pure']) {
|
|
|
|
menu_print_menu ($menu_operation, true);
|
|
|
|
}
|
2012-10-29 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php,
include/javascript/pandora_modules.js,
include/functions_network_components.php,
include/functions_api.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/menu.php,
extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/servers/plugin.php,
godmode/menu.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/reporting_builder.item_editor.php: Added support for
custom timeout and retries to remote modules.
* operation/netflow/nf_reporting.php,
operation/netflow/nf_view.php,
godmode/netflow/nf_report_item.php,
godmode/netflow/nf_report.php,
godmode/netflow/nf_report_form.php,
godmode/netflow/nf.php: Deleted from repository. Netflow reports are
now integrated into custom reports.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7103 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-10-29 11:13:49 +01:00
|
|
|
?>
|