public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stephan Feddersen <sfeddersen@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] WIO: patch log.dat to show wio logs
Date: Tue, 18 Jul 2017 20:26:17 +0200	[thread overview]
Message-ID: <1500402377-2096-1-git-send-email-sfeddersen@ipfire.org> (raw)

[-- 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


                 reply	other threads:[~2017-07-18 18:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500402377-2096-1-git-send-email-sfeddersen@ipfire.org \
    --to=sfeddersen@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox