diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-15 10:38:12 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-15 10:38:12 +0545 |
commit | abe98adb911f9ff76af12034646a4c64e26d6390 (patch) | |
tree | 49c09b6bdf22f6afb54eb99e6d2287a8c65283d7 /src/usr/local/www/status_ipsec.php | |
parent | 7895a8802317a8477929bea6428bf8dfe214306f (diff) | |
download | pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.zip pfsense-abe98adb911f9ff76af12034646a4c64e26d6390.tar.gz |
Code style status*
Diffstat (limited to 'src/usr/local/www/status_ipsec.php')
-rw-r--r-- | src/usr/local/www/status_ipsec.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/usr/local/www/status_ipsec.php b/src/usr/local/www/status_ipsec.php index c78d3fb..f9b8461 100644 --- a/src/usr/local/www/status_ipsec.php +++ b/src/usr/local/www/status_ipsec.php @@ -356,8 +356,8 @@ if (is_array($status)) { <td> <?php print(gettext("Rekey: ") . htmlspecialchars($childsa['rekey-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['rekey-time']) . ")"); - print('<br/>' . gettext('Life: ') . htmlspecialchars($childsa['life-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['life-time']) . ")" ); - print('<br/>' . gettext('Install: ') .htmlspecialchars($childsa['install-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['install-time']) . ")" ); + print('<br/>' . gettext('Life: ') . htmlspecialchars($childsa['life-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['life-time']) . ")"); + print('<br/>' . gettext('Install: ') .htmlspecialchars($childsa['install-time']) . gettext(" seconds (") . convert_seconds_to_hms($childsa['install-time']) . ")"); ?> </td> @@ -435,38 +435,42 @@ foreach ($a_phase1 as $ph1ent) { <td> <?php list ($myid_type, $myid_data) = ipsec_find_id($ph1ent, "local"); - if (empty($myid_data)) + if (empty($myid_data)) { print(gettext("Unknown")); - else + } else { print(htmlspecialchars($myid_data)); + } ?> </td> <td> <?php $ph1src = ipsec_get_phase1_src($ph1ent); - if (empty($ph1src)) + if (empty($ph1src)) { print(gettext("Unknown")); - else + } else { print(htmlspecialchars($ph1src)); + } ?> </td> <td> <?php list ($peerid_type, $peerid_data) = ipsec_find_id($ph1ent, "peer", $rgmap); - if (empty($peerid_data)) + if (empty($peerid_data)) { print(gettext("Unknown")); - else + } else { print(htmlspecialchars($peerid_data)); + } ?> </td> <td> <?php $ph1src = ipsec_get_phase1_dst($ph1ent); - if (empty($ph1src)) + if (empty($ph1src)) { print(gettext("Unknown")); - else + } else { print(htmlspecialchars($ph1src)); + } ?> </td> <td> |