diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-09 17:35:03 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-09 17:35:03 -0500 |
commit | 878d6f72490dc2000b7831b95e73bf0749e62691 (patch) | |
tree | 5a246c05afdfab2a6df249a7d95db92a119bbce9 /src/usr/local | |
parent | fe914124313065d9ef0ffe2f30b6bba7df32bfc5 (diff) | |
download | pfsense-878d6f72490dc2000b7831b95e73bf0749e62691.zip pfsense-878d6f72490dc2000b7831b95e73bf0749e62691.tar.gz |
GET/POST conversion system_advanced_ioctl
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/system_advanced_sysctl.php | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/usr/local/www/system_advanced_sysctl.php b/src/usr/local/www/system_advanced_sysctl.php index 7ccd42e..745cd52 100644 --- a/src/usr/local/www/system_advanced_sysctl.php +++ b/src/usr/local/www/system_advanced_sysctl.php @@ -43,17 +43,11 @@ if (!is_array($config['sysctl']['item'])) { $a_tunable = &$config['sysctl']['item']; $tunables = system_get_sysctls(); -if (isset($_GET['id'])) { - $id = htmlspecialchars_decode($_GET['id']); -} if (isset($_POST['id'])) { $id = htmlspecialchars_decode($_POST['id']); } -$act = $_GET['act']; -if (isset($_POST['act'])) { - $act = $_POST['act']; -} +$act = $_POST['act']; if ($act == "edit") { if (isset($a_tunable[$id])) { @@ -80,7 +74,7 @@ if ($act == "del") { } } -if ($_POST) { +if ($_POST['save'] || $_POST['apply']) { unset($input_errors); $pconfig = $_POST; @@ -161,7 +155,7 @@ if ($act != "edit"): ?> <th class="col-sm-3"><?=gettext("Tunable Name"); ?></th> <th><?=gettext("Description"); ?></th> <th class="col-sm-1"><?=gettext("Value"); ?></th> - <th><a class="btn btn-xs btn-success" href="system_advanced_sysctl.php?act=edit"><i class="fa fa-plus icon-embed-btn"></i><?=gettext('New'); ?></a></th> + <th><a class="btn btn-xs btn-success" href="system_advanced_sysctl.php?act=edit" usepost><i class="fa fa-plus icon-embed-btn"></i><?=gettext('New'); ?></a></th> </tr> </thead> <?php @@ -181,9 +175,9 @@ if ($act != "edit"): ?> ?> </td> <td> - <a class="fa fa-pencil" title="<?=gettext("Edit tunable"); ?>" href="system_advanced_sysctl.php?act=edit&id=<?=$i;?>"></a> + <a class="fa fa-pencil" title="<?=gettext("Edit tunable"); ?>" href="system_advanced_sysctl.php?act=edit&id=<?=$i;?>" usepost></a> <?php if (isset($tunable['modified'])): ?> - <a class="fa fa-trash" title="<?=gettext("Delete/Reset tunable")?>" href="system_advanced_sysctl.php?act=del&id=<?=$i;?>"></a> + <a class="fa fa-trash" title="<?=gettext("Delete/Reset tunable")?>" href="system_advanced_sysctl.php?act=del&id=<?=$i;?>" usepost></a> <?php endif; ?> </td> </tr> |