diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 15:11:23 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 15:11:23 -0500 |
commit | 060ed23871a0933021e68078efceb6ed64658d82 (patch) | |
tree | 434e5315f7aefb15e389f439133a9a41e40340f7 /src/usr/local/www/vpn_ipsec_keys.php | |
parent | d642aca406161552dbd6b2c19585eaba42a242a6 (diff) | |
download | pfsense-060ed23871a0933021e68078efceb6ed64658d82.zip pfsense-060ed23871a0933021e68078efceb6ed64658d82.tar.gz |
Fixed #5566
Diffstat (limited to 'src/usr/local/www/vpn_ipsec_keys.php')
-rw-r--r-- | src/usr/local/www/vpn_ipsec_keys.php | 125 |
1 files changed, 61 insertions, 64 deletions
diff --git a/src/usr/local/www/vpn_ipsec_keys.php b/src/usr/local/www/vpn_ipsec_keys.php index c3886bb..1aee3a6 100644 --- a/src/usr/local/www/vpn_ipsec_keys.php +++ b/src/usr/local/www/vpn_ipsec_keys.php @@ -131,75 +131,72 @@ if (is_subsystem_dirty('ipsec')) { <div class="panel panel-default"> <div class="panel-heading"><h2 class="panel-title"><?=gettext('Pre-Shared Keys')?></h2></div> <div class="panel-body"> - -<div class="table-responsive"> - <table class="table table-striped table-hover"> - <thead> - <tr> - <th><?=gettext("Identifier"); ?></th> - <th><?=gettext("Type"); ?></th> - <th><?=gettext("Pre-Shared Key"); ?></th> - <th></th> - </tr> - </thead> - - <tbody> + <div class="table-responsive"> + <table class="table table-striped table-hover"> + <thead> + <tr> + <th><?=gettext("Identifier"); ?></th> + <th><?=gettext("Type"); ?></th> + <th><?=gettext("Pre-Shared Key"); ?></th> + <th></th> + </tr> + </thead> + <tbody> <?php $i = 0; foreach ($userkeys as $secretent): ?> - <tr> - <td> - <?php - if ($secretent['ident'] == 'allusers') { - echo gettext("ANY USER"); - } else { - echo htmlspecialchars($secretent['ident']); - } - ?> - </td> - <td> - <?php - if (empty($secretent['type'])) { - echo 'PSK'; - } else { - echo htmlspecialchars($secretent['type']); - } - ?> - </td> - <td> - <?=htmlspecialchars($secretent['pre-shared-key'])?> - </td> - <td> - <a class="fa fa-pencil" title="<?=gettext('Edit user')?>" href="system_usermanager.php?act=edit&userid=<?=$secretent['id']?>"></a> - </td> - </tr> + <tr> + <td> + <?php + if ($secretent['ident'] == 'allusers') { + echo gettext("ANY USER"); + } else { + echo htmlspecialchars($secretent['ident']); + } + ?> + </td> + <td> + <?php + if (empty($secretent['type'])) { + echo 'PSK'; + } else { + echo htmlspecialchars($secretent['type']); + } + ?> + </td> + <td> + <?=htmlspecialchars($secretent['pre-shared-key'])?> + </td> + <td> + <a class="fa fa-pencil" title="<?=gettext('Edit user')?>" href="system_usermanager.php?act=edit&userid=<?=$secretent['id']?>"></a> + </td> + </tr> <?php $i++; endforeach; ?> <?php $i = 0; foreach ($a_secret as $secretent): ?> - <tr> - <td> - <?=htmlspecialchars($secretent['ident'])?> - </td> - <td> - <?php - if (empty($secretent['type'])) { - echo 'PSK'; - } else { - echo htmlspecialchars($secretent['type']); - } - ?> - </td> - <td> - <?=htmlspecialchars($secretent['pre-shared-key'])?> - </td> - <td> - <a class="fa fa-pencil" title="<?=gettext('Edit key')?>" href="vpn_ipsec_keys_edit.php?id=<?=$i?>"></a> - <a class="fa fa-trash" title="<?=gettext('Delete key')?>" href="vpn_ipsec_keys.php?act=del&id=<?=$i?>"></a> - </td> - </tr> + <tr> + <td> + <?=htmlspecialchars($secretent['ident'])?> + </td> + <td> + <?php + if (empty($secretent['type'])) { + echo 'PSK'; + } else { + echo htmlspecialchars($secretent['type']); + } + ?> + </td> + <td> + <?=htmlspecialchars($secretent['pre-shared-key'])?> + </td> + <td> + <a class="fa fa-pencil" title="<?=gettext('Edit key')?>" href="vpn_ipsec_keys_edit.php?id=<?=$i?>"></a> + <a class="fa fa-trash" title="<?=gettext('Delete key')?>" href="vpn_ipsec_keys.php?act=del&id=<?=$i?>"></a> + </td> + </tr> <?php $i++; endforeach; ?> - </tbody> - </table> -</div> - + </tbody> + </table> + </div> </div> </div> |