diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 06:29:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 06:29:53 +0000 |
commit | 744ea19041485dad14e983a631cc3493902650e8 (patch) | |
tree | 73ccf66f5d64871e3ef97c2b850960cef0f1b3f5 /usr/local/www/interfaces.php | |
parent | 2e420191a8b8eab69fdca9be0c663b363b77b16f (diff) | |
download | pfsense-744ea19041485dad14e983a631cc3493902650e8.zip pfsense-744ea19041485dad14e983a631cc3493902650e8.tar.gz |
* Move conf_mount_ro() after cron_configure()
* Add back dsh's (C), he did write the pppoe reset stuff, plus a bit more
Diffstat (limited to 'usr/local/www/interfaces.php')
-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> |