diff options
author | Phil Davis <phil.davis@inf.org> | 2015-04-19 18:00:00 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-04-19 18:00:00 +0545 |
commit | 5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e (patch) | |
tree | cd25c71caf551eb882f460ac6e1c32c8220fe58f /usr/local/www/diag_ipsec_xml.php | |
parent | 0608bd3c354ea76eb6df9ed9322e2ef8686f15e7 (diff) | |
download | pfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.zip pfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.tar.gz |
Code style usr-local-www diag
Diffstat (limited to 'usr/local/www/diag_ipsec_xml.php')
-rw-r--r-- | usr/local/www/diag_ipsec_xml.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/diag_ipsec_xml.php b/usr/local/www/diag_ipsec_xml.php index 2c76225..a219da9 100644 --- a/usr/local/www/diag_ipsec_xml.php +++ b/usr/local/www/diag_ipsec_xml.php @@ -44,8 +44,9 @@ global $g; require("guiconfig.inc"); require("ipsec.inc"); -if (!is_array($config['ipsec']['phase2'])) - $config['ipsec']['phase2'] = array(); +if (!is_array($config['ipsec']['phase2'])) { + $config['ipsec']['phase2'] = array(); +} $ipsec_status = array(); @@ -58,12 +59,13 @@ if (is_array($status['query']) && $status['query']['ikesalist'] && $status['quer ipsec_lookup_phase1($ph2ent,$ph1ent); $tunnel = array(); if (!isset($ph2ent['disabled']) && !isset($ph1ent['disabled'])) { - if(ipsec_phase1_status($status['query']['ikesalist']['ikesa'], $ph1ent['ikeid'])) + if(ipsec_phase1_status($status['query']['ikesalist']['ikesa'], $ph1ent['ikeid'])) { $tunnel['state'] = "up"; - elseif(!isset($config['ipsec']['enable'])) + } elseif(!isset($config['ipsec']['enable'])) { $tunnel['state'] = "disabled"; - else + } else { $tunnel['state'] = "down"; + } $tunnel['src'] = ipsec_get_phase1_src($ph1ent); $tunnel['endpoint'] = $ph1ent['remote-gateway']; |