diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index 0bce5bed9..cbb03f59d 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -278,7 +278,16 @@ function get_firmware_flavours() function get_zoneinfo() { - return timezone_identifiers_list(DateTimeZone::ALL ^ DateTimeZone::UTC); + $zones = timezone_identifiers_list(DateTimeZone::ALL ^ DateTimeZone::UTC); + + $etcs = glob('/usr/share/zoneinfo/Etc/*'); + foreach ($etcs as $etc) { + $zones[] = ltrim($etc, '/usr/share/zoneinfo/'); + } + + natsort($zones); + + return $zones; } function get_searchdomains() diff --git a/src/www/system_advanced_misc.php b/src/www/system_advanced_misc.php index 4ea4d08b7..844a19b5a 100644 --- a/src/www/system_advanced_misc.php +++ b/src/www/system_advanced_misc.php @@ -78,7 +78,6 @@ function thermal_modules() if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig = array(); - $pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']); $pconfig['powerd_enable'] = isset($config['system']['powerd_enable']); $pconfig['crypto_hardware'] = !empty($config['system']['crypto_hardware']) ? $config['system']['crypto_hardware'] : null; $pconfig['cryptodev_enable'] = isset($config['system']['cryptodev_enable']); @@ -109,12 +108,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } if (count($input_errors) == 0) { - if (!empty($pconfig['gw_switch_default'])) { - $config['system']['gw_switch_default'] = true; - } elseif (isset($config['system']['gw_switch_default'])) { - unset($config['system']['gw_switch_default']); - } - if (!empty($pconfig['powerd_enable'])) { $config['system']['powerd_enable'] = true; } elseif (isset($config['system']['powerd_enable'])) { @@ -203,87 +196,12 @@ include("head.inc");
- + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/src/www/system_general.php b/src/www/system_general.php index 8daf77de9..1282cfeb0 100644 --- a/src/www/system_general.php +++ b/src/www/system_general.php @@ -57,6 +57,7 @@ function get_locale_list() if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig = array(); + $pconfig['dns1gw'] = null; $pconfig['dns2gw'] = null; $pconfig['dns3gw'] = null; @@ -66,10 +67,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['timezone'] = "Etc/UTC"; $pconfig['mirror'] = 'default'; $pconfig['flavour'] = 'default'; - $pconfig['prefer_ipv4'] = isset($config['system']['prefer_ipv4']); + $pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']); $pconfig['hostname'] = $config['system']['hostname']; $pconfig['domain'] = $config['system']['domain']; + if (isset($config['system']['dnsserver'])) { list($pconfig['dns1'],$pconfig['dns2'],$pconfig['dns3'],$pconfig['dns4']) = $config['system']['dnsserver']; } else { @@ -196,6 +198,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { unset($config['system']['prefer_ipv4']); } + if (!empty($pconfig['gw_switch_default'])) { + $config['system']['gw_switch_default'] = true; + } elseif (isset($config['system']['gw_switch_default'])) { + unset($config['system']['gw_switch_default']); + } + $olddnsservers = $config['system']['dnsserver']; $config['system']['dnsserver'] = array(); foreach (array('dns1', 'dns2', 'dns3', 'dns4') as $dnsopt) { @@ -338,107 +346,13 @@ include("head.inc"); - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +
- /> -
- -
- /> - -
- -
- -
@@ -408,6 +326,67 @@ include("head.inc");
+ /> + +
+ +
+ +
- - - - - - - - - - - - - - - -
- - - -
- -
- /> - - - - -
- /> - - - - -
- /> - - -
@@ -527,6 +444,114 @@ include("head.inc");
+ + + + + + + + + + + + + + + +
+ + + +
+ +
+ /> + + + + +
+ /> + + + + +
+ /> + + +
+ /> +
+ +