]> git.pld-linux.org Git - packages/nagios.git/blame - do-not-fetch-rss.patch
fix The Alias directive probably never match issue
[packages/nagios.git] / do-not-fetch-rss.patch
CommitLineData
252c8c1b
ER
1do not fetch rss automatically, respect some privacy!
2
3use update_checks_enabled option to tune the default (altho new option would be
4more 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@@ -15,12 +15,19 @@
9 <script type="text/javascript" src="/js/jquery/jquery.js"></script>
10
11 <script type='text/javascript'>
12+<?php
13+ $updateinfo=get_update_information();
14+ if ($updateinfo['update_checks_enabled']!==false):
15+?>
16
17 //rss fetch by ajax to reduce page load time
18 $(document).ready(function() {
19 $('#splashbox2-contents').load('rss-corefeed.php');
20 $('#splashbox4-contents').load('rss-newsfeed.php');
21 });
22+<?php
23+ endif;
24+?>
25
26 </script>
27
28@@ -47,7 +54,7 @@
29
30 <div id="updateversioninfo">
31 <?php
32- $updateinfo=get_update_information();
33+ //$updateinfo=get_update_information();
34 //print_r($updateinfo);
35 //$updateinfo['update_checks_enabled']=false;
36 //$updateinfo['update_available']=true;
This page took 0.36427 seconds and 4 git commands to generate.