mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Added new network menus
Former-commit-id: 885f092dbfcc561cca5bf1bf8c3ba8497d94ffc4
This commit is contained in:
parent
3f53541c5e
commit
cbb4f971a2
@ -65,10 +65,55 @@ if (check_acl($config['id_user'], 0, 'AR')) {
|
|||||||
|
|
||||||
enterprise_hook('inventory_menu');
|
enterprise_hook('inventory_menu');
|
||||||
|
|
||||||
if ($config['activate_netflow']) {
|
if ($config['activate_netflow'] || $config['activate_nta']) {
|
||||||
$sub['operation/netflow/nf_live_view']['text'] = __('Netflow Live View');
|
$sub['network'] = [
|
||||||
$sub['operation/netflow/nf_live_view']['id'] = 'Netflow Live View';
|
'text' => __('Network'),
|
||||||
$sub['operation/netflow/nf_live_view']['refr'] = 0;
|
'id' => 'Network',
|
||||||
|
'type' => 'direct',
|
||||||
|
'subtype' => 'nolink',
|
||||||
|
'refr' => 0,
|
||||||
|
];
|
||||||
|
|
||||||
|
// Initialize the submenu.
|
||||||
|
$netflow_sub = [];
|
||||||
|
|
||||||
|
if ($config['activate_netflow']) {
|
||||||
|
$netflow_sub = array_merge(
|
||||||
|
$netflow_sub,
|
||||||
|
[
|
||||||
|
'operation/netflow/network_explorer' => [
|
||||||
|
'text' => __('Netflow explorer'),
|
||||||
|
'id' => 'Netflow explorer',
|
||||||
|
],
|
||||||
|
'operation/netflow/nf_live_view' => [
|
||||||
|
'text' => __('Netflow Live View'),
|
||||||
|
'id' => 'Netflow Live View',
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($config['activate_nta']) {
|
||||||
|
$netflow_sub = array_merge(
|
||||||
|
$netflow_sub,
|
||||||
|
[
|
||||||
|
'operation/network/network_explorer' => [
|
||||||
|
'text' => __('Network explorer'),
|
||||||
|
'id' => 'Network explorer',
|
||||||
|
],
|
||||||
|
'operation/network/network_usage_map' => [
|
||||||
|
'text' => __('Network usage map'),
|
||||||
|
'id' => 'Network usage map',
|
||||||
|
],
|
||||||
|
'operation/network/network_dashboard' => [
|
||||||
|
'text' => __('Network dashboard'),
|
||||||
|
'id' => 'Network dashboard',
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sub['network']['sub2'] = $netflow_sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['log_collector'] == 1) {
|
if ($config['log_collector'] == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user