diff options
-rwxr-xr-x | usr/local/www/interfaces.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 1ad207c..343e83c 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -3,6 +3,7 @@ /* interfaces.php Copyright (C) 2004-2008 Scott Ullrich + Copyright (C) 2006 Daniel S. Haischt. Copyright (C) 2008 Ermal Luçi All rights reserved. @@ -238,11 +239,10 @@ if ($_POST['apply']) { interface_configure($if); system_start_ftp_helpers(); reset_carp(); - if ($if == "lan") { - /* restart snmp so that it binds to correct address */ - services_snmpd_configure(); + /* restart snmp so that it binds to correct address */ + 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 */ config_lock(); setup_gateways_monitor(); @@ -485,9 +485,9 @@ if ($_POST) { handle_wireless_post(); write_config(); touch($d_landirty_path); - conf_mount_ro(); /* regenerate cron settings/crontab file */ configure_cron(); + conf_mount_ro(); header("Location: interfaces.php?if={$if}"); exit; } @@ -730,10 +730,10 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" <?php include("fbegin.inc"); ?> <form action="interfaces.php" method="post" name="iform" id="iform"> <?php if ($input_errors) print_input_errors($input_errors); ?> - <?php if (file_exists($d_landirty_path)): ?><p> + <?php if (file_exists($d_landirty_path)): ?><p> <?php print_info_box_np(gettext("The {$wancfg['descr']} configuration has been changed.<p>You must apply the changes in order for them to take effect.<p>Don't forget to adjust the DHCP Server range if needed before applying."));?><br /> - <?php endif; ?> - <?php if ($savemsg) print_info_box($savemsg); ?> + <?php endif; ?> + <?php if ($savemsg) print_info_box($savemsg); ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> <td colspan="2" valign="top" class="listtopic">General configuration</td> |