X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Ffwhits.cgi;h=861befe7c122817cf6c56d198e893b0ac02fefce;hp=58da565773281fbd1674e6d394b1761508cbddd8;hb=350b52c5c9368951ff2a9139817b42d0aec03ad7;hpb=986e08d996eadd906ecbe6c9ac8ad48aa78bd854
diff --git a/html/cgi-bin/fwhits.cgi b/html/cgi-bin/fwhits.cgi
old mode 100755
new mode 100644
index 58da565773..861befe7c1
--- a/html/cgi-bin/fwhits.cgi
+++ b/html/cgi-bin/fwhits.cgi
@@ -12,11 +12,17 @@ use strict;
require '/var/ipfire/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
+require "${General::swroot}/graphs.pl";
my %cgiparams=();
my @cgigraphs=();
my @graphs=();
+&Graphs::updatefwhitsgraph ("day");
+&Graphs::updatefwhitsgraph ("week");
+&Graphs::updatefwhitsgraph ("month");
+&Graphs::updatefwhitsgraph ("year");
+
$ENV{'QUERY_STRING'} =~ s/&//g;
@cgigraphs = split(/graph=/,$ENV{'QUERY_STRING'});
$cgigraphs[1] = '' unless defined $cgigraphs[1];
@@ -24,11 +30,10 @@ $cgigraphs[1] = '' unless defined $cgigraphs[1];
&Header::showhttpheaders();
my $graphdir = "/home/httpd/html/graphs";
-
my @LOCALCHECK=();
my $errormessage="";
-&Header::openpage($Lang::tr{'firewall graphs'}, 1, ' ');
+&Header::openpage($Lang::tr{'firewall graphs'}, 1, '');
&Header::openbigbox('100%', 'left', '', $errormessage);
print <$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"weekly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-week-line.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"monthly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-month-line.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"yearly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-year-line.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
}
@@ -76,28 +81,28 @@ else
&Header::openbox('100%', 'center', $Lang::tr{"daily firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-day-area.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"weekly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-week-area.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"monthly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-month-area.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
&Header::openbox('100%', 'center', $Lang::tr{"yearly firewallhits"});
my $ftime = localtime((stat("$graphdir/firewallhits-year-area.png"))[9]);
print "$Lang::tr{'the statistics were last updated at'}: $ftime
\n";
- print "";
+ print "";
print "
\n";
&Header::closebox();
}