]>
Commit | Line | Data |
---|---|---|
252c8c1b ER |
1 | do not fetch rss automatically, respect some privacy! |
2 | ||
3 | use update_checks_enabled option to tune the default (altho new option would be | |
4 | more reasonable) | |
5 | ||
6 | --- nagios/html/main.php~ 2012-05-29 00:04:23.000000000 +0300 | |
7 | +++ nagios/html/main.php 2012-05-29 00:08:36.419474072 +0300 | |
fa363e1f AM |
8 | @@ -14,8 +14,11 @@ $this_year = '2014'; |
9 | <title>Nagios Core</title> | |
10 | <link rel="stylesheet" type="text/css" href="stylesheets/common.css?<?php echo $this_version; ?>" /> | |
252c8c1b | 11 | <script type="text/javascript" src="/js/jquery/jquery.js"></script> |
fa363e1f | 12 | - |
252c8c1b ER |
13 | <script type='text/javascript'> |
14 | +<?php | |
15 | + $updateinfo=get_update_information(); | |
16 | + if ($updateinfo['update_checks_enabled']!==false): | |
17 | +?> | |
fa363e1f AM |
18 | $(document).ready(function() { |
19 | loadRemoteFeed( // Our top banner splash. | |
20 | '#splashbox0-contents', 'corebanner', 1, | |
21 | @@ -31,7 +34,9 @@ $this_year = '2014'; | |
22 | '#splashbox5-contents', 'corepromo', 3, | |
23 | '<ul>', processPromoItem, '</ul>' | |
24 | ); | |
25 | - | |
252c8c1b | 26 | +<?php |
fa363e1f | 27 | + endif; |
252c8c1b | 28 | +?> |
fa363e1f AM |
29 | getCoreStatus(); |
30 | }); | |
252c8c1b | 31 | |
fa363e1f | 32 | @@ -141,7 +141,7 @@ $this_year = '2014'; |
252c8c1b ER |
33 | |
34 | <div id="updateversioninfo"> | |
35 | <?php | |
fa363e1f AM |
36 | - $updateinfo = get_update_information(); |
37 | + //$updateinfo = get_update_information(); | |
38 | if (!$updateinfo['update_checks_enabled']) { | |
39 | ?> | |
40 | <div class="updatechecksdisabled"> |