<div class="hidden" for="help_for_dnsservers_opt"> <?php echo gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. " . "Checking this box omits localhost from the list of DNS servers."); ?> </div> </td> </tr> <tr> <td><a id="help_for_timezone" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?php echo gettext("Time zone"); ?> </td> <td> <select name="timezone" id="timezone" data-size="10" class="selectpicker" data-style="btn-default" data-live-search="true"> <?php foreach (get_zoneinfo() as $value) { if (strstr($value, "GMT")) { continue; } ?> <option value="<?php echo htmlspecialchars($value); ?> " <?php echo $value == $pconfig['timezone'] ? "selected=\"selected\"" : ""; ?> > <?php echo htmlspecialchars($value); ?> </option>
$pconfig['timeservers'] = "pool.ntp.org"; } $pconfig['mirror'] = 'default'; if (isset($config['system']['firmware']['mirror'])) { $pconfig['mirror'] = $config['system']['firmware']['mirror']; } $pconfig['flavour'] = 'default'; if (isset($config['system']['firmware']['flavour'])) { $pconfig['flavour'] = $config['system']['firmware']['flavour']; } $changedesc = gettext("System") . ": "; $changecount = 0; if (isset($_POST['timezone']) && $pconfig['timezone'] != $_POST['timezone']) { filter_pflog_start(); } $timezonelist = get_zoneinfo(); $multiwan = false; $interfaces = get_configured_interface_list(); foreach ($interfaces as $interface) { if (interface_has_gateway($interface)) { $multiwan = true; } } if ($_POST) { $changecount++; unset($input_errors); $pconfig = $_POST; /* input validation */ $reqdfields = explode(" ", "hostname domain"); $reqdfieldsn = array(gettext("Hostname"), gettext("Domain")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);