From f34455d8fc6337ffac01c4d0bdf880e7d9c99910 Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Fri, 10 Feb 2017 11:40:30 -0500 Subject: GET/POST conversion interfaces_ppps* --- src/usr/local/www/interfaces_ppps.php | 18 +++++++++--------- src/usr/local/www/interfaces_ppps_edit.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/interfaces_ppps.php b/src/usr/local/www/interfaces_ppps.php index 19afc48..9aa074e 100644 --- a/src/usr/local/www/interfaces_ppps.php +++ b/src/usr/local/www/interfaces_ppps.php @@ -50,15 +50,15 @@ function ppp_inuse($num) { return false; } -if ($_GET['act'] == "del") { +if ($_POST['act'] == "del") { /* check if still in use */ - if (ppp_inuse($_GET['id'])) { + if (ppp_inuse($_POST['id'])) { $input_errors[] = gettext("This point-to-point link cannot be deleted because it is still being used as an interface."); - } elseif (is_array($config['ppps']['ppp']) && is_array($config['ppps']['ppp'][$_GET['id']])) { + } elseif (is_array($config['ppps']['ppp']) && is_array($config['ppps']['ppp'][$_POST['id']])) { - unset($config['ppps']['ppp'][$_GET['id']]['pppoe-reset-type']); - handle_pppoe_reset($config['ppps']['ppp'][$_GET['id']]); - unset($config['ppps']['ppp'][$_GET['id']]); + unset($config['ppps']['ppp'][$_POST['id']]['pppoe-reset-type']); + handle_pppoe_reset($config['ppps']['ppp'][$_POST['id']]); + unset($config['ppps']['ppp'][$_POST['id']]); write_config(); header("Location: interfaces_ppps.php"); exit; @@ -126,8 +126,8 @@ foreach ($a_ppps as $id => $ppp) { - - + + $ppp) {