summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/system_advanced_misc.php32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/usr/local/www/system_advanced_misc.php b/src/usr/local/www/system_advanced_misc.php
index 6bca4b6..7e78c7f 100644
--- a/src/usr/local/www/system_advanced_misc.php
+++ b/src/usr/local/www/system_advanced_misc.php
@@ -92,7 +92,6 @@ $pconfig['apinger_debug'] = isset($config['system']['apinger_debug']);
$pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']);
$pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size'];
$pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size'];
-$pconfig['pkg_nochecksig'] = isset($config['system']['pkg_nochecksig']);
$pconfig['host_uuid'] = !isset($config['system']['host_uuid']);
$pconfig['powerd_ac_mode'] = "hadp";
@@ -321,8 +320,9 @@ include("head.inc");
if ($input_errors)
print_input_errors($input_errors);
+
if ($savemsg)
- print_info_box($savemsg);
+ print_info_box($savemsg, success);
$tab_array = array();
$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
@@ -333,9 +333,8 @@ $tab_array[] = array(gettext("System Tunables"), false, "system_advanced_sysctl.
$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
display_top_tabs($tab_array);
-?><div id="container"><?php
-
require_once('classes/Form.class.php');
+
$form = new Form;
$section = new Form_Section('Proxy support');
@@ -582,17 +581,24 @@ $section->addInput(new Form_Input(
'frequent the backup, the more writes will happen to your media.');
$form->add($section);
-$section = new Form_Section('Package settings');
-$section->addInput(new Form_Checkbox(
- 'pkg_nochecksig',
- 'Package signature',
- 'Disable check package signature',
- $pconfig['pkg_nochecksig']
-))->setHelp('Enable this option to allow pfSense to install any package without '.
- 'checking its signature.');
+if ($g['platform'] == "pfSense") {
+ $section = new Form_Section('Hardware settings');
+
+ $opts = array(0.5, 1, 2, 3, 4, 5, 7.5, 10, 15, 20, 30, 60);
+ $vals = array( 6, 12, 24, 36, 48, 60, 90, 120, 180, 240, 241, 242);
+
+ $section->addINput(new Form_Select(
+ 'harddiskstandby',
+ 'Hard disk standby time',
+ $pconfig['harddiskstandby'],
+ ['' => gettext("Always on")] + array_combine($opts, $vals)
+ ))->setHelp("Puts the hard disk into standby mode when the selected number of minutes has elapsed since the last access." . "<br />" .
+ "<strong> Do not set this for CF cards.</strong>");
+
+ $form->add($section);
+}
-$form->add($section);
print $form;
include("foot.inc");
OpenPOWER on IntegriCloud