summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
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:07 -0500
commitfbc723b110f739b8326815cd5d01f8bb773229c0 (patch)
tree1d531afbd05eb6be15f26086ddc759e4046f4320 /usr/local/www/guiconfig.inc
parentc73fec1f05e39b4f427844d72405ed18bba19d33 (diff)
downloadpfsense-fbc723b110f739b8326815cd5d01f8bb773229c0.zip
pfsense-fbc723b110f739b8326815cd5d01f8bb773229c0.tar.gz
Show the hostname if it doesn't match
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-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 de4704e..accb439 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -583,7 +583,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