$v) { $urlHere[$k] = urlencode($v); } $urlHere = implode('/', $urlHere); $urlHere = $baseurl . $urlHere; $mayChangeCorrelation = !Configure::read('MISP.completely_disable_correlation') && ($isSiteAdmin || ($mayModify && Configure::read('MISP.allow_disabling_correlation'))); $possibleAction = $mayModify ? 'attribute' : 'shadow_attribute'; $all = false; if (isset($this->params->params['paging']['Event']['page'])) { if ($this->params->params['paging']['Event']['page'] == 0) $all = true; $page = $this->params->params['paging']['Event']['page']; // $page is probably unused } else { $page = 0; // $page is probably unused } $fieldCount = 11; $filtered = false; if (isset($passedArgsArray)){ if (count($passedArgsArray) > 0) { $filtered = true; } } ?>
Form->create('Attribute', array('id' => 'delete_selected', 'url' => $deleteSelectedUrl)); echo $this->Form->input('ids_delete', array( 'type' => 'text', 'value' => 'test', 'style' => 'display:none;', 'label' => false, )); echo $this->Form->end(); echo $this->Form->create('ShadowAttribute', array('id' => 'accept_selected', 'url' => $baseurl . '/shadow_attributes/acceptSelected/' . $event['Event']['id'])); echo $this->Form->input('ids_accept', array( 'type' => 'text', 'value' => '', 'style' => 'display:none;', 'label' => false, )); echo $this->Form->end(); echo $this->Form->create('ShadowAttribute', array('id' => 'discard_selected', 'url' => $baseurl . '/shadow_attributes/discardSelected/' . $event['Event']['id'])); echo $this->Form->input('ids_discard', array( 'type' => 'text', 'value' => '', 'style' => 'display:none;', 'label' => false, )); echo $this->Form->end(); if (!isset($attributeFilter)) $attributeFilter = 'all'; ?>
element('eventattributetoolbar', array( 'target' => $target, 'attributeFilter' => $attributeFilter, 'urlHere' => $urlHere, 'filtered' => $filtered, 'mayModify' => $mayModify, 'possibleAction' => $possibleAction )); ?> %s', __('Related Tags')); } $fieldCount += 1; ?> %s', __('SightingDB') ); $fieldCount += 1; } if ($includeDecayScore) { echo sprintf( '', __('Decaying Score'), __('Score') ); $fieldCount += 1; } ?> $object) { echo $this->element('/Events/View/row_' . $object['objectType'], array( 'object' => $object, 'k' => $k, 'mayModify' => $mayModify, 'mayChangeCorrelation' => $mayChangeCorrelation, 'fieldCount' => $fieldCount, 'includeRelatedTags' => !empty($includeRelatedTags) ? 1 : 0, 'includeDecayingScore' => !empty($includeDecayingScore) ? 1 : 0, 'includeSightingdb' => !empty($includeSightingdb) ? 1 : 0 )); if ( ($object['objectType'] === 'attribute' && !empty($object['ShadowAttribute'])) || $object['objectType'] === 'object' ): ?>
Paginator->sort('timestamp', __('Date'), array('direction' => 'desc'));?> Paginator->sort('event_id', __('Event'));?> Paginator->sort('Org.name', __('Org')); ?> Paginator->sort('category');?> Paginator->sort('type');?> Paginator->sort('value');?> Paginator->sort('comment');?> Paginator->sort('to_ids', 'IDS');?> Paginator->sort('distribution');?> %s
Form->create('Sighting', ['id' => 'SightingForm', 'url' => $baseurl . '/sightings/add/', 'style' => 'display:none;']); echo $this->Form->input('id', ['label' => false, 'type' => 'number']); echo $this->Form->input('type', ['label' => false]); echo $this->Form->end(); ?>