summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-08 16:17:30 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-08 16:17:48 -0300
commit58f2f42a48247487fd2ee650c5ae137bbb77f4e0 (patch)
tree348ca9d9912f311482e10197fa7dd7348d4d106e /usr/local/www/status.php
parent4fd2fed2ad6672c3be771146048bee61317f3197 (diff)
downloadpfsense-58f2f42a48247487fd2ee650c5ae137bbb77f4e0.zip
pfsense-58f2f42a48247487fd2ee650c5ae137bbb77f4e0.tar.gz
Add context parameter for ipfw calls. Fixes #2938
Diffstat (limited to 'usr/local/www/status.php')
-rwxr-xr-xusr/local/www/status.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/status.php b/usr/local/www/status.php
index 9ba0607..a4906cf 100755
--- a/usr/local/www/status.php
+++ b/usr/local/www/status.php
@@ -124,7 +124,7 @@ function execCmds() {
}
}
-global $g;
+global $g, $config;
/* Set up all of the commands we want to execute. */
defCmdT("System uptime","uptime");
@@ -138,7 +138,11 @@ defCmdT("top | head -n5", "/usr/bin/top | /usr/bin/head -n5");
defCmdT("sysctl hw.physmem","/sbin/sysctl hw.physmem");
-defCmdT("ipfw show", "/sbin/ipfw show");
+if (isset($config['captiveportal']) && is_array($config['captiveportal']))
+ foreach ($config['captiveportal'] as $cpZone => $cpdata)
+ if (isset($cpdata['enable']))
+ defCmdT("ipfw -x {$cpZone} show", "/sbin/ipfw -x {$cpZone} show");
+
defCmdT("pfctl -sn", "/sbin/pfctl -sn");
defCmdT("pfctl -sr", "/sbin/pfctl -sr");
defCmdT("pfctl -ss", "/sbin/pfctl -ss");
OpenPOWER on IntegriCloud