summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-29 00:15:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-29 00:15:08 +0000
commitb2a189a859bd432c3df706249b42f08951912d54 (patch)
treeb79fab3305416b0a1b0ac8b3c8588e2758ae313e /usr
parente1b749501ed9ebd5322cbcc7d4a081f774852afe (diff)
downloadpfsense-b2a189a859bd432c3df706249b42f08951912d54.zip
pfsense-b2a189a859bd432c3df706249b42f08951912d54.tar.gz
Show correct count of phase2 entries.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 7d79434..e9eb898 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -292,8 +292,15 @@ include("head.inc");
<div id="shph2but-<?=$i?>">
<?php
$phase2count=0;
- foreach ($a_phase2 as $ph2ent)
+ foreach ($a_phase2 as $ph2ent) {
+ if ($ph2ent['ikeid'] != $ph1ent['ikeid']) {
+ $j++;
+ continue;
+ }
+ if (isset( $ph2ent['disabled']) || isset($ph1ent['disabled']))
+ continue;
$phase2count++;
+ }
?>
<input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+"></input> - Show <?=$phase2count?> Phase-2 entries</a>
</div>
OpenPOWER on IntegriCloud