]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/network.cgi
Corrected guardian
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / network.cgi
index 1a77bee992ec0f9017bd8dadcd5bd987b0a83952..53e2cfc9a3e0cdf7d16388cd2e5e2c40451e5c66 100644 (file)
@@ -50,15 +50,19 @@ $cgiparams[1] = '' unless defined $cgiparams[1];
 
 if ($cgiparams[1] =~ /red/) {
        &Header::openpage($Lang::tr{'network traffic graphs external'}, 1, '');
-       push (@graphs, ("RED"));
-       push (@graphs, ('lq'));
-} else {
+       push (@graphs, ($netsettings{'RED_DEV'}));
+       push (@graphs, ("ipsec0"));
+}elsif ($cgiparams[1] =~ /other/) {
+       &Header::openpage($Lang::tr{'network traffic graphs others'}, 1, '');
+       push (@graphs, ("lq"));
+       push (@graphs, ("fwhits"));
+}else {
        &Header::openpage($Lang::tr{'network traffic graphs internal'}, 1, '');
-       push (@graphs, ('GREEN'));
+       push (@graphs, ($netsettings{'GREEN_DEV'}));
        if ($netsettings{'BLUE_DEV'}) {
-               push (@graphs, ('BLUE')); }
+               push (@graphs, ($netsettings{'BLUE_DEV'})); }
        if ($netsettings{'ORANGE_DEV'}) {
-               push (@graphs, ('ORANGE')); }
+               push (@graphs, ($netsettings{'ORANGE_DEV'})); }
 }
 
 &Header::openbigbox('100%', 'left');
@@ -67,6 +71,8 @@ foreach my $graphname (@graphs) {
 
   if ($graphname eq "lq" )
   {  &Graphs::updatelqgraph("day");  }
+  elsif ($graphname eq "fwhits" )
+  {  &Graphs::updatefwhitsgraph("day");  }
   else
   {  &Graphs::updateifgraph($graphname, "day");  }