diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-21 21:36:15 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-21 21:36:15 +0000 |
commit | 122f8374bf669ec0959645b36d2b05b9ca203c4b (patch) | |
tree | 32db26b491451e702bb7822ce5635587c8432cea /usr | |
parent | 275b29ebbcfe21262f76f443522078534eba88ef (diff) | |
download | pfsense-122f8374bf669ec0959645b36d2b05b9ca203c4b.zip pfsense-122f8374bf669ec0959645b36d2b05b9ca203c4b.tar.gz |
Correctly remove file after disabling pppoe_reset
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 04d88ca..16c0929 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -315,19 +315,14 @@ if ($_POST) { } /* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */ $_POST['spoofmac'] = strtolower(str_replace("-", ":", $_POST['spoofmac'])); - if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) $input_errors[] = "A valid IP address must be specified."; - if (($_POST['subnet'] && !is_numeric($_POST['subnet']))) $input_errors[] = "A valid subnet bit count must be specified."; - if (($_POST['alias-address'] && !is_ipaddr($_POST['alias-address']))) $input_errors[] = "A valid alias IP address must be specified."; - if (($_POST['alias-subnet'] && !is_numeric($_POST['alias-subnet']))) $input_errors[] = "A valid alias subnet bit count must be specified."; - if ($_POST['gateway'] != "none") { $match = false; foreach($a_gateways as $gateway) { @@ -466,7 +461,7 @@ if ($_POST) { $wancfg['ondemand'] = $_POST['pptp_dialondemand'] ? true : false; $wancfg['timeout'] = $_POST['pptp_idletimeout']; } - handle_pppoe_reset(); + handle_pppoe_reset(); /* reset cron items if necessary */ if (empty($_POST['pppoe_preset'])) { /* test whether a cron item exists and unset() it if necessary */ |