]> git.pld-linux.org Git - packages/nagios.git/blob - do-not-fetch-rss.patch
- up to 4.3.3
[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 @@ -22,6 +22,10 @@ $this_year = '2017';
9         var vBoxId = "main";
10         var vboxText = "<a href=https://www.nagios.com/tours target=_blank> " +
11                                         "Click here to watch the entire Nagios Core 4 Tour!</a>";
12 +<?php
13 +       $updateinfo=get_update_information();
14 +       if ($updateinfo['update_checks_enabled']!==false):
15 +?>
16         $(document).ready(function() {
17                 var user = "<?php echo $_SERVER['REMOTE_USER']; ?>";
18  
19 @@ -31,7 +34,9 @@ $this_year = '2014';
20                         '#splashbox5-contents', 'corepromo', 3,
21                         '<ul>', processPromoItem, '</ul>'
22                 );
23 -
24 +<?php
25 +               endif;
26 +?>
27                 getCoreStatus();
28         });
29  
30 @@ -141,7 +141,7 @@ $this_year = '2014';
31  
32  <div id="updateversioninfo">
33  <?php
34 -       $updateinfo = get_update_information();
35 +       //$updateinfo = get_update_information();
36         if (!$updateinfo['update_checks_enabled']) {
37  ?>
38                 <div class="updatechecksdisabled">
This page took 0.070229 seconds and 3 git commands to generate.