diff options
author | jim-p <jimp@pfsense.org> | 2013-01-10 13:51:07 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-01-10 13:51:43 -0500 |
commit | 43ba3952594e4a3639d290db1a72c78d9814176b (patch) | |
tree | 3bb6a3c4db603d5a755deacb2c59ac08ff5a6a6f /usr/local/www | |
parent | 78efa29451a99996946efe1334b5bacb0c20c138 (diff) | |
download | pfsense-43ba3952594e4a3639d290db1a72c78d9814176b.zip pfsense-43ba3952594e4a3639d290db1a72c78d9814176b.tar.gz |
Show the hostname if it doesn't match
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 3 |
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"; |