summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ipsec_sad.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-05-16 22:45:40 +0100
committerColin Fleming <cj_fleming@sky.com>2014-05-16 22:45:40 +0100
commita8590dd64eebe96c58ece0e7125cb8c2117e05af (patch)
treee70faa6f3c7179821df01fd3a51be761749eb82c /usr/local/www/diag_ipsec_sad.php
parent024068017f98572f6bd41b7ba542fc36fccee39a (diff)
downloadpfsense-a8590dd64eebe96c58ece0e7125cb8c2117e05af.zip
pfsense-a8590dd64eebe96c58ece0e7125cb8c2117e05af.tar.gz
Tidy up "diag_ipsec" XHTML
Add SUMMARY to TABLES Move NOWRAP into CLASS statement Close INPUT and IMG tags and add ALT to IMG tag Add dummy row to TBODY but don't display it Deprecate Ampersand in ANCHOR tag
Diffstat (limited to 'usr/local/www/diag_ipsec_sad.php')
-rw-r--r--usr/local/www/diag_ipsec_sad.php38
1 files changed, 18 insertions, 20 deletions
diff --git a/usr/local/www/diag_ipsec_sad.php b/usr/local/www/diag_ipsec_sad.php
index 55ed336..225b0a0 100644
--- a/usr/local/www/diag_ipsec_sad.php
+++ b/usr/local/www/diag_ipsec_sad.php
@@ -66,7 +66,7 @@ if ($_GET['act'] == "del") {
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status ipsec sad">
<tr>
<td>
<?php
@@ -82,17 +82,17 @@ if ($_GET['act'] == "del") {
<tr>
<td>
<div id="mainarea">
- <table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0">
+ <table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<?php if (count($sad)): ?>
<tr>
- <td nowrap class="listhdrr"><?=gettext("Source");?></td>
- <td nowrap class="listhdrr"><?=gettext("Destination");?></td>
- <td nowrap class="listhdrr"><?=gettext("Protocol");?></td>
- <td nowrap class="listhdrr"><?=gettext("SPI");?></td>
- <td nowrap class="listhdrr"><?=gettext("Enc. alg.");?></td>
- <td nowrap class="listhdr"><?=gettext("Auth. alg.");?></td>
- <td nowrap class="listhdr"><?=gettext("Data");?></td>
- <td nowrap class="list"></td>
+ <td class="listhdrr nowrap"><?=gettext("Source");?></td>
+ <td class="listhdrr nowrap"><?=gettext("Destination");?></td>
+ <td class="listhdrr nowrap"><?=gettext("Protocol");?></td>
+ <td class="listhdrr nowrap"><?=gettext("SPI");?></td>
+ <td class="listhdrr nowrap"><?=gettext("Enc. alg.");?></td>
+ <td class="listhdr nowrap"><?=gettext("Auth. alg.");?></td>
+ <td class="listhdr nowrap"><?=gettext("Data");?></td>
+ <td class="list nowrap"></td>
</tr>
<?php foreach ($sad as $sa): ?>
<tr>
@@ -103,15 +103,15 @@ if ($_GET['act'] == "del") {
<td class="listr"><?=htmlspecialchars($sa['ealgo']);?></td>
<td class="listr"><?=htmlspecialchars($sa['aalgo']);?></td>
<td class="listr"><?=htmlspecialchars($sa['data']);?></td>
- <td class="list" nowrap>
+ <td class="list nowrap">
<?php
$args = "src=" . rawurlencode($sa['src']);
- $args .= "&dst=" . rawurlencode($sa['dst']);
- $args .= "&proto=" . rawurlencode($sa['proto']);
- $args .= "&spi=" . rawurlencode("0x" . $sa['spi']);
+ $args .= "&amp;dst=" . rawurlencode($sa['dst']);
+ $args .= "&amp;proto=" . rawurlencode($sa['proto']);
+ $args .= "&amp;spi=" . rawurlencode("0x" . $sa['spi']);
?>
- <a href="diag_ipsec_sad.php?act=del&<?=$args;?>" onclick="return confirm('<?=gettext("Do you really want to delete this security association?"); ?>')">
- <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0">
+ <a href="diag_ipsec_sad.php?act=del&amp;<?=$args;?>" onclick="return confirm('<?=gettext("Do you really want to delete this security association?"); ?>')">
+ <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
</a>
</td>
</tr>
@@ -129,12 +129,10 @@ if ($_GET['act'] == "del") {
</tr>
</table>
-<p/>
-
-<span class="vexpl">
+<p class="vexpl">
<span class="red"><strong><?=gettext("Note:");?><br /></strong></span>
<?=gettext("You can configure your IPsec");?> <a href="vpn_ipsec.php"><?=gettext("here.");?></a>
-</span>
+</p>
<?php include("fend.inc"); ?>
</body>
OpenPOWER on IntegriCloud