From a5d6f60bf42e07949ccf9d46a29d539c9d327205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Thu, 18 Jun 2009 16:59:43 +0000 Subject: * Fix the pppoe reset script. * Do not reload recursevly services while configuring interfaces * Clean up the resync_all and reload_interfaces to not call services recursievly * Fix interfaces.php to not try to save the config after you click the apply button. * Put interfaces_loopback_configure on interfaces_configure its an interface after all. --- usr/local/www/interfaces.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 8a8fb8f..90cf167 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -240,19 +240,16 @@ if ($_POST['apply']) { services_snmpd_configure(); if ($if == "lan") $savemsg = "The changes have been applied. You may need to correct your web browser's IP address."; + /* sync filter configuration */ setup_gateways_monitor(); + if (file_exists($d_staticroutesdirty_path)) unlink($d_staticroutesdirty_path); - filter_configure(); - /* set up static routes */ - system_routing_configure(); - /* start IPsec tunnels */ - vpn_ipsec_configure(); } header("Location: interfaces.php?if={$if}"); exit; -} +} else if ($_POST && $_POST['enable'] == "no") { unset($wancfg['enable']); @@ -261,7 +258,7 @@ if ($_POST && $_POST['enable'] == "no") { touch($d_landirty_path); header("Location: interfaces.php?if={$if}"); exit; -} +} else if ($_POST) { unset($input_errors); -- cgit v1.1