summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-10 13:51:07 -0500
committerjim-p <jimp@pfsense.org>2013-01-10 13:51:43 -0500
commit43ba3952594e4a3639d290db1a72c78d9814176b (patch)
tree3bb6a3c4db603d5a755deacb2c59ac08ff5a6a6f
parent78efa29451a99996946efe1334b5bacb0c20c138 (diff)
downloadpfsense-43ba3952594e4a3639d290db1a72c78d9814176b.zip
pfsense-43ba3952594e4a3639d290db1a72c78d9814176b.tar.gz
Show the hostname if it doesn't match
-rwxr-xr-xusr/local/www/guiconfig.inc3
1 files changed, 2 insertions, 1 deletions
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 "<td class=\"listlr\" nowrap>{$entry_date_time}</td>\n";
echo "<td class=\"listr\">{$entry_text}</td>\n";
OpenPOWER on IntegriCloud