[Network usage map] Fixed menus and added header.

Former-commit-id: 1cdfc4f7f388f0705b32a362ce8c5f3ac1fb49b2
This commit is contained in:
fermin831 2019-03-25 16:00:57 +01:00
parent f9744ca8c8
commit 4a201bc74b
2 changed files with 11 additions and 5 deletions

View File

@ -97,18 +97,22 @@ if (check_acl($config['id_user'], 0, 'AR')) {
$netflow_sub = array_merge( $netflow_sub = array_merge(
$netflow_sub, $netflow_sub,
[ [
'operation/network/network_explorer' => [ 'operation/network/network_explorer' => [
'text' => __('Network explorer'), 'text' => __('Network explorer'),
'id' => 'Network explorer', 'id' => 'Network explorer',
], ],
]
);
}
if ($config['activate_nta'] || $config['activate_netflow']) {
$netflow_sub = array_merge(
$netflow_sub,
[
'operation/network/network_usage_map' => [ 'operation/network/network_usage_map' => [
'text' => __('Network usage map'), 'text' => __('Network usage map'),
'id' => 'Network usage map', 'id' => 'Network usage map',
], ],
'operation/network/network_dashboard' => [
'text' => __('Network dashboard'),
'id' => 'Network dashboard',
],
] ]
); );
} }

View File

@ -26,6 +26,8 @@ global $config;
check_login(); check_login();
ui_print_page_header(__('Network usage map'));
// ACL Check. // ACL Check.
if (! check_acl($config['id_user'], 0, 'AR')) { if (! check_acl($config['id_user'], 0, 'AR')) {
db_pandora_audit( db_pandora_audit(