public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] WIO: patch log.dat to show wio logs
@ 2017-07-18 18:26 Stephan Feddersen
  0 siblings, 0 replies; only message in thread
From: Stephan Feddersen @ 2017-07-18 18:26 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]

---
 html/cgi-bin/logs.cgi/log.dat | 2 ++
 src/wio/wiographs.cgi         | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat
index 3597799..5734fed 100644
--- a/html/cgi-bin/logs.cgi/log.dat
+++ b/html/cgi-bin/logs.cgi/log.dat
@@ -50,6 +50,7 @@ $cgiparams{'SECTION'} = 'ipfire';
 
 my %sections = (
         'auth' => '(\w+\(pam_unix\)\[.*\]: )',
+		'wio' => '(wio|wio\[.*\])',
         'clamav' => '(clamd\[.*\]: |freshclam\[.*\]: )',
         'collectd' => '(collectd\[.*\]: )',
         'cron' => '(fcron\[.*\]: )',
@@ -75,6 +76,7 @@ my %sections = (
 # Translations for the %sections array.
 my %trsections = (
         'auth' => "$Lang::tr{'loginlogout'}",
+		'wio' => 'Who Is Online?',
         'clamav' => 'ClamAV',
         'collectd' => 'Collectd',
         'cron' => 'Cron',
diff --git a/src/wio/wiographs.cgi b/src/wio/wiographs.cgi
index 234d287..7370237 100644
--- a/src/wio/wiographs.cgi
+++ b/src/wio/wiographs.cgi
@@ -64,7 +64,7 @@ else {
 	&Header::openbigbox('100%', 'left');
 	&Header::openbox('100%', 'left', "$Lang::tr{'wio_graphs_stat'} $hostname");
 	&WIOGraphs::wiographbox("wiographs.cgi","$hostid","day","$hostname");
-	print"<table width='100%'><tr><td><a href='/cgi-bin/wio.cgi'><img src='/images/wio/back.png' alt='$Lang::tr{'wio_back'}' title='$Lang::tr{'wio_back'}' /></a></td></tr></table>";
+	print"<table width='100%'><tr><td align='center'><a href='/cgi-bin/wio.cgi'><img src='/images/wio/back.png' alt='$Lang::tr{'wio_back'}' title='$Lang::tr{'wio_back'}' /></a></td></tr></table>";
 	&Header::closebox();
 	&Header::closebigbox();
 	&Header::closepage();
-- 
2.7.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-18 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 18:26 [PATCH] WIO: patch log.dat to show wio logs Stephan Feddersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox