summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-04 16:42:15 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-04 16:42:15 -0600
commit0d2497a980bc471b9f3233c81ac17af51188ae25 (patch)
tree8b87dcc528113305fa2eaba148912fd8cf13b9c1 /src/usr/local/www/interfaces.php
parentaeb87745b68663dc97a3ed48aa951ef4075f7042 (diff)
downloadpfsense-0d2497a980bc471b9f3233c81ac17af51188ae25.zip
pfsense-0d2497a980bc471b9f3233c81ac17af51188ae25.tar.gz
Now that the fields on interfaces.php aren't hidden upon disabling the interface, we don't want to handle disable separately from everything else, as that discards all the changes other than disabling the interface. Everything else with handling bringing down of interfaces is still handled correctly. semi-related to Ticket #2453
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r--src/usr/local/www/interfaces.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 01f6f95..79aa634 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -479,24 +479,6 @@ if ($_POST['apply']) {
@unlink("{$g['tmp_path']}/.interfaces.apply");
header("Location: interfaces.php?if={$if}");
exit;
-} else if ($_POST && $_POST['enable'] != "yes") {
- unset($wancfg['enable']);
- if (isset($wancfg['wireless'])) {
- interface_sync_wireless_clones($wancfg, false);
- }
- write_config(sprintf(gettext('Interface %1$s (%2$s) is now disabled.'), $_POST['descr'], $if));
- mark_subsystem_dirty('interfaces');
- if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
- $toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
- } else {
- $toapplylist = array();
- }
- $toapplylist[$if]['ifcfg'] = $wancfg;
- $toapplylist[$if]['ppps'] = $a_ppps;
- /* we need to be able remove IP aliases for IPv6 */
- file_put_contents("{$g['tmp_path']}/.interfaces.apply", serialize($toapplylist));
- header("Location: interfaces.php?if={$if}");
- exit;
} else if ($_POST) {
unset($input_errors);
OpenPOWER on IntegriCloud