diff options
author | jim-p <jimp@pfsense.org> | 2012-09-27 09:10:40 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-09-27 09:18:22 -0400 |
commit | 7a058f067eb1b7216eace85aa12d2eaaacf443d2 (patch) | |
tree | bb91d0456b6a0517a0b34b4b67045c03192165d7 /usr/local/www/system_firmware_settings.php | |
parent | 96f7a687af3b826c4e23150291e5d0c8ea1073a1 (diff) | |
download | pfsense-7a058f067eb1b7216eace85aa12d2eaaacf443d2.zip pfsense-7a058f067eb1b7216eace85aa12d2eaaacf443d2.tar.gz |
Add option to disable the dashboard auto-update check
Diffstat (limited to 'usr/local/www/system_firmware_settings.php')
-rwxr-xr-x | usr/local/www/system_firmware_settings.php | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index 5792a2e..34849d1 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -50,12 +50,17 @@ if ($_POST) { unset($config['system']['firmware']['alturl']['enable']); unset($config['system']['firmware']['alturl']['firmwareurl']); unset($config['system']['firmware']['alturl']); - unset($config['system']['firmware']); + unset($config['system']['firmware']); } if($_POST['allowinvalidsig'] == "yes") - $config['system']['firmware']['allowinvalidsig'] = true; - else - unset($config['system']['firmware']['allowinvalidsig']); + $config['system']['firmware']['allowinvalidsig'] = true; + else + unset($config['system']['firmware']['allowinvalidsig']); + + if($_POST['disablecheck'] == "yes") + $config['system']['firmware']['disablecheck'] = true; + else + unset($config['system']['firmware']['disablecheck']); if($_POST['synconupgrade'] == "yes") $config['system']['gitsync']['synconupgrade'] = true; @@ -166,6 +171,14 @@ function enable_altfirmwareurl(enable_over) { <?=gettext("Allow auto-update firmware images with a missing or invalid digital signature to be used."); ?> </td> </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Dashboard check"); ?></td> + <td width="78%" class="vtable"> + <input name="disablecheck" type="checkbox" id="disablecheck" value="yes" <?php if (isset($curcfg['disablecheck'])) echo "checked"; ?> /> + <br /> + <?=gettext("Disable the automatic dashboard auto-update check."); ?> + </td> + </tr> <?php if(file_exists("/usr/local/bin/git") && $g['platform'] == "pfSense"): ?> <tr> <td colspan="2" class="list" height="12"> </td> |