Fixed minor bugs

pull/61/head
Christophe Vandeplas 2012-03-27 18:58:11 +02:00
parent 20cddd07db
commit 95455f51a6
3 changed files with 8 additions and 2 deletions

View File

@ -514,6 +514,10 @@ class EventsController extends AppController {
$this->header('Content-Disposition: inline; filename="cydefsig.xml"');
if (isset($eventid)) {
$this->Event->id = $eventid;
if (!$this->Event->exists()) {
throw new NotFoundException(__('Invalid event'));
}
$conditions = array("Event.id" => $eventid);
} else {
$conditions = array();

View File

@ -10,10 +10,12 @@ You can <?php echo $this->Html->link('reset', array('controller' => 'users', 'ac
<p>An automatic export of all events and attributes is available under a custom XML format.</p>
<p>You can configure your tools to automatically download the following following file:</p>
<pre><?php echo Configure::read('CyDefSIG.baseurl');?>/events/xml/<?php echo $me['authkey']; ?></pre>
<p>If you only want to fetch a specific event append the eventid number:</p>
<pre><?php echo Configure::read('CyDefSIG.baseurl');?>/events/xml/<?php echo $me['authkey']; ?>/1</pre>
<p></p>
<h3>NIDS Export</h3>
<p>An automatic export of all network related attributes is available under the Snort rule format. Only attributes marked as <em>to IDS</em> are exported.</p>
<p>An automatic export of all network related attributes is available under the Snort rule format. Only <em>published</em> events and attributes marked as <em>IDS Signature</em> are exported.</p>
<p>You can configure your tools to automatically download the following following file:</p>
<pre><?php echo Configure::read('CyDefSIG.baseurl');?>/events/nids/<?php echo $me['authkey']; ?></pre>
<p></p>

View File

@ -74,7 +74,7 @@
<th>Type</th>
<th>Value</th>
<th>Related Events</th>
<th>IDS Attribute</th>
<th>IDS Signature</th>
<th class="actions">Actions</th>
</tr>
<?php