mirror of https://github.com/MISP/MISP
15 lines
428 B
PHP
15 lines
428 B
PHP
<?php
|
|
if ($field === 'value') {
|
|
echo $this->element('Events/View/value_field', ['object' => $object['Attribute']]);
|
|
} elseif ($field === 'timestamp') {
|
|
echo $this->Time->date($value);
|
|
} else {
|
|
if ($value === 'No') {
|
|
echo '<input type="checkbox" disabled>';
|
|
} else if ($value === 'Yes') {
|
|
echo '<input type="checkbox" checked disabled>';
|
|
} else {
|
|
echo nl2br(h($value), false);
|
|
}
|
|
}
|