diff options
author | Phil Davis <phil.davis@inf.org> | 2016-04-20 15:03:51 +0545 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-20 07:35:47 -0400 |
commit | 048f29dce62d8398bf0187a9ca9ff1d0541031f5 (patch) | |
tree | 65d286dd2ca53cc96d1b3f244a74ed62fceec7f6 /src/usr/local/www/widgets | |
parent | db0d17edbda58711bb7f95c4d23f0a325a1cab39 (diff) | |
download | pfsense-048f29dce62d8398bf0187a9ca9ff1d0541031f5.zip pfsense-048f29dce62d8398bf0187a9ca9ff1d0541031f5.tar.gz |
Fix #6212 Really disable checks
Belts and braces here - I the setTimeout is not done then the other bits of code do not get called anyway, but I took them all out to make sure there is no way to accidentally do the update check when it is disabled.
(cherry picked from commit d3f7004d96c274f117a0264094595c9fbe85b6f7)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index b1cb040..28189e3 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -63,6 +63,10 @@ include_once("includes/functions.inc.php"); if ($_REQUEST['getupdatestatus']) { require_once("pkg-utils.inc"); + if (isset($config['system']['firmware']['disablecheck'])) { + exit; + } + $system_version = get_system_pkg_version(); if ($system_version === false) { @@ -304,6 +308,7 @@ $filesystems = get_mounted_filesystems(); <script type="text/javascript"> //<![CDATA[ +<?php if (!isset($config['system']['firmware']['disablecheck'])): ?> function systemStatusGetUpdateStatus() { $.ajax({ type: 'get', @@ -319,6 +324,7 @@ function systemStatusGetUpdateStatus() { } }); } +<?php endif; ?> function updateMeters() { url = '/getstats.php'; @@ -336,9 +342,11 @@ function updateMeters() { } +<?php if (!isset($config['system']['firmware']['disablecheck'])): ?> events.push(function(){ setTimeout('systemStatusGetUpdateStatus()', 4000); }); +<?php endif; ?> /* Most widgets update their backend data every 10 seconds. 11 seconds * will ensure that we update the GUI right after the stats are updated. |