summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_rfc2136.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-14 14:42:13 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-14 14:42:13 -0500
commit13541a81e1173fc02af9af8ab7fe46df2a51007d (patch)
treec87a8d90338bfb1e2c245b58e77cca67b70c8c60 /src/usr/local/www/services_rfc2136.php
parentc946d7217bff529d246084f9b83212ad0ab730a3 (diff)
downloadpfsense-13541a81e1173fc02af9af8ab7fe46df2a51007d.zip
pfsense-13541a81e1173fc02af9af8ab7fe46df2a51007d.tar.gz
GET/POST conversions
Diffstat (limited to 'src/usr/local/www/services_rfc2136.php')
-rw-r--r--src/usr/local/www/services_rfc2136.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php
index c5d23c1..d5aadae 100644
--- a/src/usr/local/www/services_rfc2136.php
+++ b/src/usr/local/www/services_rfc2136.php
@@ -34,19 +34,19 @@ if (!is_array($config['dnsupdates']['dnsupdate'])) {
$a_rfc2136 = &$config['dnsupdates']['dnsupdate'];
-if ($_GET['act'] == "del") {
- unset($a_rfc2136[$_GET['id']]);
+if ($_POST['act'] == "del") {
+ unset($a_rfc2136[$_POST['id']]);
write_config();
header("Location: services_rfc2136.php");
exit;
-} else if ($_GET['act'] == "toggle") {
- if ($a_rfc2136[$_GET['id']]) {
- if (isset($a_rfc2136[$_GET['id']]['enable'])) {
- unset($a_rfc2136[$_GET['id']]['enable']);
+} else if ($_POST['act'] == "toggle") {
+ if ($a_rfc2136[$_POST['id']]) {
+ if (isset($a_rfc2136[$_POST['id']]['enable'])) {
+ unset($a_rfc2136[$_POST['id']]['enable']);
} else {
- $a_rfc2136[$_GET['id']]['enable'] = true;
+ $a_rfc2136[$_POST['id']]['enable'] = true;
}
write_config();
@@ -176,13 +176,13 @@ foreach ($a_rfc2136 as $rfc2136):
<a class="fa fa-pencil" title="<?=gettext('Edit client')?>" href="services_rfc2136_edit.php?id=<?=$i?>"></a>
<?php if (isset($rfc2136['enable'])) {
?>
- <a class="fa fa-ban" title="<?=gettext('Disable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
+ <a class="fa fa-ban" title="<?=gettext('Disable client')?>" href="?act=toggle&amp;id=<?=$i?>" usepost></a>
<?php } else {
?>
- <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
+ <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&amp;id=<?=$i?>" usepost></a>
<?php }
?>
- <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&amp;id=<?=$i?>"></a>
+ <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&amp;id=<?=$i?>" usepost></a>
</td>
</tr>
<?php
OpenPOWER on IntegriCloud