mirror of https://github.com/MISP/MISP
67 lines
2.7 KiB
PHP
67 lines
2.7 KiB
PHP
<div class = "index">
|
|
<h2><?php echo __('Statistics');?></h2>
|
|
<?php
|
|
echo $this->element('Users/statisticsMenu');
|
|
?>
|
|
<p><?php echo __('A toplist of the top sources for the sightings of your organisation.');?></p>
|
|
<table class="table table-striped table-hover table-condensed" style="display:block; overflow-y:auto;width:700px;">
|
|
<tr>
|
|
<th><?php echo __('Source');?></th>
|
|
<th><?php echo __('#Entries');?></th>
|
|
<th><?php echo __('#Sighting');?></th>
|
|
<th><?php echo __('#False-positive');?></th>
|
|
<th><?php echo __('Expiration');?></th>
|
|
</tr>
|
|
<?php
|
|
$count = 0;
|
|
foreach ($toplist as $source => $total):
|
|
if ($count > 9) break;
|
|
?>
|
|
<tr>
|
|
<td style="width:20%;"><?php echo empty($source) ? __('Undefined') : h($source);?></td>
|
|
<td style="width:20%;"><?php echo h($total);?></td>
|
|
<td style="width:20%;">
|
|
<?php
|
|
if (isset($data[$source]['sighting'])):
|
|
?>
|
|
<a href="<?php echo $baseurl; ?>/events/index/searcheventid:<?php echo h(implode('|', $eventids[$source]['sighting'])); ?>"><?php echo h($data[$source]['sighting']); ?></a>
|
|
<?php
|
|
else:
|
|
echo '0';
|
|
endif;
|
|
?>
|
|
</td>
|
|
<td style="width:20%;">
|
|
<?php
|
|
if (isset($data[$source]['false-positive'])):
|
|
?>
|
|
<a href="<?php echo $baseurl; ?>/events/index/searcheventid:<?php echo h(implode('|', $eventids[$source]['false-positive'])); ?>"><?php echo h($data[$source]['false-positive']); ?></a>
|
|
<?php
|
|
else:
|
|
echo '0';
|
|
endif;
|
|
?>
|
|
</td>
|
|
<td style="width:20%;">
|
|
<?php
|
|
if (isset($data[$source]['expiration'])):
|
|
?>
|
|
<a href="<?php echo $baseurl; ?>/events/index/searcheventid:<?php echo h(implode('|', $eventids[$source]['expiration'])); ?>"><?php echo h($data[$source]['expiration']); ?></a>
|
|
<?php
|
|
else:
|
|
echo '0';
|
|
endif;
|
|
?>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
endforeach;
|
|
?>
|
|
</table>
|
|
</div>
|
|
<?php
|
|
echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'globalActions', 'menuItem' => 'statistics'));
|
|
?>
|