]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/fwhits.cgi
HinzugefĆ¼gt:
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / fwhits.cgi
index 3b209ee478c263c8d3022781636eddd3f3af6496..58da565773281fbd1674e6d394b1761508cbddd8 100755 (executable)
@@ -28,43 +28,43 @@ my $graphdir = "/home/httpd/html/graphs";
 my @LOCALCHECK=();
 my $errormessage="";
 
-&Header::openpage('firewall graphs', 1, ' <META HTTP-EQUIV="Refresh" CONTENT="300"> <META HTTP-EQUIV="Cache-Control" content="no-cache"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> ');
+&Header::openpage($Lang::tr{'firewall graphs'}, 1, ' <META HTTP-EQUIV="Refresh" CONTENT="300"> <META HTTP-EQUIV="Cache-Control" content="no-cache"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> ');
 
 &Header::openbigbox('100%', 'left', '', $errormessage);
 print <<END;
 <table width="100%" align="center">
        <tr>
                <td align="left">
-                       <a href=/cgi-bin/fwhits.cgi?graph=line>show lines</a>
+                       <a href=/cgi-bin/fwhits.cgi?graph=line>$Lang::tr{'show lines'}</a>
                        &nbsp;
-                       <a href=/cgi-bin/fwhits.cgi?graph=area>show areas</a>
+                       <a href=/cgi-bin/fwhits.cgi?graph=area>$Lang::tr{'show areas'}</a>
                </td>
        </tr>
 </table>
 END
 if ($cgigraphs[1] eq "line") {
-               &Header::openbox('100%', 'center', "daily firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"daily firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-day-line.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-day-line.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "weekly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"weekly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-week-line.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-week-line.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "monthly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"monthly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-month-line.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-month-line.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "yearly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"yearly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-year-line.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-year-line.png' border='0' />";
@@ -73,28 +73,28 @@ if ($cgigraphs[1] eq "line") {
 }
 else
 {
-               &Header::openbox('100%', 'center', "daily firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"daily firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-day-area.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-day-area.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "weekly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"weekly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-week-area.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-week-area.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "monthly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"monthly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-month-area.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-month-area.png' border='0' />";
                print "<br />\n";
                &Header::closebox();
 
-               &Header::openbox('100%', 'center', "yearly firewallhits");
+               &Header::openbox('100%', 'center', $Lang::tr{"yearly firewallhits"});
                my $ftime = localtime((stat("$graphdir/firewallhits-year-area.png"))[9]);
                print "<center><b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
                print "<img src='/graphs/firewallhits-year-area.png' border='0' />";