Fixed styles of lateral menu and add link in submenu of tools. Tiquet: #2960
This commit is contained in:
parent
579793fa66
commit
4761d4ad8e
|
@ -31,27 +31,35 @@ if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0,
|
|||
|
||||
$sub = array ();
|
||||
$sub['godmode/agentes/modificar_agente']['text'] = __('Manage agents');
|
||||
$sub['godmode/agentes/modificar_agente']['id'] = 'Manage agents';
|
||||
$sub["godmode/agentes/modificar_agente"]["subsecs"] = array(
|
||||
"godmode/agentes/configurar_agente");
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||
$sub["godmode/agentes/fields_manager"]["text"] = __('Custom fields');
|
||||
$sub["godmode/agentes/fields_manager"]["id"] = 'Custom fields';
|
||||
}
|
||||
|
||||
$sub["godmode/modules/manage_nc_groups"]["text"] = __('Component groups');
|
||||
$sub["godmode/modules/manage_nc_groups"]["id"] = 'Component groups';
|
||||
// Category
|
||||
$sub["godmode/category/category"]["text"] = __('Module categories');
|
||||
$sub["godmode/category/category"]["id"] = 'Module categories';
|
||||
$sub["godmode/category/category"]["subsecs"] = "godmode/category/edit_category";
|
||||
|
||||
$sub["godmode/modules/module_list"]["text"] = __('Module types');
|
||||
$sub["godmode/modules/module_list"]["id"] = 'Module types';
|
||||
|
||||
if (check_acl ($config["id_user"], 0, "PM")) {
|
||||
$sub["godmode/groups/modu_group_list"]["text"] = __('Module groups');
|
||||
$sub["godmode/groups/modu_group_list"]["id"] = 'Module groups';
|
||||
}
|
||||
// GIS
|
||||
if (check_acl ($config['id_user'], 0, "IW")) {
|
||||
if ($config['activate_gis']) {
|
||||
$sub["godmode/gis_maps/index"]["text"] = __('GIS Maps builder');
|
||||
$sub["godmode/gis_maps/index"]["id"] = 'GIS Maps builder';
|
||||
$sub["godmode/gis_maps/index"]["refr"] = (int)get_parameter('refr', 60);
|
||||
}
|
||||
}
|
||||
|
@ -59,6 +67,7 @@ if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0,
|
|||
if ($config['activate_netflow']) {
|
||||
//Netflow
|
||||
$sub["godmode/netflow/nf_edit"]["text"] = __('Netflow filters');
|
||||
$sub["godmode/netflow/nf_edit"]["id"] = 'Netflow filters';
|
||||
}
|
||||
}
|
||||
$menu_godmode["gagente"]["sub"] = $sub;
|
||||
|
@ -71,10 +80,14 @@ if (check_acl ($config['id_user'], 0, "UM")) {
|
|||
|
||||
$sub = array ();
|
||||
$sub['godmode/users/user_list']['text'] = __('Users management');
|
||||
$sub['godmode/users/user_list']['id'] = 'Users management';
|
||||
$sub['godmode/users/profile_list']['text'] = __('Profile management');
|
||||
$sub['godmode/users/profile_list']['id'] = 'Profile management';
|
||||
$sub["godmode/groups/group_list"]["text"] = __('Manage agents groups');
|
||||
$sub["godmode/groups/group_list"]["id"] = 'Manage agents groups';
|
||||
// Tag
|
||||
$sub["godmode/tag/tag"]["text"] = __('Module tags');
|
||||
$sub["godmode/tag/tag"]["id"] = 'Module tags';
|
||||
$sub["godmode/tag/tag"]["subsecs"] = "godmode/tag/edit_tag";
|
||||
|
||||
enterprise_hook ('enterprise_acl_submenu');
|
||||
|
@ -89,8 +102,10 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
$sub = array ();
|
||||
|
||||
$sub["godmode/modules/manage_network_components"]["text"] = __('Network components');
|
||||
$sub["godmode/modules/manage_network_components"]["id"] = 'Network components';
|
||||
enterprise_hook ('components_submenu');
|
||||
$sub["godmode/modules/manage_network_templates"]["text"] = __('Module templates');
|
||||
$sub["godmode/modules/manage_network_templates"]["id"] = 'Module templates';
|
||||
enterprise_hook ('inventory_submenu');
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
enterprise_hook ('policies_menu');
|
||||
|
@ -98,6 +113,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
enterprise_hook('agents_submenu');
|
||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||
$sub["gmassive"]["text"] = __('Bulk operations');
|
||||
$sub["gmassive"]["id"] = 'Bulk operations';
|
||||
$sub["gmassive"]["type"] = "direct";
|
||||
$sub["gmassive"]["subtype"] = "nolink";
|
||||
$sub2 = array ();
|
||||
|
@ -126,16 +142,22 @@ if (check_acl ($config['id_user'], 0, "LM") || check_acl ($config['id_user'], 0,
|
|||
|
||||
$sub = array ();
|
||||
$sub["godmode/alerts/alert_list"]["text"] = __('List of Alerts');
|
||||
$sub["godmode/alerts/alert_list"]["id"] = 'List of Alerts';
|
||||
if (check_acl ($config['id_user'], 0, "LM")) {
|
||||
$sub["godmode/alerts/alert_templates"]["text"] = __('Templates');
|
||||
$sub["godmode/alerts/alert_templates"]["id"] = 'Templates';
|
||||
$sub["godmode/alerts/alert_actions"]["text"] = __('Actions');
|
||||
$sub["godmode/alerts/alert_actions"]["id"] = 'Actions';
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/alerts/alert_commands"]["text"] = __('Commands');
|
||||
$sub["godmode/alerts/alert_commands"]["id"] = 'Commands';
|
||||
}
|
||||
$sub["godmode/alerts/alert_special_days"]["text"] = __('Special days list');
|
||||
$sub["godmode/alerts/alert_special_days"]["id"] = __('Special days list');
|
||||
enterprise_hook('eventalerts_submenu');
|
||||
$sub["godmode/snmpconsole/snmp_alert"]["text"] = __("SNMP alerts");
|
||||
$sub["godmode/snmpconsole/snmp_alert"]["id"] = "SNMP alerts";
|
||||
}
|
||||
$menu_godmode["galertas"]["sub"] = $sub;
|
||||
}
|
||||
|
@ -149,10 +171,13 @@ if (check_acl ($config['id_user'], 0, "EW")) {
|
|||
// Custom event fields
|
||||
$sub = array ();
|
||||
$sub["godmode/events/events&section=filter"]["text"] = __('Event filters');
|
||||
$sub["godmode/events/events&section=filter"]["id"] = 'Event filters';
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/events/events&section=fields"]["text"] = __('Custom events');
|
||||
$sub["godmode/events/events&section=fields"]["id"] = 'Custom events';
|
||||
$sub["godmode/events/events&section=responses"]["text"] = __('Event responses');
|
||||
$sub["godmode/events/events&section=responses"]["id"] = 'Event responses';
|
||||
}
|
||||
|
||||
$menu_godmode["geventos"]["sub"] = $sub;
|
||||
|
@ -166,13 +191,17 @@ if (check_acl ($config['id_user'], 0, "AW")) {
|
|||
|
||||
$sub = array ();
|
||||
$sub["godmode/servers/modificar_server"]["text"] = __('Manage servers');
|
||||
$sub["godmode/servers/modificar_server"]["id"] = 'Manage servers';
|
||||
$sub["godmode/servers/manage_recontask"]["text"] = __('Recon task');
|
||||
$sub["godmode/servers/manage_recontask"]["id"] = 'Recon task';
|
||||
|
||||
//This subtabs are only for Pandora Admin
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["godmode/servers/plugin"]["text"] = __('Plugins');
|
||||
$sub["godmode/servers/plugin"]["id"] = 'Plugins';
|
||||
|
||||
$sub["godmode/servers/recon_script"]["text"] = __('Recon script');
|
||||
$sub["godmode/servers/recon_script"]["id"] = 'Recon script';
|
||||
|
||||
enterprise_hook('export_target_submenu');
|
||||
}
|
||||
|
@ -190,11 +219,13 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
|
||||
// Options Setup
|
||||
$sub["general"]["text"] = __('Setup');
|
||||
$sub["general"]["id"] = 'Setup';
|
||||
$sub["general"]["type"] = "direct";
|
||||
$sub["general"]["subtype"] = "nolink";
|
||||
$sub2 = array ();
|
||||
|
||||
$sub2["godmode/setup/setup&section=general"]["text"] = __('General Setup');
|
||||
$sub2["godmode/setup/setup&section=general"]["id"] = 'General Setup';
|
||||
$sub2["godmode/setup/setup&section=general"]["refr"] = 0;
|
||||
|
||||
enterprise_hook ('password_submenu');
|
||||
|
@ -225,7 +256,9 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
|
||||
$sub["general"]["sub2"] = $sub2;
|
||||
$sub["godmode/setup/os"]["text"] = __('Edit OS');
|
||||
$sub["godmode/setup/os"]["id"] = 'Edit OS';
|
||||
$sub["godmode/setup/license"]["text"] = __('License');
|
||||
$sub["godmode/setup/license"]["id"] = 'License';
|
||||
|
||||
enterprise_hook ('skins_submenu');
|
||||
|
||||
|
@ -240,11 +273,15 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
$sub = array ();
|
||||
// Audit //meter en extensiones
|
||||
$sub["godmode/admin_access_logs"]["text"] = __('System audit log');
|
||||
$sub["godmode/admin_access_logs"]["id"] = 'System audit log';
|
||||
$sub["godmode/setup/links"]["text"] = __('Links');
|
||||
$sub["godmode/setup/links"]["id"] = 'Links';
|
||||
$sub["godmode/update_manager/update_manager"]["text"] = __('Update manager');
|
||||
$sub["godmode/update_manager/update_manager"]["id"] = 'Update manager';
|
||||
$sub["gextmaneger"]["sub2"] = $sub2;
|
||||
if (check_acl ($config['id_user'], 0, "DM")) {
|
||||
$sub["gdbman"]["text"] = __('DB maintenance');
|
||||
$sub["gdbman"]["id"] = 'DB maintenance';
|
||||
$sub["gdbman"]["type"] = "direct";
|
||||
$sub["gdbman"]["subtype"] = "nolink";
|
||||
$sub2 = array ();
|
||||
|
@ -257,8 +294,11 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
$sub["gdbman"]["sub2"] = $sub2;
|
||||
}
|
||||
$sub["extras/pandora_diag"]["text"] = __('Diagnostic info');
|
||||
$sub["extras/pandora_diag"]["id"] = 'Diagnostic info';
|
||||
$sub["godmode/setup/news"]["text"] = __('Site news');
|
||||
$sub["godmode/setup/news"]["id"] = 'Site news';
|
||||
$sub["godmode/setup/file_manager"]["text"] = __('File manager');
|
||||
$sub["godmode/setup/file_manager"]["id"] = 'File manager';
|
||||
$menu_godmode["gextensions"]["sub"] = $sub;
|
||||
}
|
||||
|
||||
|
@ -268,6 +308,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
|
||||
$sub = array ();
|
||||
$sub["gextmaneger"]["text"] = __('Extension manager');
|
||||
$sub["gextmaneger"]["id"] = 'Extension manager';
|
||||
$sub["gextmaneger"]["type"] = "direct";
|
||||
$sub["gextmaneger"]["subtype"] = "nolink";
|
||||
$sub2 = array ();
|
||||
|
@ -292,6 +333,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
//Check if was displayed inside other menu
|
||||
if ($extension['godmode_menu']["fatherId"] == '') {
|
||||
$sub2[$extmenu["sec2"]]["text"] = __($extmenu["name"]);
|
||||
$sub2[$extmenu["sec2"]]["id"] = $extmenu["name"];
|
||||
$sub2[$extmenu["sec2"]]["refr"] = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -300,6 +342,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
if (array_key_exists('subfatherId',$extmenu)) {
|
||||
if (strlen($extmenu['subfatherId']) > 0) {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["refr"] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]["sec"] = 'extensions';
|
||||
|
@ -309,6 +352,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
}
|
||||
else {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
||||
if ($extmenu["name"] == 'Cron jobs')
|
||||
|
@ -322,6 +366,7 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
|||
}
|
||||
else {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["text"] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["id"] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["refr"] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["icon"] = $extmenu['icon'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]["sec"] = 'gextensions';
|
||||
|
|
|
@ -208,7 +208,7 @@ function menu_print_menu (&$menu) {
|
|||
|
||||
if (isset ($sub["type"]) && $sub["type"] == "direct") {
|
||||
//This is an external link
|
||||
$submenu_output .= '<li id="'. str_replace(' ','_',$sub["text"]) . '" class="'.$class.'">';
|
||||
$submenu_output .= '<li id="'. str_replace(' ','_',$sub["id"]) . '" class="'.$class.'">';
|
||||
|
||||
if (isset ($sub["subtype"]) && $sub["subtype"] == "nolink") {
|
||||
$submenu_output .= '<div class=" SubNoLink ' . $sub_tree_class . '">'.$sub["text"].'</div>';
|
||||
|
@ -225,7 +225,7 @@ function menu_print_menu (&$menu) {
|
|||
$link_add = "";
|
||||
}
|
||||
|
||||
$submenu_output .= '<li id="'. str_replace(' ','_',$sub["text"]) . '" '.($class ? ' class="'.$class.'"' : '').'>';
|
||||
$submenu_output .= '<li id="'. str_replace(' ','_',$sub["id"]) . '" '.($class ? ' class="'.$class.'"' : '').'>';
|
||||
|
||||
//Ini Add icon extension
|
||||
$secExtension = null;
|
||||
|
@ -312,8 +312,12 @@ function menu_print_menu (&$menu) {
|
|||
|
||||
$count_sub2++;
|
||||
|
||||
$link = "index.php?sec=".$subsec2."&sec2=".$key;
|
||||
|
||||
if (isset ($sub2["type"]) && $sub2["type"] == "direct") {
|
||||
if (isset ($sub2["subtype"]) && $sub2["subtype"] == "new_blank")
|
||||
$link = $key . '"' . 'target = \'_blank\'';
|
||||
}
|
||||
else
|
||||
$link = "index.php?sec=".$subsec2."&sec2=".$key;
|
||||
$class = "sub_subMenu";
|
||||
|
||||
if ($key == $sec2) {
|
||||
|
@ -339,7 +343,7 @@ function menu_print_menu (&$menu) {
|
|||
}
|
||||
|
||||
//Add submenu2 to submenu string
|
||||
$submenu_output .= "<ul id='sub" . str_replace(' ','_',$sub["text"]) . "' class=submenu2 $display>";
|
||||
$submenu_output .= "<ul id='sub" . str_replace(' ','_',$sub["id"]) . "' class=submenu2 $display>";
|
||||
$submenu_output .= $submenu2_list;
|
||||
$submenu_output .= "</ul>";
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
li:hover ul { display: block; }
|
||||
|
||||
.submenu_text {
|
||||
padding: 11px;
|
||||
padding: 10.5px;
|
||||
margin-left: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -203,6 +203,10 @@ li:hover ul { display: block; }
|
|||
top: -210px;
|
||||
}
|
||||
|
||||
#subicon_god-servers {
|
||||
top: -72px;
|
||||
}
|
||||
|
||||
#menu_container {
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
|
|
|
@ -1208,8 +1208,6 @@ div.title_line {
|
|||
text-decoration: none;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
height: 21px;
|
||||
width: 21px;
|
||||
}
|
||||
#menu_tab li.nomn:hover a, #menu_tab li:hover ul a:hover {
|
||||
/*background: #82b92e;*/
|
||||
|
|
|
@ -35,6 +35,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
|
||||
$sub = array ();
|
||||
$sub["view"]["text"] = __('Views');
|
||||
$sub["view"]["id"] = 'Views';
|
||||
$sub["view"]["type"] = "direct";
|
||||
$sub["view"]["subtype"] = "nolink";
|
||||
$sub["view"]["refr"] = 0;
|
||||
|
@ -69,6 +70,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
if (check_acl ($config['id_user'], 0, "RR")) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +81,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
|
||||
//SNMP Console
|
||||
$sub["snmpconsole"]["text"] = __('SNMP');
|
||||
$sub["snmpconsole"]["id"] = 'SNMP';
|
||||
$sub["snmpconsole"]["refr"] = 0;
|
||||
$sub["snmpconsole"]["type"] = "direct";
|
||||
$sub["snmpconsole"]["subtype"] = "nolink";
|
||||
|
@ -109,9 +112,8 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
|
||||
$sub = array();
|
||||
|
||||
|
||||
|
||||
$sub["operation/agentes/networkmap_list"]["text"] = __('Network map');
|
||||
$sub["operation/agentes/networkmap_list"]["id"] = 'Network map';
|
||||
$sub["operation/agentes/networkmap_list"]["refr"] = 0;
|
||||
|
||||
enterprise_hook ('networkmap_console');
|
||||
|
@ -120,6 +122,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
|
||||
//Visual console
|
||||
$sub["godmode/reporting/map_builder"]["text"] = __('Visual console');
|
||||
$sub["godmode/reporting/map_builder"]["id"] = 'Visual console';
|
||||
//Set godomode path
|
||||
$sub["godmode/reporting/map_builder"]["subsecs"] = array(
|
||||
"godmode/reporting/map_builder",
|
||||
|
@ -163,6 +166,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
continue;
|
||||
}
|
||||
$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'];
|
||||
|
@ -184,10 +188,12 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
//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/index"]["text"] = __("List of Gis maps");
|
||||
$sub2["operation/gis_maps/index"]["id"] = "List of Gis maps";
|
||||
$gisMaps = db_get_all_rows_in_table ('tgis_map', 'map_name');
|
||||
if ($gisMaps === false) {
|
||||
$gisMaps = array ();
|
||||
|
@ -209,6 +215,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
continue;
|
||||
}
|
||||
$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;
|
||||
}
|
||||
|
@ -234,12 +241,14 @@ if (check_acl ($config['id_user'], 0, "RR")) {
|
|||
$sub = array ();
|
||||
|
||||
$sub["godmode/reporting/reporting_builder"]["text"] = __('Custom reporting');
|
||||
$sub["godmode/reporting/reporting_builder"]["id"] = 'Custom reporting';
|
||||
//Set godomode path
|
||||
$sub["godmode/reporting/reporting_builder"]["subsecs"] = array("godmode/reporting/reporting_builder",
|
||||
"operation/reporting/reporting_viewer");
|
||||
|
||||
|
||||
$sub["godmode/reporting/graphs"]["text"] = __('Custom graphs');
|
||||
$sub["godmode/reporting/graphs"]["id"] = 'Custom graphs';
|
||||
//Set godomode path
|
||||
$sub["godmode/reporting/graphs"]["subsecs"] = array(
|
||||
"operation/reporting/graph_viewer",
|
||||
|
@ -263,21 +272,26 @@ if (check_acl ($config['id_user'], 0, "ER")) {
|
|||
|
||||
$sub = array ();
|
||||
$sub["operation/events/events"]["text"] = __('View events');
|
||||
$sub["operation/events/events"]["id"] = 'View events';
|
||||
$sub["operation/events/event_statistics"]["text"] = __('Statistics');
|
||||
$sub["operation/events/event_statistics"]["id"] = 'Statistics';
|
||||
|
||||
//RSS
|
||||
$pss = get_user_info($config['id_user']);
|
||||
$hashup = md5($config['id_user'].$pss['password']);
|
||||
|
||||
$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";
|
||||
|
||||
//CSV
|
||||
$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');
|
||||
$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';
|
||||
$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";
|
||||
|
||||
//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";
|
||||
|
||||
//Sound Events
|
||||
|
@ -285,6 +299,7 @@ if (check_acl ($config['id_user'], 0, "ER")) {
|
|||
$javascript = 'javascript: alert(111);';
|
||||
$javascript = 'javascript: openSoundEventWindow();';
|
||||
$sub[$javascript]["text"] = __('Sound Events');
|
||||
$sub[$javascript]["id"] = 'Sound Events';
|
||||
$sub[$javascript]["type"] = "direct";
|
||||
|
||||
?>
|
||||
|
@ -313,11 +328,13 @@ $menu_operation["workspace"]["id"] = "oper-users";
|
|||
// Users
|
||||
$sub = array();
|
||||
$sub["operation/users/user_edit"]["text"] = __('Edit my user');
|
||||
$sub["operation/users/user_edit"]["id"] = 'Edit my user';
|
||||
$sub["operation/users/user_edit"]["refr"] = 0;
|
||||
|
||||
// ANY user can chat with other user and dogs.
|
||||
// Users
|
||||
$sub["operation/users/webchat"]["text"] = __('WebChat');
|
||||
$sub["operation/users/webchat"]["id"] = 'WebChat';
|
||||
$sub["operation/users/webchat"]["refr"] = 0;
|
||||
|
||||
|
||||
|
@ -334,6 +351,7 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
|
|||
}
|
||||
|
||||
$sub[$sec2]["text"] = __('Incidents');
|
||||
$sub[$sec2]["id"] = 'Incidents';
|
||||
$sub[$sec2]["type"] = "direct";
|
||||
$sub[$sec2]["subtype"] = "nolink";
|
||||
$sub[$sec2]["refr"] = 0;
|
||||
|
@ -352,6 +370,7 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
|
|||
|
||||
// Messages
|
||||
$sub["message_list"]["text"] = __('Messages');
|
||||
$sub["message_list"]["id"] = 'Messages';
|
||||
$sub["message_list"]["refr"] = 0;
|
||||
$sub["message_list"]["type"] = "direct";
|
||||
$sub["message_list"]["subtype"] = "nolink";
|
||||
|
@ -376,17 +395,33 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
$menu_operation["extensions"]["id"] = "oper-extensions";
|
||||
|
||||
$sub = array ();
|
||||
$sub2 = array ();
|
||||
|
||||
$sub["operation/agentes/exportdata"]["text"] = __('Export data');
|
||||
$sub["operation/agentes/exportdata"]["id"] = 'Export data';
|
||||
$sub["operation/agentes/exportdata"]["subsecs"] = array("operation/agentes/exportdata");
|
||||
|
||||
$sub["godmode/agentes/planned_downtime.list"]["text"] = __('Scheduled downtime');
|
||||
$sub["godmode/agentes/planned_downtime.list"]["id"] = 'Scheduled downtime';
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "PM")) {
|
||||
$sub["operation/servers/recon_view"]["text"] = __('Recon view');
|
||||
$sub["operation/servers/recon_view"]["id"] = 'Recon view';
|
||||
$sub["operation/servers/recon_view"]["refr"] = 0;
|
||||
}
|
||||
|
||||
$sub['link']["text"] = __("Links");
|
||||
$sub['link']["id"] = "Links";
|
||||
$rows = db_get_all_rows_in_table('tlink', 'name');
|
||||
foreach ($rows as $row) {
|
||||
// Audit //meter en extensiones
|
||||
|
||||
$sub2[$row['link']]["text"] = $row['name'];
|
||||
$sub2[$row['link']]["type"] = 'direct';
|
||||
$sub2[$row['link']]["subtype"] = 'new_blank';
|
||||
}
|
||||
$sub["link"]["sub2"] = $sub2;
|
||||
|
||||
foreach ($config["extensions"] as $extension) {
|
||||
//If no operation_menu is a godmode extension
|
||||
if ($extension["operation_menu"] == '') {
|
||||
|
@ -401,6 +436,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
continue;
|
||||
}
|
||||
$sub[$extension_menu["sec2"]]["text"] = $extension_menu["name"];
|
||||
$sub[$extension_menu["sec2"]]["id"] = $extension_menu["name"];
|
||||
$sub[$extension_menu["sec2"]]["refr"] = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -410,6 +446,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
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';
|
||||
|
@ -419,6 +456,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
}
|
||||
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';
|
||||
|
@ -429,6 +467,7 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
|||
}
|
||||
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';
|
||||
|
|
Loading…
Reference in New Issue