2019-02-15 12:57:45 +01:00
|
|
|
<?php
|
|
|
|
if (!empty($me)) {
|
|
|
|
$menu = array(
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
2020-08-17 17:27:31 +02:00
|
|
|
'url' =>empty($homepage['path']) ? $baseurl .'/' : $baseurl . h($homepage['path']),
|
2019-03-21 15:59:02 +01:00
|
|
|
'html' => (Configure::read('MISP.home_logo') ? $logo = '<img src="' . $baseurl . '/img/custom/' . Configure::read('MISP.home_logo') . '" style="height:24px;">' : __('Home'))
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Event Actions'),
|
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('List Events'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/events/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Event'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/events/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclAdd
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Attributes'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/attributes/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Search Attributes'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/attributes/search'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('REST client'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/rest'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('View Proposals'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/shadow_attributes/index/all:0'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Events with proposals'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/events/proposalEventIndex'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
2020-08-16 13:44:53 +02:00
|
|
|
'url' => $baseurl . '/event_delegations/index/context:pending',
|
2019-08-23 11:38:47 +02:00
|
|
|
'text' => __('View delegation requests')
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Tags'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/tags/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Tag Collections'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/tag_collections/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Tag'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/tags/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclTagEditor
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Taxonomies'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/taxonomies/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Templates'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/templates/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Template'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/templates/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclTemplate
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Export'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/events/export'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Automation'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/events/automation',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclAuth
|
2020-08-21 13:41:48 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
'requirement' =>
|
|
|
|
Configure::read('MISP.enableEventBlacklisting') !== false &&
|
|
|
|
!$isSiteAdmin &&
|
|
|
|
(int)$me['org_id'] === (int)Configure::read('MISP.host_org_id')
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Blacklist Event'),
|
|
|
|
'url' => $baseurl . '/eventBlacklists/add',
|
|
|
|
'requirement' =>
|
|
|
|
Configure::read('MISP.enableEventBlacklisting') !== false &&
|
|
|
|
!$isSiteAdmin &&
|
|
|
|
(int)$me['org_id'] === (int)Configure::read('MISP.host_org_id')
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Manage Event Blacklists'),
|
|
|
|
'url' => $baseurl . '/eventBlacklists',
|
|
|
|
'requirement' =>
|
|
|
|
Configure::read('MISP.enableEventBlacklisting') !== false &&
|
|
|
|
!$isSiteAdmin &&
|
|
|
|
(int)$me['org_id'] === (int)Configure::read('MISP.host_org_id')
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Galaxies'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/galaxies/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('List Galaxies'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/galaxies/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Input Filters'),
|
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('Import Regexp'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/regexp/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclRegexp
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Import Regexp'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/regexp/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => !$isAclRegexp
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Signature Whitelist'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/whitelists/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclRegexp
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Signature Whitelist'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/whitelists/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => !$isAclRegexp
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Warninglists'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/warninglists/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Noticelists'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/noticelists/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Global Actions'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/dashboards',
|
2019-02-15 12:57:45 +01:00
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('News'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/news'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('My Profile'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/users/view/me'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
2019-09-25 11:50:54 +02:00
|
|
|
array(
|
|
|
|
'text' => __('My Settings'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/user_settings/index/user_id:me'
|
2019-09-25 11:50:54 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Set Setting'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/user_settings/setSetting'
|
2019-09-25 11:50:54 +02:00
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'text' => __('Dashboard'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/dashboards'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Organisations'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/organisations/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclSharingGroup || empty(Configure::read('Security.hide_organisation_index_from_users'))
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Role Permissions'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/roles/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Object Templates'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/objectTemplates/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Sharing Groups'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/sharing_groups/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Sharing Group'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/sharing_groups/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isAclSharingGroup
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
2019-08-19 15:19:01 +02:00
|
|
|
array(
|
|
|
|
'text' => __('Decaying Models Tool'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/decayingModel/decayingTool',
|
2019-08-19 15:19:01 +02:00
|
|
|
'requirement' => $isAdmin
|
|
|
|
),
|
|
|
|
array(
|
2019-09-27 15:39:10 +02:00
|
|
|
'text' => __('List Decaying Models'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/decayingModel/index',
|
2019-08-19 15:19:01 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'text' => __('User Guide'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . 'https://www.circl.lu/doc/misp/'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Categories & Types'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/pages/display/doc/categories_and_types'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
2019-02-15 15:53:01 +01:00
|
|
|
'text' => __('Terms & Conditions'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/users/terms'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Statistics'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/users/statistics'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Discussions'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/threads/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Start Discussion'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/posts/add'
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Sync Actions'),
|
|
|
|
'requirement' => ($isAclSync || $isAdmin || $hostOrgUser),
|
|
|
|
'children' => array(
|
2019-05-30 14:42:29 +02:00
|
|
|
array(
|
|
|
|
'text' => __('Create Sync Config'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/createSync',
|
2019-05-30 14:42:29 +02:00
|
|
|
'requirement' => ($isAclSync && !$isSiteAdmin)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Import Server Settings'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/import',
|
2019-05-30 14:42:29 +02:00
|
|
|
'requirement' => ($isSiteAdmin)
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'text' => __('List Servers'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => ($isAclSync || $isAdmin)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Feeds'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/feeds/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => ($isSiteAdmin || $hostOrgUser)
|
2019-04-01 16:09:24 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Search Feed Caches'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/feeds/searchCaches',
|
2019-04-01 16:09:24 +02:00
|
|
|
'requirement' => ($isSiteAdmin || $hostOrgUser)
|
2019-08-29 10:03:17 +02:00
|
|
|
),
|
2019-11-06 21:20:04 +01:00
|
|
|
array(
|
|
|
|
'text' => __('List SightingDB Connections'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/sightingdb/index',
|
2019-11-06 21:20:04 +01:00
|
|
|
'requirement' => ($isSiteAdmin)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add SightingDB Connection'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/sightingdb/add',
|
2019-11-06 21:20:04 +01:00
|
|
|
'requirement' => ($isSiteAdmin)
|
|
|
|
),
|
2019-08-29 10:03:17 +02:00
|
|
|
array(
|
|
|
|
'text' => __('List Communities'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/communities/index',
|
2019-08-29 10:03:17 +02:00
|
|
|
'requirement' => ($isSiteAdmin)
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Administration'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/serverSettings',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => ($isAdmin),
|
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('List Users'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/users/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
2019-09-25 11:50:54 +02:00
|
|
|
array(
|
|
|
|
'text' => __('List User Settings'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/user_settings/index/user_id:all'
|
2019-09-25 11:50:54 +02:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Set User Setting'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/user_settings/setSetting'
|
2019-09-25 11:50:54 +02:00
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'text' => __('Add User'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/users/add'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Contact Users'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/users/email'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
2020-04-07 13:21:01 +02:00
|
|
|
array(
|
|
|
|
'text' => __('User Registrations'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/users/registrations'
|
2020-04-07 13:21:01 +02:00
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Organisations'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/organisations/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Organisations'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/organisations/add'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('List Roles'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/roles/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Add Roles'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/roles/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isSiteAdmin
|
|
|
|
),
|
2019-03-05 14:54:19 +01:00
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'text' => __('Server Settings & Maintenance'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/serverSettings',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
'requirement' => Configure::read('MISP.background_jobs') && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Jobs'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/jobs/index',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.background_jobs') && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
'requirement' => Configure::read('MISP.background_jobs') && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Scheduled Tasks'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/tasks',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.background_jobs') && $isSiteAdmin
|
|
|
|
),
|
2020-06-30 10:45:36 +02:00
|
|
|
array(
|
|
|
|
'text' => __('Event Block Rules'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/servers/eventBlockRule',
|
2020-06-30 10:45:36 +02:00
|
|
|
'requirement' => $isSiteAdmin
|
|
|
|
),
|
2019-02-15 12:57:45 +01:00
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
'requirement' => Configure::read('MISP.enableEventBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Blacklist Event'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/eventBlacklists/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.enableEventBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Manage Event Blacklists'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/eventBlacklists',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.enableEventBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'separator',
|
|
|
|
'requirement' => Configure::read('MISP.enableEventBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Blacklist Organisation'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/orgBlacklists/add',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.enableOrgBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Manage Org Blacklists'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/orgBlacklists',
|
2019-02-15 12:57:45 +01:00
|
|
|
'requirement' => Configure::read('MISP.enableOrgBlacklisting') !== false && $isSiteAdmin
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
|
|
|
'text' => __('Audit'),
|
|
|
|
'requirement' => ($isAclAudit),
|
|
|
|
'children' => array(
|
|
|
|
array(
|
|
|
|
'text' => __('List Logs'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/logs/index'
|
2019-02-15 12:57:45 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'text' => __('Search Logs'),
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/admin/logs/search'
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$menu_right = array(
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
2020-03-01 18:05:21 +01:00
|
|
|
'url' => '#',
|
2020-03-02 23:05:40 +01:00
|
|
|
'html' => sprintf(
|
2020-08-21 15:57:06 +02:00
|
|
|
'<span class="fas fa-star %s" id="setHomePage" title="%s" role="img" aria-label="%s" data-current-page="%s"></span>',
|
2020-07-13 12:19:11 +02:00
|
|
|
(!empty($homepage['path']) && $homepage['path'] === $this->here) ? 'orange' : '',
|
2020-08-21 15:57:06 +02:00
|
|
|
__('Set the current page as your home page in MISP'),
|
|
|
|
__('Set the current page as your home page in MISP'),
|
2020-07-13 12:19:11 +02:00
|
|
|
$this->here
|
2020-03-02 23:05:40 +01:00
|
|
|
)
|
2020-03-01 18:05:21 +01:00
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
2020-03-02 10:30:24 +01:00
|
|
|
'url' =>empty($homepage['path']) ? $baseurl : $baseurl . h($homepage['path']),
|
2019-02-15 12:57:45 +01:00
|
|
|
'html' => '<span class="logoBlueStatic bold" id="smallLogo">MISP</span>'
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'type' => 'root',
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/dashboards',
|
2019-02-15 12:57:45 +01:00
|
|
|
'html' => sprintf(
|
2019-08-02 10:45:55 +02:00
|
|
|
'<span class="white" title="%s">%s%s %s</span>',
|
2019-02-15 12:57:45 +01:00
|
|
|
h($me['email']),
|
2019-08-02 10:45:55 +02:00
|
|
|
$this->UserName->prepend($me['email']),
|
2019-02-15 12:57:45 +01:00
|
|
|
h($loggedInUserName),
|
|
|
|
sprintf(
|
2020-08-21 15:57:06 +02:00
|
|
|
'<i class="fa fa-envelope %s" role="img" aria-label="%s"></i>',
|
|
|
|
(($notifications['total'] == 0) ? 'white' : 'red'),
|
|
|
|
__('Notifications') . ': ' . $notifications['total']
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
),
|
|
|
|
array(
|
2020-08-16 13:31:31 +02:00
|
|
|
'url' => $baseurl . '/users/logout',
|
2019-02-16 18:20:19 +01:00
|
|
|
'text' => __('Log out'),
|
2020-01-23 16:46:02 +01:00
|
|
|
'requirement' => empty(Configure::read('Plugin.CustomAuth_disable_logout'))
|
2019-02-15 12:57:45 +01:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
?>
|
2019-02-15 15:53:01 +01:00
|
|
|
<div id="topBar" class="navbar navbar-inverse <?php echo $debugMode;?>" style="z-index: 20;">
|
2019-02-15 12:57:45 +01:00
|
|
|
<div class="navbar-inner">
|
|
|
|
<ul class="nav">
|
|
|
|
<?php
|
|
|
|
if (!empty($menu)) {
|
|
|
|
foreach ($menu as $root_element) {
|
|
|
|
echo $this->element('/genericElements/GlobalMenu/global_menu_root', array('data' => $root_element));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav pull-right">
|
|
|
|
<?php
|
|
|
|
if (!empty($menu_right)) {
|
|
|
|
foreach ($menu_right as $root_element) {
|
|
|
|
echo $this->element('/genericElements/GlobalMenu/global_menu_root', array('data' => $root_element));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-03-06 09:20:05 +01:00
|
|
|
</div>
|
2020-08-17 17:27:31 +02:00
|
|
|
<input type="hidden" class="keyboardShortcutsConfig" value="/shortcuts/global_menu.json" />
|
2020-03-02 23:05:40 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#setHomePage').click(function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
setHomePage();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
</script>
|