Merge branch 'master' of mathias-kettner.de:omd
[omd.git] / packages / nagios / patches / 0004-remove-updateversioninfo.dif
blobf3c73167fa0e0d8f69dd51ac39bddc3f432f810d
1 --- nagios.a/html/main.php      2013-03-24 13:53:29.000000000 +0100
2 +++ nagios.b/html/main.php      2013-03-24 13:55:49.000000000 +0100
3 @@ -40,38 +40,10 @@
4  <div class="product">Nagios<sup><span style="font-size: small;">&reg;</span></sup> Core<sup><span style="font-size: small;">&trade;</span></sup></div>
5  <div class="version">Version 3.5.0</div>
6  <div class="releasedate">March 15, 2013</div>
7 -<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.5.0&product=nagioscore" target="_blank">Check for updates</a></div>
8  <!--<div class="whatsnew"><a href="http://go.nagios.com/nagioscore/whatsnew">Read what's new in Nagios Core 3</a></div>-->
9  </div>
12 -<div id="updateversioninfo">
13 -<?php
14 -       $updateinfo=get_update_information();
15 -       //print_r($updateinfo);
16 -       //$updateinfo['update_checks_enabled']=false;
17 -       //$updateinfo['update_available']=true;
18 -       if($updateinfo['update_checks_enabled']==false){
19 -?>
20 -               <div class="updatechecksdisabled">
21 -               <div class="warningmessage">Warning: Automatic Update Checks are Disabled!</div>
22 -               <div class="submessage">Disabling update checks presents a possible security risk.  Visit <a href="http://www.nagios.org/" target="_blank">nagios.org</a> to check for updates manually or enable update checks in your Nagios config file.</a></div>
23 -               </div>
24 -<?php
25 -               }
26 -       else if($updateinfo['update_available']==true && $this_version!=$updateinfo['update_version']){
27 -?>
28 -               <div class="updateavailable">
29 -               <div class="updatemessage">A new version of Nagios Core is available!</div>
30 -               <div class="submessage">Visit <a href="http://www.nagios.org/download/" target="_blank">nagios.org</a> to download Nagios <?php echo $updateinfo['update_version'];?>.</div>
31 -               </div>
32 -<?php
33 -               }
34 -?>
35 -</div>
39  <div id="splashboxes">
40         <div id='topsplashbox'>
41                 <div id="splashbox1" class="splashbox">