]> git.pld-linux.org Git - packages/nagios.git/blob - do-not-fetch-rss.patch
87927452956913a1e3683d03ece025dfc96beffa
[packages/nagios.git] / do-not-fetch-rss.patch
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
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; ?>" />
11  <script type="text/javascript" src="/js/jquery/jquery.js"></script>
12 -
13  <script type='text/javascript'>
14 +<?php
15 +       $updateinfo=get_update_information();
16 +       if ($updateinfo['update_checks_enabled']!==false):
17 +?>
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 -
26 +<?php
27 +               endif;
28 +?>
29                 getCoreStatus();
30         });
31  
32 @@ -141,7 +141,7 @@ $this_year = '2014';
33  
34  <div id="updateversioninfo">
35  <?php
36 -       $updateinfo = get_update_information();
37 +       //$updateinfo = get_update_information();
38         if (!$updateinfo['update_checks_enabled']) {
39  ?>
40                 <div class="updatechecksdisabled">
This page took 0.04993 seconds and 2 git commands to generate.