diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-27 20:58:09 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-27 20:58:09 +0000 |
commit | 79f8694f55ea39295ba649945b3557cbe16de1fc (patch) | |
tree | ac362a7a97360bb81d896c86eebf9feea1cf22f9 /usr/local/www/system.php | |
parent | 7247e494abe084aca3cda49816e1a9236443bbed (diff) | |
download | pfsense-79f8694f55ea39295ba649945b3557cbe16de1fc.zip pfsense-79f8694f55ea39295ba649945b3557cbe16de1fc.tar.gz |
better function name :)
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index d3e9eb4..600c9e0 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -105,15 +105,15 @@ if ($_POST) { } if (!$input_errors) { - updatechanged("hostname", &$config['system']['hostname'], strtolower($_POST['hostname'])); - updatechanged("domain", &$config['system']['domain'], strtolower($_POST['domain'])); - updatechanged("username", &$config['system']['username'], $_POST['username']); + update_if_changed("hostname", &$config['system']['hostname'], strtolower($_POST['hostname'])); + update_if_changed("domain", &$config['system']['domain'], strtolower($_POST['domain'])); + update_if_changed("username", &$config['system']['username'], $_POST['username']); - $restart_webgui = updatechanged("webgui protocol", &$config['system']['webgui']['protocol'], $pconfig['webguiproto']); - $restart_webgui = updatechanged("webgui port", &$config['system']['webgui']['port'], $pconfig['webguiport']); - updatechanged("timezone", &$config['system']['timezone'], $_POST['timezone']); - updatechanged("NTP servers", &$config['system']['timeservers'], strtolower($_POST['timeservers'])); - updatechanged("NTP update interval", &$config['system']['time-update-interval'], $_POST['timeupdateinterval']); + $restart_webgui = update_if_changed("webgui protocol", &$config['system']['webgui']['protocol'], $pconfig['webguiproto']); + $restart_webgui = update_if_changed("webgui port", &$config['system']['webgui']['port'], $pconfig['webguiport']); + update_if_changed("timezone", &$config['system']['timezone'], $_POST['timezone']); + update_if_changed("NTP servers", &$config['system']['timeservers'], strtolower($_POST['timeservers'])); + update_if_changed("NTP update interval", &$config['system']['time-update-interval'], $_POST['timeupdateinterval']); /* XXX - billm: these still need updating after figuring out how to check if they actually changed */ unset($config['system']['dnsserver']); |