summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-04-20 15:03:51 +0545
committerPhil Davis <phil.davis@inf.org>2016-04-20 15:03:51 +0545
commitd3f7004d96c274f117a0264094595c9fbe85b6f7 (patch)
treef404a2fd46489244bcf569ffbc84fcc3b8fbb572 /src/usr/local/www/widgets/widgets
parent4743ee327f91bf459646968558ad27f6352aa2c3 (diff)
downloadpfsense-d3f7004d96c274f117a0264094595c9fbe85b6f7.zip
pfsense-d3f7004d96c274f117a0264094595c9fbe85b6f7.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.
Diffstat (limited to 'src/usr/local/www/widgets/widgets')
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php8
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.
OpenPOWER on IntegriCloud