diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-10 13:18:11 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-10 13:18:11 +0000 |
commit | 5d41713c0b24cc1088c94175122f8b7ca49fe96c (patch) | |
tree | d304a12f8c56b76795037ff4c2994e777eac7493 /usr/local/www/interfaces_ppp.php | |
parent | 9b1c39e3a3d766c94d59fea75f7bf9e96ca87f85 (diff) | |
download | pfsense-5d41713c0b24cc1088c94175122f8b7ca49fe96c.zip pfsense-5d41713c0b24cc1088c94175122f8b7ca49fe96c.tar.gz |
Catch up with backend modification and synchronize some fields in the GUI itself.
Diffstat (limited to 'usr/local/www/interfaces_ppp.php')
-rw-r--r-- | usr/local/www/interfaces_ppp.php | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/usr/local/www/interfaces_ppp.php b/usr/local/www/interfaces_ppp.php index cb4df01..3ec6f9f 100644 --- a/usr/local/www/interfaces_ppp.php +++ b/usr/local/www/interfaces_ppp.php @@ -58,32 +58,16 @@ function ppp_inuse($num) { return false; } -function renumber_ppp($if, $delppp) { - if (!preg_match("/^ppp/", $if)) - return $if; - - $ppp = substr($if, 4); - if ($ppp > $delppp) - return "ppp" . ($ppp - 1); - else - return $if; -} - if ($_GET['act'] == "del") { /* check if still in use */ if (ppp_inuse($_GET['id'])) { $input_errors[] = "This PPP interface cannot be deleted because it is still being used as an interface."; } else { + mwexec("/sbin/ifconfig " . $a_ppps[$_GET['id']]['pppif'] . " destroy"); unset($a_ppps[$_GET['id']]); - $iflist = get_configured_interface_list(false, true); - foreach ($iflist as $if) - $config['interfaces'][$if]['if'] = renumber_ppp($config['interfaces'][$if]['if'], $_GET['id']); - write_config(); - interfaces_configure(); - header("Location: interfaces_ppp.php"); exit; } |