summaryrefslogtreecommitdiff
path: root/security/snortreport/files/patch-sigdetail.php
blob: cb933069a20a9194da2cc07069dfae458f3f2049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*** /usr/local/www/snortreport/sigdetail.php	Thu Dec 22 06:07:07 2005
--- ./sigdetail.php	Thu Nov  9 14:28:57 2006
***************
*** 38,44 ****
  assert($beginTime < $endTime);
  
  $URLTimeConstraint = "beginTime=$beginTime&endTime=$endTime";
! $DBTimeConstraint = "(event.timestamp > " . $db->timestamp($beginTime) . " AND event.timestamp < " . $db->timestamp($endTime) . ")";
  
  $sigid = intval($sigid) or die("Invalid signature ID");
  
--- 38,44 ----
  assert($beginTime < $endTime);
  
  $URLTimeConstraint = "beginTime=$beginTime&endTime=$endTime";
! $DBTimeConstraint = "(".$db->timeSinceEpoch("event.timestamp")." > " . $db->timestamp($beginTime) . " AND ".$db->timeSinceEpoch("event.timestamp")." < " . $db->timestamp($endTime) . ")";
  
  $sigid = intval($sigid) or die("Invalid signature ID");
  
***************
*** 101,106 ****
--- 101,108 ----
  	}
  }
  
+ if (!empty($Sources)) {
+ 
  if (PROFILING) elapsedTimer(__FILE__ . ": " . __LINE__);
  // Get the total number of alerts for each source
  
***************
*** 327,332 ****
--- 329,336 ----
  print "<b><a href=\"sigdetail.php?$qs\">$anchor</a></b><br>\n";
  
  if (PROFILING) elapsedTimer(__FILE__ . ": " . __LINE__);
+ 
+ }
  
  require_once("page_bottom.php");