summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 2710186..01368a8 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -66,6 +66,7 @@ $pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['system
$pconfig['statusmonitoringsettingspanel'] = isset($config['system']['webgui']['statusmonitoringsettingspanel']);
$pconfig['webguihostnamemenu'] = $config['system']['webgui']['webguihostnamemenu'];
$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
+$pconfig['dashboardperiod'] = isset($config['widgets']['period']) ? $config['widgets']['period']:"10";
if (!$pconfig['timezone']) {
if (isset($g['default_timezone']) && !empty($g['default_timezone'])) {
@@ -113,6 +114,10 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
+ if ($_POST['dashboardperiod']) {
+ $config['widgets']['period'] = $_POST['dashboardperiod'];
+ }
+
if ($_POST['webguicss']) {
$config['system']['webgui']['webguicss'] = $_POST['webguicss'];
} else {
@@ -356,6 +361,7 @@ $section->addInput(new Form_Input(
$pconfig['hostname'],
['placeholder' => 'pfSense']
))->setHelp('Name of the firewall host, without domain part');
+
$section->addInput(new Form_Input(
'domain',
'Domain',
@@ -365,6 +371,7 @@ $section->addInput(new Form_Input(
))->setHelp('Do not use \'local\' as a domain name. It will cause local '.
'hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve '.
'local hosts not running mDNS.');
+
$form->add($section);
$section = new Form_Section('DNS Server Settings');
@@ -441,12 +448,14 @@ $section->addInput(new Form_Checkbox(
$form->add($section);
$section = new Form_Section('Localization');
+
$section->addInput(new Form_Select(
'timezone',
'Timezone',
$pconfig['timezone'],
array_combine($timezonelist, $timezonelist)
))->setHelp('Select the timezone or location within the timezone to be used by this system.');
+
$section->addInput(new Form_Input(
'timeservers',
'Timeservers',
@@ -454,6 +463,7 @@ $section->addInput(new Form_Input(
$pconfig['timeservers']
))->setHelp('Use a space to separate multiple hosts (only one required). '.
'Remember to set up at least one DNS server if a host name is entered here!');
+
$section->addInput(new Form_Select(
'language',
'Language',
@@ -477,6 +487,16 @@ gen_associatedpanels_fields(
$pconfig['statusmonitoringsettingspanel']);
gen_webguileftcolumnhyper_field($section, $pconfig['webguileftcolumnhyper']);
+$section->addInput(new Form_Input(
+ 'dashboardperiod',
+ 'Dashboard update period',
+ 'number',
+ $pconfig['dashboardperiod'],
+ ['min' => '10', 'max' => '600']
+))->setHelp('Time in seconds between dashboard widget updates. Small values cause ' .
+ 'more frequent updates but increase the load on the web server. ' .
+ 'Minimum is 5 seconds, maximum 600 seconds');
+
$form->add($section);
print $form;
OpenPOWER on IntegriCloud