summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-20 22:57:47 +0545
committerPhil Davis <phil.davis@inf.org>2014-12-20 22:57:47 +0545
commitd7884992d239844f0f61f56f94aff90a999a7717 (patch)
treee756bc0a869a8ab3557718ecf9463e354496307f /usr/local
parent2795f40b0cfe3c79c028c04cc185931ff17c1394 (diff)
downloadpfsense-d7884992d239844f0f61f56f94aff90a999a7717.zip
pfsense-d7884992d239844f0f61f56f94aff90a999a7717.tar.gz
Send IPv4 and IPv6 address in get_interfacestatus
And make them strong (bold), which is how they are displayed originally by interfaces.widget.php This allows the AJAX that manipulates the div's in interfaces.widget.php to get the data, so it can make it update.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/includes/functions.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/includes/functions.inc.php b/usr/local/www/includes/functions.inc.php
index f2d8cf0..4a212ec 100644
--- a/usr/local/www/includes/functions.inc.php
+++ b/usr/local/www/includes/functions.inc.php
@@ -336,7 +336,10 @@ function get_interfacestatus() {
}
$data .= ",";
if ($ifinfo['ipaddr'])
- $data .= htmlspecialchars($ifinfo['ipaddr']);
+ $data .= "<strong>" . htmlspecialchars($ifinfo['ipaddr']) . "</strong>";
+ $data .= ",";
+ if ($ifinfo['ipaddrv6'])
+ $data .= "<strong>" . htmlspecialchars($ifinfo['ipaddrv6']) . "</strong>";
$data .= ",";
if ($ifinfo['status'] != "down")
$data .= htmlspecialchars($ifinfo['media']);
OpenPOWER on IntegriCloud