diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-03-08 03:03:58 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-03-08 03:03:58 +0000 |
commit | fceb246e684717792d9c00d162eaa8da10d1d423 (patch) | |
tree | 8822d96fc101fbea9600d5a144803a26e75d74ab /usr/local | |
parent | b5cb5956b235f63a25f74db74ed96408a5e3cd70 (diff) | |
download | pfsense-fceb246e684717792d9c00d162eaa8da10d1d423.zip pfsense-fceb246e684717792d9c00d162eaa8da10d1d423.tar.gz |
Show only the rule that triggered the action when clicking the Action icon.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_filter_dynamic.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index f5e279f..ea5c2cd 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -44,7 +44,7 @@ if($_GET['getrulenum'] or $_POST['getrulenum']) { $rulenum = escapeshellarg($_GET['getrulenum']); if($_POST['getrulenum']) $rulenum = escapeshellarg($_POST['getrulenum']); - $rule = `pfctl -vvsr | grep @{$rulenum}`; + $rule = `pfctl -vvsr | grep "@{$rulenum} "`; echo "The rule that triggered this action is:\n\n{$rule}"; exit; } diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php index e284068..63ac3b2 100755 --- a/usr/local/www/diag_logs_filter_dynamic.php +++ b/usr/local/www/diag_logs_filter_dynamic.php @@ -245,7 +245,7 @@ include("head.inc"); $activerow = ""; } ?> - <div class="log-entry" > + <div class="log-entry" <?php echo $activerow; ?>> <span class="log-action" nowrap><a href="#" onClick="javascript:getURL('diag_logs_filter.php?getrulenum=<?php echo $filterent['rulenum']; ?>', outputrule);"> <?php if (strstr(strtolower($filterent['act']), "p")) @@ -423,7 +423,7 @@ function handle_ajax() { $rulenum = $_GET['getrulenum']; if($_POST['getrulenum']) $rulenum = $_POST['getrulenum']; - $rule = `pfctl -vvsr | grep @{$rulenum}`; + $rule = `pfctl -vvsr | grep "@{$rulenum} "`; echo "The rule that triggered this action is:\n\n{$rule}"; exit; } |