From d7884992d239844f0f61f56f94aff90a999a7717 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sat, 20 Dec 2014 22:57:47 +0545 Subject: 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. --- usr/local/www/includes/functions.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local/www/includes/functions.inc.php') 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 .= "" . htmlspecialchars($ifinfo['ipaddr']) . ""; + $data .= ","; + if ($ifinfo['ipaddrv6']) + $data .= "" . htmlspecialchars($ifinfo['ipaddrv6']) . ""; $data .= ","; if ($ifinfo['status'] != "down") $data .= htmlspecialchars($ifinfo['media']); -- cgit v1.1