From 43ba3952594e4a3639d290db1a72c78d9814176b Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 10 Jan 2013 13:51:07 -0500 Subject: Show the hostname if it doesn't match --- usr/local/www/guiconfig.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 995e196..97ab713 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -568,7 +568,8 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert $entry_text = htmlspecialchars($logent[5]); } else { $entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3))); - $entry_text = htmlspecialchars($logent[4] . " " . $logent[5]); + $entry_text = ($logent[3] == $config['system']['hostname']) ? "" : $logent[3] . " "; + $entry_text .= htmlspecialchars($logent[4] . " " . $logent[5]); } echo "{$entry_date_time}\n"; echo "{$entry_text}\n"; -- cgit v1.1