summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios/files/patch-html__main.php
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-14 14:23:36 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-14 14:23:36 +0000
commit121dea5a9ccd255531d4994462c8dee6fa48ec94 (patch)
tree0c8a66e69356492d3cd3e1bfa308b3fa2605dc8e /net-mgmt/nagios/files/patch-html__main.php
parent- Convert to USES=tk (diff)
* Add a patch from upstream fixing a cgi vulnerability[1]
* Cleanup COMMENT * Rename patches to follow make makepatch naming * Incorporate a sed into already patched files. Poked by: ohauer [1] Security: CVE-2013-7108 CVE-2013-7205
Notes
Notes: svn path=/head/; revision=339689
Diffstat (limited to 'net-mgmt/nagios/files/patch-html__main.php')
-rw-r--r--net-mgmt/nagios/files/patch-html__main.php39
1 files changed, 39 insertions, 0 deletions
diff --git a/net-mgmt/nagios/files/patch-html__main.php b/net-mgmt/nagios/files/patch-html__main.php
new file mode 100644
index 000000000000..167c411d3fe6
--- /dev/null
+++ b/net-mgmt/nagios/files/patch-html__main.php
@@ -0,0 +1,39 @@
+--- ./html/main.php.orig 2013-08-30 19:46:14.000000000 +0200
++++ ./html/main.php 2014-01-14 13:57:06.000000000 +0100
+@@ -40,36 +40,10 @@
+ <div class="product">Nagios<sup><span style="font-size: small;">&reg;</span></sup> Core<sup><span style="font-size: small;">&trade;</span></sup></div>
+ <div class="version">Version 3.5.1</div>
+ <div class="releasedate">August 30, 2013</div>
+-<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.5.1&product=nagioscore" target="_blank">Check for updates</a></div>
+ <!--<div class="whatsnew"><a href="http://go.nagios.com/nagioscore/whatsnew">Read what's new in Nagios Core 3</a></div>-->
+ </div>
+
+
+-<div id="updateversioninfo">
+-<?php
+- $updateinfo=get_update_information();
+- //print_r($updateinfo);
+- //$updateinfo['update_checks_enabled']=false;
+- //$updateinfo['update_available']=true;
+- if($updateinfo['update_checks_enabled']==false){
+-?>
+- <div class="updatechecksdisabled">
+- <div class="warningmessage">Warning: Automatic Update Checks are Disabled!</div>
+- <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>
+- </div>
+-<?php
+- }
+- else if($updateinfo['update_available']==true && $this_version!=$updateinfo['update_version']){
+-?>
+- <div class="updateavailable">
+- <div class="updatemessage">A new version of Nagios Core is available!</div>
+- <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>
+- </div>
+-<?php
+- }
+-?>
+-</div>
+-
+
+
+ <div id="splashboxes">