mirror of https://github.com/MISP/MISP
59 lines
1.7 KiB
PHP
59 lines
1.7 KiB
PHP
<div class="index">
|
|
<h2>Results of the import: </h2>
|
|
<h3><?php echo count($attributes); ?> attributes created successfully, <?php echo count($fails); ?> indicators could not be mapped and saved. </h3>
|
|
<br /><br />
|
|
<?php
|
|
if (0 != count($attributes)): ?>
|
|
<h4>Successfully added attributes:</h4>
|
|
<table class="table table-striped table-hover table-condensed">
|
|
<tr>
|
|
<th>Uuid</th>
|
|
<th>Category</th>
|
|
<th>Type</th>
|
|
<th>Value</th>
|
|
</tr><?php
|
|
foreach ($attributes as $attribute): ?>
|
|
<tr>
|
|
<td class="short"><?php echo h($attribute['uuid']); ?> </td>
|
|
<td class="short"><?php echo h($attribute['category']); ?> </td>
|
|
<td class="short"><?php echo h($attribute['type']); ?> </td>
|
|
<td class="short"><?php echo h($attribute['value']); ?> </td>
|
|
</tr><?php
|
|
endforeach; ?>
|
|
</table>
|
|
<?php
|
|
endif;?>
|
|
<?php
|
|
if (isset($fails)):?>
|
|
<br /><br />
|
|
<h4>Failed indicators:</h4>
|
|
<table class="table table-striped table-hover table-condensed">
|
|
<tr>
|
|
<th>Uuid</th>
|
|
<th>Search term</th>
|
|
<th>Content</th>
|
|
</tr><?php
|
|
foreach ($fails as $fail): ?>
|
|
<tr>
|
|
<td class="short"><?php echo h($fail['uuid']); ?> </td>
|
|
<td class="short"><?php echo h($fail['search']); ?> </td>
|
|
<td class="short"><?php echo h($fail['value']); ?> </td>
|
|
</tr><?php
|
|
endforeach; ?>
|
|
</table><br /><br />
|
|
<div class="visualisation">
|
|
<h4>Visualisation:</h4>
|
|
<?php
|
|
endif;
|
|
foreach ($graph as $line): ?>
|
|
<div style="white-space:pre-wrap; color: <?php echo ($line[1] ? 'green' : 'red'); ?>"><?php echo h($line[0]); ?>
|
|
</div>
|
|
<?php
|
|
endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
$event['Event']['id'] = $eventId;
|
|
$event['Event']['published'] = 0;
|
|
echo $this->element('side_menu', array('menuList' => 'event', 'menuItem' => 'addIOC', 'event' => $event));
|
|
?>
|