Révision a8590dd6
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/diag_ipsec_sad.php | ||
---|---|---|
66 | 66 |
|
67 | 67 |
<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> |
68 | 68 |
<?php include("fbegin.inc"); ?> |
69 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
69 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="status ipsec sad">
|
|
70 | 70 |
<tr> |
71 | 71 |
<td> |
72 | 72 |
<?php |
... | ... | |
82 | 82 |
<tr> |
83 | 83 |
<td> |
84 | 84 |
<div id="mainarea"> |
85 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0"> |
|
85 |
<table class="tabcont sortable" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
|
86 | 86 |
<?php if (count($sad)): ?> |
87 | 87 |
<tr> |
88 |
<td nowrap class="listhdrr"><?=gettext("Source");?></td>
|
|
89 |
<td nowrap class="listhdrr"><?=gettext("Destination");?></td>
|
|
90 |
<td nowrap class="listhdrr"><?=gettext("Protocol");?></td>
|
|
91 |
<td nowrap class="listhdrr"><?=gettext("SPI");?></td>
|
|
92 |
<td nowrap class="listhdrr"><?=gettext("Enc. alg.");?></td>
|
|
93 |
<td nowrap class="listhdr"><?=gettext("Auth. alg.");?></td>
|
|
94 |
<td nowrap class="listhdr"><?=gettext("Data");?></td>
|
|
95 |
<td nowrap class="list"></td>
|
|
88 |
<td class="listhdrr nowrap"><?=gettext("Source");?></td>
|
|
89 |
<td class="listhdrr nowrap"><?=gettext("Destination");?></td>
|
|
90 |
<td class="listhdrr nowrap"><?=gettext("Protocol");?></td>
|
|
91 |
<td class="listhdrr nowrap"><?=gettext("SPI");?></td>
|
|
92 |
<td class="listhdrr nowrap"><?=gettext("Enc. alg.");?></td>
|
|
93 |
<td class="listhdr nowrap"><?=gettext("Auth. alg.");?></td>
|
|
94 |
<td class="listhdr nowrap"><?=gettext("Data");?></td>
|
|
95 |
<td class="list nowrap"></td>
|
|
96 | 96 |
</tr> |
97 | 97 |
<?php foreach ($sad as $sa): ?> |
98 | 98 |
<tr> |
... | ... | |
103 | 103 |
<td class="listr"><?=htmlspecialchars($sa['ealgo']);?></td> |
104 | 104 |
<td class="listr"><?=htmlspecialchars($sa['aalgo']);?></td> |
105 | 105 |
<td class="listr"><?=htmlspecialchars($sa['data']);?></td> |
106 |
<td class="list" nowrap>
|
|
106 |
<td class="list nowrap">
|
|
107 | 107 |
<?php |
108 | 108 |
$args = "src=" . rawurlencode($sa['src']); |
109 |
$args .= "&dst=" . rawurlencode($sa['dst']); |
|
110 |
$args .= "&proto=" . rawurlencode($sa['proto']); |
|
111 |
$args .= "&spi=" . rawurlencode("0x" . $sa['spi']); |
|
109 |
$args .= "&dst=" . rawurlencode($sa['dst']);
|
|
110 |
$args .= "&proto=" . rawurlencode($sa['proto']);
|
|
111 |
$args .= "&spi=" . rawurlencode("0x" . $sa['spi']);
|
|
112 | 112 |
?> |
113 |
<a href="diag_ipsec_sad.php?act=del&<?=$args;?>" onclick="return confirm('<?=gettext("Do you really want to delete this security association?"); ?>')"> |
|
114 |
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"> |
|
113 |
<a href="diag_ipsec_sad.php?act=del&<?=$args;?>" onclick="return confirm('<?=gettext("Do you really want to delete this security association?"); ?>')">
|
|
114 |
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
|
|
115 | 115 |
</a> |
116 | 116 |
</td> |
117 | 117 |
</tr> |
... | ... | |
129 | 129 |
</tr> |
130 | 130 |
</table> |
131 | 131 |
|
132 |
<p/> |
|
133 |
|
|
134 |
<span class="vexpl"> |
|
132 |
<p class="vexpl"> |
|
135 | 133 |
<span class="red"><strong><?=gettext("Note:");?><br /></strong></span> |
136 | 134 |
<?=gettext("You can configure your IPsec");?> <a href="vpn_ipsec.php"><?=gettext("here.");?></a> |
137 |
</span>
|
|
135 |
</p>
|
|
138 | 136 |
|
139 | 137 |
<?php include("fend.inc"); ?> |
140 | 138 |
</body> |
Formats disponibles : Unified diff
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