From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim FitzGeorge To: development@lists.ipfire.org Subject: [PATCH 10/12] statusmail: Graph infrastructure changes Date: Fri, 05 Apr 2019 18:29:38 +0100 Message-ID: <20190405172940.13168-11-ipfr@tfitzgeorge.me.uk> In-Reply-To: <20190405172940.13168-1-ipfr@tfitzgeorge.me.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2164189911596375170==" List-Id: --===============2164189911596375170== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Modifies graphs.pl to expect the second parameter to include the number as well as the unit, that is 1hour instead of hour. makegraphbox is modified to pass the number. The change to entropy.cgi as because it passes the period as the first parameter instead of the second. Signed-off-by: Tim FitzGeorge --- config/cfgroot/graphs.pl | 274 ++++++++++++++++++++++++++++++++++-----------= -- html/cgi-bin/entropy.cgi | 2 +- langs/de/cgi-bin/de.pl | 1 + langs/es/cgi-bin/es.pl | 1 + langs/it/cgi-bin/it.pl | 1 + langs/nl/cgi-bin/nl.pl | 1 + langs/pl/cgi-bin/pl.pl | 1 + langs/tr/cgi-bin/tr.pl | 1 + 8 files changed, 207 insertions(+), 75 deletions(-) diff --git a/config/cfgroot/graphs.pl b/config/cfgroot/graphs.pl index 1bed49fa3..25e62b4ac 100644 --- a/config/cfgroot/graphs.pl +++ b/config/cfgroot/graphs.pl @@ -3,7 +3,6 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2005-2010 IPFire Team = # +# Copyright (C) 2005-2019 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -102,17 +103,17 @@ foreach (@sensorsdir){ =20 sub makegraphbox { print "
"; - print "".$L= ang::tr{'hour'}.""; + print "".$= Lang::tr{'hour'}.""; print " - "; - print "".$La= ng::tr{'day'}.""; + print "".$L= ang::tr{'day'}.""; print " - "; - print "".$L= ang::tr{'week'}.""; + print "".$= Lang::tr{'week'}.""; print " - "; - print "".$= Lang::tr{'month'}.""; + print "".= $Lang::tr{'month'}.""; print " - "; - print "".$L= ang::tr{'year'}.""; + print "".$= Lang::tr{'year'}.""; print "
"; - print "