summaryrefslogtreecommitdiffstats
path: root/usr/local/www/includes/functions.inc.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-20 22:57:47 +0545
committerRenato Botelho <garga@FreeBSD.org>2014-12-23 09:04:54 -0200
commitb79c23aeb67e7099671b840d05dd3c5704468ae1 (patch)
tree76bec242e62bc63cbd80dc2e6129bc9da58fd90b /usr/local/www/includes/functions.inc.php
parentdad58d7f282683d3a93966474ebbcc81f08960fa (diff)
downloadpfsense-b79c23aeb67e7099671b840d05dd3c5704468ae1.zip
pfsense-b79c23aeb67e7099671b840d05dd3c5704468ae1.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/www/includes/functions.inc.php')
-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