summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dump_states_sources.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-08-31 22:23:15 +0545
committerPhil Davis <phil.davis@inf.org>2015-08-31 22:23:15 +0545
commit288a2a0f294f992a9536dfbb5c54dd528badbad5 (patch)
tree8d1c6be8a2cf5848f6df06b631ce2614485648fe /src/usr/local/www/diag_dump_states_sources.php
parent683ba309d50913828decb5fe3f6ade059c1dfab2 (diff)
downloadpfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.zip
pfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.tar.gz
bootstrap usr/local/www a to e minor edits
Diffstat (limited to 'src/usr/local/www/diag_dump_states_sources.php')
-rw-r--r--src/usr/local/www/diag_dump_states_sources.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/usr/local/www/diag_dump_states_sources.php b/src/usr/local/www/diag_dump_states_sources.php
index 04c8c03..6a62aee 100644
--- a/src/usr/local/www/diag_dump_states_sources.php
+++ b/src/usr/local/www/diag_dump_states_sources.php
@@ -69,8 +69,8 @@
require_once("guiconfig.inc");
/* handle AJAX operations */
-if($_POST['action']) {
- if($_POST['action'] == "remove") {
+if ($_POST['action']) {
+ if ($_POST['action'] == "remove") {
if (is_ipaddr($_POST['srcip']) && is_ipaddr($_POST['dstip'])) {
$retval = mwexec("/sbin/pfctl -K " . escapeshellarg($_POST['srcip']) . " -K " . escapeshellarg($_POST['dstip']));
echo htmlentities("|{$_GET['srcip']}|{$_POST['dstip']}|{$retval}|");
@@ -82,15 +82,14 @@ if($_POST['action']) {
}
/* get our states */
-if($_POST['filter']) {
+if ($_POST['filter']) {
exec("/sbin/pfctl -s Sources | grep " . escapeshellarg(htmlspecialchars($_GET['filter'])), $sources);
-}
-else {
+} else {
exec("/sbin/pfctl -s Sources", $sources);
}
-$pgtitle = array(gettext("Diagnostics"),gettext("Show Source Tracking"));
+$pgtitle = array(gettext("Diagnostics"), gettext("Show Source Tracking"));
include("head.inc");
$tab_array = array();
OpenPOWER on IntegriCloud