- View/Feeds -> __(' done

pull/2791/head
Steve Clement 2018-01-09 20:53:34 +01:00
parent c39f355268
commit 203d8b3a48
8 changed files with 134 additions and 134 deletions

View File

@ -1,8 +1,8 @@
<div class="feed form">
<?php echo $this->Form->create('Feed');?>
<fieldset>
<legend>Add MISP Feed</legend>
<p>Add a new MISP feed source.</p>
<legend><?php echo __('Add MISP Feed');?></legend>
<p><?php echo __('Add a new MISP feed source.');?></p>
<?php
echo $this->Form->input('enabled', array());
?>
@ -11,16 +11,16 @@
echo $this->Form->input('lookup_visible', array());
echo $this->Form->input('name', array(
'div' => 'input clear',
'placeholder' => 'Feed name',
'placeholder' => __('Feed name'),
'class' => 'form-control span6',
));
echo $this->Form->input('provider', array(
'div' => 'input clear',
'placeholder' => 'Name of the content provider',
'placeholder' => __('Name of the content provider'),
'class' => 'form-control span6'
));
echo $this->Form->input('input_source', array(
'label' => 'Source Format',
'label' => __('Source Format'),
'div' => 'input clear',
'options' => array('network' => 'Network', 'local' => 'Local'),
'class' => 'form-control span6'
@ -30,7 +30,7 @@
<div id="DeleteLocalFileDiv" class="optionalField">
<?php
echo $this->Form->input('delete_local_file', array(
'label' => 'Remove input after ingestion'
'label' => __('Remove input after ingestion')
));
?>
</div>
@ -38,11 +38,11 @@
<?php
echo $this->Form->input('url', array(
'div' => 'input clear',
'placeholder' => 'URL of the feed',
'placeholder' => __('URL of the feed'),
'class' => 'form-control span6'
));
echo $this->Form->input('source_format', array(
'label' => 'Source Format',
'label' => __('Source Format'),
'div' => 'input clear',
'options' => $feed_types,
'class' => 'form-control span6'
@ -51,7 +51,7 @@
<div id="TargetDiv" class="optionalField">
<?php
echo $this->Form->input('fixed_event', array(
'label' => 'Target Event',
'label' => __('Target Event'),
'div' => 'input clear',
'options' => array('New Event Each Pull', 'Fixed Event'),
'class' => 'form-control span6'
@ -61,9 +61,9 @@
<div id="TargetEventDiv" class="optionalField">
<?php
echo $this->Form->input('target_event', array(
'label' => 'Target Event ID',
'label' => __('Target Event ID'),
'div' => 'input clear',
'placeholder' => 'Leave blank unless you want to reuse an existing event.',
'placeholder' => __('Leave blank unless you want to reuse an existing event.'),
'class' => 'form-control span6'
));
?>
@ -71,10 +71,10 @@
<div id="settingsCsvValueDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.csv.value', array(
'label' => 'Value field(s) in the CSV',
'title' => 'Select one or several fields that should be parsed by the CSV parser and converted into MISP attributes',
'label' => __('Value field(s) in the CSV'),
'title' => __('Select one or several fields that should be parsed by the CSV parser and converted into MISP attributes'),
'div' => 'input clear',
'placeholder' => '2,3,4 (column position separated by commas)',
'placeholder' => __('2,3,4 (column position separated by commas)'),
'class' => 'form-control span6'
));
?>
@ -82,8 +82,8 @@
<div id="settingsCsvDelimiterDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.csv.delimiter', array(
'label' => 'Delimiter',
'title' => 'Set the default CSV delimiter (default = ",")',
'label' => __('Delimiter'),
'title' => __('Set the default CSV delimiter (default = ",")'),
'div' => 'input clear',
'placeholder' => ',',
'class' => 'form-control span6',
@ -94,10 +94,10 @@
<div id="settingsCommonExcluderegexDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.common.excluderegex', array(
'label' => 'Exclusion Regex',
'title' => 'Add a regex pattern for detecting iocs that should be skipped (this can be useful to exclude any references to the actual report / feed for example)',
'label' => __('Exclusion Regex'),
'title' => __('Add a regex pattern for detecting iocs that should be skipped (this can be useful to exclude any references to the actual report / feed for example)'),
'div' => 'input clear',
'placeholder' => 'Regex pattern, for example: "/^https://myfeedurl/i',
'placeholder' => __('Regex pattern, for example: "/^https://myfeedurl/i'),
'class' => 'form-control span6'
));
?>
@ -105,8 +105,8 @@
<div id="PublishDiv" class="input clear optionalField">
<?php
echo $this->Form->input('publish', array(
'label' => 'Auto Publish',
'title' => 'Publish events directly after pulling the feed - if you would like to review the event before publishing uncheck this',
'label' => __('Auto Publish'),
'title' => __('Publish events directly after pulling the feed - if you would like to review the event before publishing uncheck this'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -115,8 +115,8 @@
<div id="OverrideIdsDiv" class="input clear optionalField">
<?php
echo $this->Form->input('override_ids', array(
'label' => 'Override IDS Flag',
'title' => 'If checked, the IDS flags will always be set to off when pulling from this feed',
'label' => __('Override IDS Flag'),
'title' => __('If checked, the IDS flags will always be set to off when pulling from this feed'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -125,8 +125,8 @@
<div id="DeltaMergeDiv" class="input clear optionalField">
<?php
echo $this->Form->input('delta_merge', array(
'label' => 'Delta Merge',
'title' => 'Merge attributes (only add new attributes, remove revoked attributes)',
'label' => __('Delta Merge'),
'title' => __('Merge attributes (only add new attributes, remove revoked attributes)'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -136,7 +136,7 @@
echo $this->Form->input('distribution', array(
'options' => array($distributionLevels),
'div' => 'input clear',
'label' => 'Distribution',
'label' => __('Distribution'),
'selected' => 3,
));
?>
@ -145,7 +145,7 @@
if (!empty($sharingGroups)) {
echo $this->Form->input('sharing_group_id', array(
'options' => array($sharingGroups),
'label' => 'Sharing Group',
'label' => __('Sharing Group'),
));
}
?>
@ -154,20 +154,20 @@
<?php
echo $this->Form->input('tag_id', array(
'options' => $tags,
'label' => 'Default Tag',
'label' => __('Default Tag'),
'selected' => 0,
));
echo $this->Form->input('pull_rules', array('style' => 'display:none;', 'label' => false, 'div' => false));
?>
</fieldset>
<b>Filter rules:</b><br />
<span id="pull_tags_OR" style="display:none;">Events with the following tags allowed: <span id="pull_tags_OR_text" style="color:green;"></span><br /></span>
<span id="pull_tags_NOT" style="display:none;">Events with the following tags blocked: <span id="pull_tags_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_orgs_OR" style="display:none;">Events with the following organisations allowed: <span id="pull_orgs_OR_text" style="color:green;"></span><br /></span>
<span id="pull_orgs_NOT" style="display:none;">Events with the following organisations blocked: <span id="pull_orgs_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_modify" class="btn btn-inverse" style="line-height:10px; padding: 4px 4px;">Modify</span><br /><br />
<b><?php echo __('Filter rules');?>:</b><br />
<span id="pull_tags_OR" style="display:none;"><?php echo __('Events with the following tags allowed');?>: <span id="pull_tags_OR_text" style="color:green;"></span><br /></span>
<span id="pull_tags_NOT" style="display:none;"><?php echo __('Events with the following tags blocked');?>: <span id="pull_tags_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_orgs_OR" style="display:none;"><?php echo __('Events with the following organisations allowed');?>: <span id="pull_orgs_OR_text" style="color:green;"></span><br /></span>
<span id="pull_orgs_NOT" style="display:none;"><?php echo __('Events with the following organisations blocked');?>: <span id="pull_orgs_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_modify" class="btn btn-inverse" style="line-height:10px; padding: 4px 4px;"><?php echo __('Modify');?></span><br /><br />
<?php
echo $this->Form->button('Add', array('class' => 'btn btn-primary'));
echo $this->Form->button(__('Add'), array('class' => 'btn btn-primary'));
echo $this->Form->end();
?>
<div id="hiddenRuleForms">

View File

@ -4,7 +4,7 @@
);
?>
<div class="feed index">
<h2>Feed overlap analysis matrix</h2>
<h2><?php echo __('Feed overlap analysis matrix');?></h2>
<div>
<table class="table table-striped table-hover table-condensed" style="width:100px;">
<tr>
@ -52,8 +52,8 @@
endif;
endforeach;
$title = '';
if ($percentage == 0) $popover = 'None or less than 1% of the data of ' . $item['Feed']['name'] . ' is contained in ' . $item2['Feed']['name'] . ' (' . $v['overlap_count'] . ' matching values)';
else if ($percentage > 0) $popover = $percentage . '% of the data of ' . $item['Feed']['name'] . ' is contained in ' . $item2['Feed']['name'] . ' (' . $v['overlap_count'] . ' matching values)';
if ($percentage == 0) $popover = __('None or less than 1% of the data of %s is contained in %s (%s matching values)', $item['Feed']['name'], $item2['Feed']['name'], $v['overlap_count']);
else if ($percentage > 0) $popover = __('%s\% of the data of %s is contained in %s (%s matching values)',$percentage, $item['Feed']['name'], $item2['Feed']['name'], $v['overlap_count'], ;
?>
<td class="<?php echo h($class); ?>">
<div data-toggle="popover" data-content="<?php echo h($popover);?>" data-trigger="hover">

View File

@ -1,8 +1,8 @@
<div class="feed form">
<?php echo $this->Form->create('Feed');?>
<fieldset>
<legend>Edit MISP Feed</legend>
<p>Edit a new MISP feed source.</p>
<legend><?php echo __('Edit MISP Feed');?></legend>
<p><?php echo __('Edit a new MISP feed source.');?></p>
<?php
echo $this->Form->input('enabled', array());
?>
@ -11,16 +11,16 @@
echo $this->Form->input('lookup_visible', array());
echo $this->Form->input('name', array(
'div' => 'input clear',
'placeholder' => 'Feed name',
'placeholder' => __('Feed name'),
'class' => 'form-control span6',
));
echo $this->Form->input('provider', array(
'div' => 'input clear',
'placeholder' => 'Name of the content provider',
'placeholder' => __('Name of the content provider'),
'class' => 'form-control span6'
));
echo $this->Form->input('input_source', array(
'label' => 'Source Format',
'label' => __('Source Format'),
'div' => 'input clear',
'options' => array('network' => 'Network', 'local' => 'Local'),
'class' => 'form-control span6'
@ -30,7 +30,7 @@
<div id="DeleteLocalFileDiv" class="optionalField">
<?php
echo $this->Form->input('delete_local_file', array(
'label' => 'Remove input after ingestion'
'label' => __('Remove input after ingestion')
));
?>
</div>
@ -38,11 +38,11 @@
<?php
echo $this->Form->input('url', array(
'div' => 'input clear',
'placeholder' => 'URL of the feed',
'placeholder' => __('URL of the feed'),
'class' => 'form-control span6'
));
echo $this->Form->input('source_format', array(
'label' => 'Source Format',
'label' => __('Source Format'),
'div' => 'input clear',
'options' => $feed_types,
'class' => 'form-control span6'
@ -51,7 +51,7 @@
<div id="TargetDiv" class="optionalField">
<?php
echo $this->Form->input('fixed_event', array(
'label' => 'Target Event',
'label' => __('Target Event'),
'div' => 'input clear',
'options' => array('New Event Each Pull', 'Fixed Event'),
'class' => 'form-control span6'
@ -61,9 +61,9 @@
<div id="TargetEventDiv" class="optionalField">
<?php
echo $this->Form->input('target_event', array(
'label' => 'Target Event ID',
'label' => __('Target Event ID'),
'div' => 'input clear',
'placeholder' => 'Leave blank unless you want to reuse an existing event.',
'placeholder' => __('Leave blank unless you want to reuse an existing event.'),
'class' => 'form-control span6'
));
?>
@ -71,10 +71,10 @@
<div id="settingsCsvValueDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.csv.value', array(
'label' => 'Value field(s) in the CSV',
'title' => 'Select one or several fields that should be parsed by the CSV parser and converted into MISP attributes',
'label' => __('Value field(s) in the CSV'),
'title' => __('Select one or several fields that should be parsed by the CSV parser and converted into MISP attributes'),
'div' => 'input clear',
'placeholder' => '2,3,4 (column position separated by commas)',
'placeholder' => __('2,3,4 (column position separated by commas)'),
'class' => 'form-control span6'
));
?>
@ -82,8 +82,8 @@
<div id="settingsCsvDelimiterDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.csv.delimiter', array(
'label' => 'Delimiter',
'title' => 'Set the default CSV delimiter (default = ",")',
'label' => __('Delimiter'),
'title' => __('Set the default CSV delimiter (default = ",")'),
'div' => 'input clear',
'placeholder' => ',',
'class' => 'form-control span6'
@ -93,10 +93,10 @@
<div id="settingsCommonExcluderegexDiv" class="optionalField">
<?php
echo $this->Form->input('Feed.settings.common.excluderegex', array(
'label' => 'Exclusion Regex',
'title' => 'Add a regex pattern for detecting iocs that should be skipped (this can be useful to exclude any references to the actual report / feed for example)',
'label' => __('Exclusion Regex'),
'title' => __('Add a regex pattern for detecting iocs that should be skipped (this can be useful to exclude any references to the actual report / feed for example)'),
'div' => 'input clear',
'placeholder' => 'Regex pattern, for example: "/^https://myfeedurl/i"',
'placeholder' => __('Regex pattern, for example: "/^https://myfeedurl/i"'),
'class' => 'form-control span6'
));
?>
@ -104,7 +104,7 @@
<div id="PublishDiv" class="input clear optionalField">
<?php
echo $this->Form->input('publish', array(
'label' => 'Auto Publish',
'label' => __('Auto Publish'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -113,8 +113,8 @@
<div id="OverrideIdsDiv" class="input clear optionalField">
<?php
echo $this->Form->input('override_ids', array(
'label' => 'Override IDS Flag',
'title' => 'If checked, the IDS flags will always be set to off when pulling from this feed',
'label' => __('Override IDS Flag'),
'title' => __('If checked, the IDS flags will always be set to off when pulling from this feed'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -123,8 +123,8 @@
<div id="DeltaMergeDiv" class="input clear optionalField">
<?php
echo $this->Form->input('delta_merge', array(
'label' => 'Delta Merge',
'title' => 'Merge attributes (only add new attributes, remove revoked attributes)',
'label' => __('Delta Merge'),
'title' => __('Merge attributes (only add new attributes, remove revoked attributes)'),
'type' => 'checkbox',
'class' => 'form-control'
));
@ -134,7 +134,7 @@
echo $this->Form->input('distribution', array(
'options' => array($distributionLevels),
'div' => 'input clear',
'label' => 'Distribution',
'label' => __('Distribution'),
));
?>
<div id="SGContainer" style="display:none;">
@ -142,7 +142,7 @@
if (!empty($sharingGroups)) {
echo $this->Form->input('sharing_group_id', array(
'options' => array($sharingGroups),
'label' => 'Sharing Group',
'label' => __('Sharing Group'),
));
}
?>
@ -151,19 +151,19 @@
<?php
echo $this->Form->input('tag_id', array(
'options' => $tags,
'label' => 'Default Tag',
'label' => __('Default Tag'),
));
echo $this->Form->input('pull_rules', array('style' => 'display:none;', 'label' => false, 'div' => false));
?>
</fieldset>
<b>Filter rules:</b><br />
<span id="pull_tags_OR" style="display:none;">Events with the following tags allowed: <span id="pull_tags_OR_text" style="color:green;"></span><br /></span>
<span id="pull_tags_NOT" style="display:none;">Events with the following tags blocked: <span id="pull_tags_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_orgs_OR" style="display:none;">Events with the following organisations allowed: <span id="pull_orgs_OR_text" style="color:green;"></span><br /></span>
<span id="pull_orgs_NOT" style="display:none;">Events with the following organisations blocked: <span id="pull_orgs_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_modify" class="btn btn-inverse" style="line-height:10px; padding: 4px 4px;">Modify</span><br /><br />
<b><?php echo __('Filter rules');?>:</b><br />
<span id="pull_tags_OR" style="display:none;"><?php echo __('Events with the following tags allowed');?>: <span id="pull_tags_OR_text" style="color:green;"></span><br /></span>
<span id="pull_tags_NOT" style="display:none;"><?php echo __('Events with the following tags blocked');?>: <span id="pull_tags_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_orgs_OR" style="display:none;"><?php echo __('Events with the following organisations allowed');?>: <span id="pull_orgs_OR_text" style="color:green;"></span><br /></span>
<span id="pull_orgs_NOT" style="display:none;"><?php echo __('Events with the following organisations blocked');?>: <span id="pull_orgs_NOT_text" style="color:red;"></span><br /></span>
<span id="pull_modify" class="btn btn-inverse" style="line-height:10px; padding: 4px 4px;"><?php echo __('Modify');?></span><br /><br />
<?php
echo $this->Form->button('Edit', array('class' => 'btn btn-primary'));
echo $this->Form->button(__('Edit'), array('class' => 'btn btn-primary'));
echo $this->Form->end();
?>
<div id="hiddenRuleForms">
@ -176,16 +176,16 @@
<script type="text/javascript">
//
var formInfoValues = {
'ServerUrl' : "The base-url to the external server you want to sync with. Example: https://foo.sig.mil.be",
'ServerName' : "A name that will make it clear to your users what this instance is. For example: Organisation A's instance",
'ServerOrganization' : "The organization having the external server you want to sync with. Example: BE",
'ServerAuthkey' : "You can find the authentication key on your profile on the external server.",
'ServerPush' : "Allow the upload of events and their attributes.",
'ServerPull' : "Allow the download of events and their attributes from the server.",
'ServerUnpublishEvent' : 'Unpublish new event (working with Push event).',
'ServerPublishWithoutEmail' : 'Publish new event without email (working with Pull event).',
'ServerSubmittedCert' : "You can also upload a certificate file if the instance you are trying to connect to has its own signing authority.",
'ServerSelfSigned' : "Click this, if you would like to allow a connection despite the other instance using a self-signed certificate (not recommended)."
'ServerUrl' : "<?php echo __('The base-url to the external server you want to sync with. Example: https://foo.sig.mil.be');?>",
'ServerName' : "<?php echo __('A name that will make it clear to your users what this instance is. For example: Organisation A\'s instance');?>",
'ServerOrganization' : "<?php echo __('The organization having the external server you want to sync with. Example: BE');?>",
'ServerAuthkey' : "<?php echo __('You can find the authentication key on your profile on the external server.');?>",
'ServerPush' : "<?php echo __('Allow the upload of events and their attributes.');?>",
'ServerPull' : "<?php echo __('Allow the download of events and their attributes from the server.');?>",
'ServerUnpublishEvent' : '<?php echo __('Unpublish new event (working with Push event).');?>',
'ServerPublishWithoutEmail' : '<?php echo __('Publish new event without email (working with Pull event).');?>',
'ServerSubmittedCert' : "<?php echo __('You can also upload a certificate file if the instance you are trying to connect to has its own signing authority.');?>",
'ServerSelfSigned' : "<?php echo __('Click this, if you would like to allow a connection despite the other instance using a self-signed certificate (not recommended).');?>"
};

View File

@ -1,10 +1,10 @@
<div class="attributes index">
<h2>Parsed attributes from feed <?php echo h($feed['Feed']['name']);?></h2>
<h2><?php echo __('Parsed attributes from feed ');?><?php echo h($feed['Feed']['name']);?></h2>
<?php
echo $this->Form->create('Feed', array('url' => array('controller' => 'feeds', 'action' => 'fetchSelectedFromFreetextIndex', $feed['Feed']['id'])));
echo $this->Form->input('data', array('style' => 'display:none;', 'label' => false, 'div' => false));
?>
<span id="FetchSelected" class="btn btn-inverse">Fetch selected</span>
<span id="FetchSelected" class="btn btn-inverse"><?php echo __('Fetch selected');?></span>
<?php
echo $this->Form->end();
?>
@ -28,12 +28,12 @@
<table class="table table-striped table-hover table-condensed">
<tr>
<th><input class="select_all" type="checkbox" onClick="toggleAllAttributeCheckboxes();" /></th>
<th>Category</th>
<th>Type</th>
<th>Value</th>
<th>IDS</th>
<th>Correlations</th>
<th>Distribution</th>
<th><?php echo __('Category');?></th>
<th><?php echo __('Type');?></th>
<th><?php echo __('Value');?></th>
<th><?php echo __('IDS');?></th>
<th><?php echo __('Correlations');?></th>
<th><?php echo __('Distribution');?></th>
</tr>
<?php
foreach ($attributes as $key => $attribute):

View File

@ -1,13 +1,13 @@
<div class="feed form">
<?php echo $this->Form->create('Feed');?>
<fieldset>
<legend>Paste feed data</legend>
<p>Paste a MISP feed metadata JSON below to add feeds.</p>
<legend><?php echo __('Paste feed data');?></legend>
<p><?php echo __('Paste a MISP feed metadata JSON below to add feeds.');?></p>
<div>
<?php
echo $this->Form->input('json', array(
'div' => 'input clear',
'placeholder' => 'Feed metadata JSON',
'placeholder' => __('Feed metadata JSON'),
'class' => 'form-control span6',
'type' => 'textarea',
'rows' => 18
@ -16,7 +16,7 @@
</div>
</fieldset>
<?php
echo $this->Form->button('Add', array('class' => 'btn btn-primary'));
echo $this->Form->button(__('Add'), array('class' => 'btn btn-primary'));
echo $this->Form->end();
?>
</div>

View File

@ -1,10 +1,10 @@
<div class="feed index">
<h2><?php echo __('Feeds');?></h2>
<h4>Generate feed lookup caches</h4>
<h4><?php echo __('Generate feed lookup caches');?></h4>
<div class="toggleButtons">
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/all" class="toggle-left qet btn btn-inverse">All</a>
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/freetext" class="toggle qet btn btn-inverse">Freetext/CSV</a>
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/misp" class="toggle-right qet btn btn-inverse">MISP</a>
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/all" class="toggle-left qet btn btn-inverse"><?php echo __('All');?></a>
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/freetext" class="toggle qet btn btn-inverse"><?php echo __('Freetext/CSV');?></a>
<a href="<?php echo $baseurl; ?>/feeds/cacheFeeds/misp" class="toggle-right qet btn btn-inverse"><?php echo __('MISP');?></a>
</div><br />
<div class="pagination">
<ul>
@ -23,23 +23,23 @@
</ul>
</div>
<div class="tabMenuFixedContainer" style="display:inline-block;">
<span role="button" tabindex="0" aria-label="Default feeds filter" title="Default feeds" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'default' ? 'tabMenuActive' : ''; ?>" onclick="window.location='/feeds/index/scope:default'">Default feeds</span>
<span role="button" tabindex="0" aria-label="Custom feeds filter" title="Custom feeds" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'custom' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:custom'">Custom Feeds</span>
<span role="button" tabindex="0" aria-label="All feeds" title="All feeds" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'all' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:all'">All Feeds</span>
<span role="button" tabindex="0" aria-label="Enabled feeds" title="Enabled feeds" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'enabled' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:enabled'">Enabled Feeds</span>
<span role="button" tabindex="0" aria-label="<?php echo __('Default feeds filter');?>" title="<?php echo __('Default feeds');?>" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'default' ? 'tabMenuActive' : ''; ?>" onclick="window.location='/feeds/index/scope:default'"><?php echo __('Default feeds');?></span>
<span role="button" tabindex="0" aria-label="<?php echo __('Custom feeds filter');?>" title="<?php echo __('Custom feeds');?>" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'custom' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:custom'"><?php echo __('Custom Feeds');?></span>
<span role="button" tabindex="0" aria-label="<?php echo __('All feeds');?>" title="<?php echo __('All feeds');?>" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'all' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:all'"><?php echo __('All Feeds');?></span>
<span role="button" tabindex="0" aria-label="<?php echo __('Enabled feeds');?>" title="<?php echo __('Enabled feeds');?>" class="tabMenuFixed tabMenuFixedCenter tabMenuSides useCursorPointer <?php echo $scope == 'enabled' ? 'tabMenuActive' : ''; ?> " onclick="window.location='/feeds/index/scope:enabled'"><?php echo __('Enabled Feeds');?></span>
</div>
<table class="table table-striped table-hover table-condensed">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<th><?php echo $this->Paginator->sort('name');?></th>
<th><?php echo $this->Paginator->sort('source_format', 'Feed Format');?></th>
<th><?php echo $this->Paginator->sort('source_format', __('Feed Format'));?></th>
<th><?php echo $this->Paginator->sort('provider');?></th>
<th><?php echo $this->Paginator->sort('input_source', 'Input');?></th>
<th><?php echo $this->Paginator->sort('input_source', __('Input'));?></th>
<th><?php echo $this->Paginator->sort('url');?></th>
<th>Target</th>
<th>Publish</th>
<th>Delta Merge</th>
<th>Override IDS</th>
<th><?php echo __('Target');?></th>
<th><?php echo __('Publish');?></th>
<th><?php echo __('Delta Merge');?></th>
<th><?php echo __('Override IDS');?></th>
<th><?php echo $this->Paginator->sort('distribution');?></th>
<th><?php echo $this->Paginator->sort('tag');?></th>
<th><?php echo $this->Paginator->sort('enabled');?></th>
@ -91,15 +91,15 @@ foreach ($feeds as $item):
if ($item['Feed']['fixed_event']):
if (isset($item['Feed']['event_error'])):
?>
<span class="red bold">Error: Invalid event!</span>
<span class="red bold"><?php echo __('Error: Invalid event!');?></span>
<?php
else:
if ($item['Feed']['event_id']):
?>
<a href="<?php echo $baseurl;?>/events/view/<?php echo h($item['Feed']['event_id']); ?>">Fixed event <?php echo h($item['Feed']['event_id']); ?></a>
<a href="<?php echo $baseurl;?>/events/view/<?php echo h($item['Feed']['event_id']); ?>"><?php echo __('Fixed event %s', h($item['Feed']['event_id']));?></a>
<?php
else:
echo 'New fixed event';
echo __('New fixed event');
endif;
endif;
endif;
@ -135,7 +135,7 @@ foreach ($feeds as $item):
&nbsp;
<?php endif;?>
</td>
<td class="short"><span class="<?php echo ($item['Feed']['enabled'] ? 'icon-ok' : 'icon-remove'); ?>"></span><span class="short <?php if (!$item['Feed']['enabled'] || empty($ruleDescription)) echo "hidden"; ?>" data-toggle="popover" title="Filter rules" data-content="<?php echo $ruleDescription; ?>"> (Rules)</span>
<td class="short"><span class="<?php echo ($item['Feed']['enabled'] ? 'icon-ok' : 'icon-remove'); ?>"></span><span class="short <?php if (!$item['Feed']['enabled'] || empty($ruleDescription)) echo "hidden"; ?>" data-toggle="popover" title="<?php echo __('Filter rules');?>" data-content="<?php echo $ruleDescription; ?>"> (<?php echo __('Rules');?>)</span>
<td class="short"><span class="<?php echo ($item['Feed']['lookup_visible'] ? 'icon-ok' : 'icon-remove'); ?>"></span>
<td class="short action-links <?php echo !empty($item['Feed']['cache_timestamp']) ? 'bold' : 'bold red';?>">
<?php
@ -152,9 +152,9 @@ foreach ($feeds as $item):
break;
}
}
echo 'Age: ' . $last . $unit;
echo __('Age: ') . $last . $unit;
else:
echo 'Not cached';
echo __('Not cached');
endif;
if ($item['Feed']['enabled']):
?>
@ -165,14 +165,14 @@ foreach ($feeds as $item):
</td>
<td class="short action-links">
<?php
echo $this->Html->link('', array('action' => 'previewIndex', $item['Feed']['id']), array('class' => 'icon-search', 'title' => 'Explore the events remotely'));
echo $this->Html->link('', array('action' => 'previewIndex', $item['Feed']['id']), array('class' => 'icon-search', 'title' => __('Explore the events remotely')));
if (!isset($item['Feed']['event_error'])) {
if ($item['Feed']['enabled']) echo $this->Html->link('', array('action' => 'fetchFromFeed', $item['Feed']['id']), array('class' => 'icon-download', 'title' => 'Fetch all events'));
if ($item['Feed']['enabled']) echo $this->Html->link('', array('action' => 'fetchFromFeed', $item['Feed']['id']), array('class' => 'icon-download', 'title' => __('Fetch all events')));
}
?>
<a href="<?php echo $baseurl;?>/feeds/edit/<?php echo h($item['Feed']['id']); ?>"><span class="icon-edit" title="Edit">&nbsp;</span></a>
<?php echo $this->Form->postLink('', array('action' => 'delete', h($item['Feed']['id'])), array('class' => 'icon-trash', 'title' => 'Delete'), __('Are you sure you want to permanently remove the feed (%s)?', h($item['Feed']['name']))); ?>
<a href="<?php echo $baseurl;?>/feeds/view/<?php echo h($item['Feed']['id']); ?>.json" title="Download feed metadata as JSON" download><span class="fa fa-cloud-download black"></span></a>
<?php echo $this->Form->postLink('', array('action' => 'delete', h($item['Feed']['id'])), array('class' => 'icon-trash', 'title' => __('Delete')), __('Are you sure you want to permanently remove the feed (%s)?', h($item['Feed']['name']))); ?>
<a href="<?php echo $baseurl;?>/feeds/view/<?php echo h($item['Feed']['id']); ?>.json" title="<?php echo __('Download feed metadata as JSON');?>" download><span class="fa fa-cloud-download black"></span></a>
</td>
</tr><?php
endforeach; ?>

View File

@ -3,17 +3,17 @@
$title = $event['Event']['info'];
if (strlen($title) > 58) $title = substr($title, 0, 55) . '...';
?>
<h4 class="visibleDL notPublished" >You are currently viewing an event from a feed (<?php echo h($feed['Feed']['name']); ?> by <?php echo h($feed['Feed']['provider']); ?>)</h4>
<h4 class="visibleDL notPublished" ><?php echo __('You are currently viewing an event from a feed (%s by %s)', h($feed['Feed']['name']), h($feed['Feed']['provider']));?></h4>
<div class="row-fluid">
<div class="span8">
<h2><?php echo nl2br(h($title)); ?></h2>
<dl>
<dt>Uuid</dt>
<dt><?php echo __('Uuid');?></dt>
<dd><?php echo h($event['Event']['uuid']); ?></dd>
<dt><?php echo Configure::read('MISP.showorgalternate') ? 'Source Organisation' : 'Org'?></dt>
<dd><?php echo h($event['Orgc']['name']); ?></dd>
<?php if (Configure::read('MISP.tagging')): ?>
<dt>Tags</dt>
<dt><?php echo __('Tags');?></dt>
<dd class="eventTagContainer">
<?php if (!empty($event['Tag'])) foreach ($event['Tag'] as $tag): ?>
<span style="padding-right:0px;">
@ -27,19 +27,19 @@
<?php echo h($event['Event']['date']); ?>
&nbsp;
</dd>
<dt title="<?php echo $eventDescriptions['threat_level_id']['desc'];?>">Threat Level</dt>
<dt title="<?php echo $eventDescriptions['threat_level_id']['desc'];?>"><?php echo __('Threat Level');?></dt>
<dd>
<?php
echo h($threatLevels[$event['Event']['threat_level_id']]);
?>
&nbsp;
</dd>
<dt title="<?php echo $eventDescriptions['analysis']['desc'];?>">Analysis</dt>
<dt title="<?php echo $eventDescriptions['analysis']['desc'];?>"><?php echo __('Analysis');?></dt>
<dd>
<?php echo h($analysisLevels[$event['Event']['analysis']]); ?>
&nbsp;
</dd>
<dt>Info</dt>
<dt><?php echo __('Info');?></dt>
<dd style="word-wrap: break-word;">
<?php echo nl2br(h($event['Event']['info'])); ?>
&nbsp;
@ -52,25 +52,25 @@
$notPublished = '';
}
?>
<dt class="published" <?php echo $published;?>>Published</dt>
<dd class="published green" <?php echo $published;?>>Yes</dd>
<dt class="published" <?php echo $published;?>><?php echo __('Published');?></dt>
<dd class="published green" <?php echo $published;?>><?php echo __('Yes');?></dd>
<?php
if ($isAclPublish) :
?>
<dt class="visibleDL notPublished" <?php echo $notPublished;?>>Published</dt>
<dd class="visibleDL notPublished" <?php echo $notPublished;?>>No</dd>
<dt class="visibleDL notPublished" <?php echo $notPublished;?>><?php echo __('Published');?></dt>
<dd class="visibleDL notPublished" <?php echo $notPublished;?>><?php echo __('No');?></dd>
<?php
else:
?>
<dt class="notPublished" <?php echo $notPublished;?>>Published</dt>
<dd class="notPublished red" <?php echo $notPublished;?>>No</dd>
<dt class="notPublished" <?php echo $notPublished;?>><?php echo __('Published');?></dt>
<dd class="notPublished red" <?php echo $notPublished;?>><?php echo __('No');?></dd>
<?php endif; ?>
</dl>
</div>
<?php if (!empty($event['RelatedEvent'])):?>
<div class="related span4">
<h3>Related Events</h3>
<h3><?php echo __('Related Events');?></h3>
<ul class="inline">
<?php foreach ($event['RelatedEvent'] as $relatedEvent): ?>
<li>

View File

@ -1,5 +1,5 @@
<div class="events index">
<h4 class="visibleDL notPublished" >You are currently viewing the event index of a feed (<?php echo h($feed['Feed']['name']); ?> by <?php echo h($feed['Feed']['provider']); ?>).</h4>
<h4 class="visibleDL notPublished" ><?php echo __('You are currently viewing the event index of a feed (%s by %s).', h($feed['Feed']['name']),h($feed['Feed']['provider']));</h4>
<div class="pagination">
<ul>
<?php
@ -35,7 +35,7 @@
<th class="filter" title="<?php echo $eventDescriptions['analysis']['desc']; ?>"><?php echo $this->Paginator->sort('analysis');?></th>
<th class="filter"><?php echo $this->Paginator->sort('info');?></th>
<th class="filter"><?php echo $this->Paginator->sort('timestamp');?></th>
<th class="actions">Actions</th>
<th class="actions"><?php echo __('Actions');?></th>
</tr>
<?php if (!empty($events)) foreach ($events as $uuid => $event): ?>
@ -63,7 +63,7 @@
<td ondblclick="document.location.href ='<?php echo $eventViewURL . h($uuid);?>'" class="short"><?php echo h($event['timestamp']); ?></td>
<td class="short action-links">
<?php if ($feed['Feed']['enabled']) echo $this->Form->postLink('', '/feeds/getEvent/' . $id . '/' . $uuid, array('class' => 'icon-download', 'title' => 'Fetch the event'), __('Are you sure you want to fetch and save this event on your instance?', $this->Form->value('Feed.id'))); ?>
<a href='<?php echo $eventViewURL . h($uuid);?>' class = "icon-list-alt" title = "View"></a>
<a href='<?php echo $eventViewURL . h($uuid);?>' class = "icon-list-alt" title = "<?php echo __('View');?>"></a>
</td>
</tr>
<?php endforeach; ?>