34 lines
1.5 KiB
PHP
34 lines
1.5 KiB
PHP
--- html/main.php.orig 2019-08-20 15:29:34 UTC
|
|
+++ html/main.php
|
|
@@ -146,31 +146,6 @@ $this_year = '2019';
|
|
<div class="product">Nagios<sup><span style="font-size: small;">®</span></sup> Core<sup><span style="font-size: small;">™</span></sup></div>
|
|
<div class="version">Version <?php echo $this_version; ?></div>
|
|
<div class="releasedate">April 28, 2020</div>
|
|
- <div class="checkforupdates"><a href="https://www.nagios.org/checkforupdates/?version=<?php echo $this_version; ?>&product=nagioscore" target="_blank">Check for updates</a></div>
|
|
-</div>
|
|
-
|
|
-
|
|
-<div id="updateversioninfo">
|
|
-<?php
|
|
- $updateinfo = get_update_information();
|
|
- if (!$updateinfo['update_checks_enabled']) {
|
|
-?>
|
|
- <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="https://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'] && $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="https://www.nagios.org/download/" target="_blank">nagios.org</a> to download Nagios <?php echo $updateinfo['update_version'];?>.</div>
|
|
- </div>
|
|
-<?php
|
|
- }
|
|
-?>
|
|
</div>
|
|
|
|
|