mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
rrdimage: Switch graphs.pl to the new graph scripts
"makegraphbox" is modified to remove the old iframe method and output a modern div container instead. Graph errors are now returned, to be displayed by getrrdimage.cgi. entropy.cgi and netovpnsrv.cgi are modified to ensure compatibility. Add cache control HTTP header to image output. Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
62206605d7
commit
9c6a0ce12d
@@ -45,7 +45,7 @@ if ( $querry[0] ne~ "") {
|
||||
&Header::openbigbox('100%', 'left');
|
||||
|
||||
&Header::openbox('100%', 'center', $Lang::tr{'entropy'});
|
||||
&Graphs::makegraphbox("entropy.cgi", "day");
|
||||
&Graphs::makegraphbox("entropy.cgi", "entropy", "day");
|
||||
&Header::closebox();
|
||||
|
||||
# Check for hardware support.
|
||||
|
||||
@@ -75,7 +75,7 @@ if ( $querry[0] ne ""){
|
||||
if (@vpns || %ipsecgraphs) {
|
||||
foreach my $name (sort keys %ipsecgraphs) {
|
||||
&Header::openbox('100%', 'center', "$Lang::tr{'ipsec connection'}: $name");
|
||||
&Graphs::makegraphbox("netovpnsrv.cgi", $ipsecgraphs{$name}, "day");
|
||||
&Graphs::makegraphbox("netovpnsrv.cgi", "ipsec-$ipsecgraphs{$name}", "day");
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user