diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 11:08:52 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-20 11:08:52 -0500 |
commit | 437a17795bbb3b9d235d32b9e3d8c3e17626584d (patch) | |
tree | 004863008827cde31f09c4e57104db40e20ff726 /src/usr/local/www/system.php | |
parent | 929068aa830b40d1f2c219ac36f16a27eaea4c04 (diff) | |
parent | d958a08dd9f92c2ac3611059523c488b4d8300ff (diff) | |
download | pfsense-437a17795bbb3b9d235d32b9e3d8c3e17626584d.zip pfsense-437a17795bbb3b9d235d32b9e3d8c3e17626584d.tar.gz |
Merge pull request #2097 from phil-davis/timeupdateinterval
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r-- | src/usr/local/www/system.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 2a460b9..23d1447 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -86,16 +86,12 @@ $pconfig['dns4gw'] = $config['system']['dns4gw']; $pconfig['dnsallowoverride'] = isset($config['system']['dnsallowoverride']); $pconfig['timezone'] = $config['system']['timezone']; -$pconfig['timeupdateinterval'] = $config['system']['time-update-interval']; $pconfig['timeservers'] = $config['system']['timeservers']; $pconfig['language'] = $config['system']['language']; $pconfig['webguicss'] = $config['system']['webgui']['webguicss']; $pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); -if (!isset($pconfig['timeupdateinterval'])) { - $pconfig['timeupdateinterval'] = 300; -} if (!$pconfig['timezone']) { if (isset($g['default_timezone']) && !empty($g['default_timezone'])) { $pconfig['timezone'] = $g['default_timezone']; @@ -201,10 +197,6 @@ if ($_POST) { } } - $t = (int)$_POST['timeupdateinterval']; - if (($t < 0) || (($t > 0) && ($t < 6)) || ($t > 1440)) { - $input_errors[] = gettext("The time update interval must be either 0 (disabled) or between 6 and 1440."); - } # it's easy to have a little too much whitespace in the field, clean it up for the user before processing. $_POST['timeservers'] = preg_replace('/[[:blank:]]+/', ' ', $_POST['timeservers']); $_POST['timeservers'] = trim($_POST['timeservers']); @@ -219,7 +211,6 @@ if ($_POST) { update_if_changed("domain", $config['system']['domain'], $_POST['domain']); 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']); if ($_POST['language'] && $_POST['language'] != $config['system']['language']) { $config['system']['language'] = $_POST['language']; |