Révision 17402c63
Ajouté par Ermal il y a plus de 9 ans
usr/local/www/diag_ipsec_spd.php | ||
---|---|---|
50 | 50 |
$shortcut_section = "ipsec"; |
51 | 51 |
include("head.inc"); |
52 | 52 |
|
53 |
/* delete any SP? */ |
|
54 |
if ($_GET['act'] == "del") { |
|
55 |
$fd = @popen("/sbin/setkey -c > /dev/null 2>&1", "w"); |
|
56 |
if ($fd) { |
|
57 |
fwrite($fd, "spddelete {$_GET['srcid']} {$_GET['dstid']} any -P {$_GET['dir']} ;\n"); |
|
58 |
pclose($fd); |
|
59 |
sleep(1); |
|
60 |
} |
|
61 |
} |
|
62 |
|
|
63 | 53 |
$spd = ipsec_dump_spd(); |
64 | 54 |
?> |
65 | 55 |
|
... | ... | |
106 | 96 |
$args .= "&dstid=".rawurlencode($sp['dstid']); |
107 | 97 |
$args .= "&dir=".rawurlencode($sp['dir']); |
108 | 98 |
?> |
109 |
<a href="diag_ipsec_spd.php?act=del&<?=$args;?>" onclick="return confirm('<?= gettext("Do you really want to delete this security policy?"); ?>')"> |
|
110 |
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" /> |
|
111 |
</a> |
|
112 | 99 |
</td> |
113 | 100 |
</tr> |
114 | 101 |
<?php endforeach; ?> |
Formats disponibles : Unified diff
Correct the ipsec status pages to show proper information as needed.