diff options
author | Phil Davis <phil.davis@inf.org> | 2015-04-19 12:23:44 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-04-19 12:23:44 +0545 |
commit | 45b4ffc68fed9e831da10de3b7d2de0c47496d1a (patch) | |
tree | b197e9e651ea5df4f28d33bda408ae8002c38034 /usr/local/www/status.php | |
parent | abaa7feb680dc6f6f9bc79577075c45b3786a061 (diff) | |
download | pfsense-45b4ffc68fed9e831da10de3b7d2de0c47496d1a.zip pfsense-45b4ffc68fed9e831da10de3b7d2de0c47496d1a.tar.gz |
Code style usr-local-www back-end
files that do stuff in mostly in the background.
Diffstat (limited to 'usr/local/www/status.php')
-rwxr-xr-x | usr/local/www/status.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/local/www/status.php b/usr/local/www/status.php index e26f8a6..8cdc87a 100755 --- a/usr/local/www/status.php +++ b/usr/local/www/status.php @@ -8,7 +8,7 @@ * */ /* - Copyright (C) 2013-2015 Electric Sheep Fencing, LP + Copyright (C) 2013-2015 Electric Sheep Fencing, LP All rights reserved. Redistribution and use in source and binary forms, with or without @@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. */ /* - pfSense_BUILDER_BINARIES: /usr/bin/vmstat /usr/bin/netstat /sbin/dmesg /sbin/mount /sbin/setkey /usr/local/sbin/pftop + pfSense_BUILDER_BINARIES: /usr/bin/vmstat /usr/bin/netstat /sbin/dmesg /sbin/mount /sbin/setkey /usr/local/sbin/pftop pfSense_BUILDER_BINARIES: /sbin/pfctl /sbin/sysctl /usr/bin/top /usr/bin/netstat /sbin/pfctl /sbin/ifconfig pfSense_MODULE: support */ @@ -95,8 +95,8 @@ function doCmdT($title, $command) { echo htmlspecialchars($execOutput[$i],ENT_NOQUOTES); } } - echo "\n\t\t\t</pre>\n\t\t</td>\n\t</tr>\n"; - echo "</table>\n"; + echo "\n\t\t\t</pre>\n\t\t</td>\n\t</tr>\n"; + echo "</table>\n"; } /* Execute a command, giving it a title which is the same as the command. */ @@ -154,8 +154,9 @@ defCmdT("sysctl hw.physmem","/sbin/sysctl hw.physmem"); if (isset($config['captiveportal']) && is_array($config['captiveportal'])) { foreach ($config['captiveportal'] as $cpZone => $cpdata) { - if (isset($cpdata['enable'])) + if (isset($cpdata['enable'])) { defCmdT("ipfw -x {$cpdata['zoneid']} show", "/sbin/ipfw -x {$cpdata['zoneid']} show"); + } } } @@ -197,14 +198,14 @@ defCmdT("ipsec.conf","cat /var/etc/ipsec/ipsec.conf"); defCmdT("SPD","/sbin/setkey -DP"); defCmdT("SAD","/sbin/setkey -D"); -if(isset($config['system']['usefifolog'])) { +if (isset($config['system']['usefifolog'])) { defCmdT("last 200 system log entries","/usr/sbin/fifolog_reader /var/log/system.log 2>&1 | tail -n 200"); defCmdT("last 50 filter log entries","/usr/sbin/fifolog_reader /var/log/filter.log 2>&1 | tail -n 50"); } else { defCmdT("last 200 system log entries","/usr/local/sbin/clog /var/log/system.log 2>&1 | tail -n 200"); defCmdT("last 50 filter log entries","/usr/local/sbin/clog /var/log/filter.log 2>&1 | tail -n 50"); } - + defCmd("ls /conf"); defCmd("ls /var/run"); |