[Snort-users] [Patch] SnortReport and jpgraph 1.4

S. William Schulz ss at ...4213...
Thu Nov 29 18:11:02 EST 2001


Hello,

Here's a small patch to make snortreport 1.1 compatible with JPGraph
1.4.



--- snortreport-old/alertchart.php      Mon Nov  5 22:58:54 2001
+++ snortreport/alertchart.php  Thu Nov 29 21:00:57 2001
@@ -33,7 +33,7 @@
 $graph->SetMarginColor (array(206, 207, 156));
 $graph->SetColor (array(206, 207, 156));
 $graph->SetFrame (1, array(206, 207, 156));
-$graph->legend->SetBackground(array(206, 207, 156));
+$graph->legend->SetFillColor(array(206,207,156));
 
 // Create the pie chart
 $pie = new PiePlot($data);
@@ -46,7 +46,7 @@
 // Manually Create Title
 $text = new Text("Types of Traffic", 0, 0);
 $text->Pos(0.2, 0.1);
-$text->SetFont(FONT1,FS_BOLD);
+$text->SetFont(FF_FONT1,FS_BOLD);
 
 $graph->AddText($text);
 

I apologize if this should have gone to snort-dev instead.

S





More information about the Snort-users mailing list