<?php
include_once(dirname(__FILE__).'/includes/utils.inc.php');

$this_version="3.3.1";

	// RSS reader
	define('MAGPIE_DIR', './includes/rss/');
	define('MAGPIE_CACHE_ON', 0);
	define('MAGPIE_CACHE_AGE', 0);
	define('MAGPIE_CACHE_DIR', '/tmp/magpie_cache');
	require_once(MAGPIE_DIR.'rss_fetch.inc');

?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<TITLE>Nagios Core</TITLE>
<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/common.css'>
</HEAD>

<BODY id="splashpage">


<div id="mainbrandsplash">
<div id="mainlogo">
<a href="http://www.nagios.org/" target="_blank"><img src="images/logofullsize.png" border="0" alt="Nagios" title="Nagios"></a>
</div>
</div>

<div id="currentversioninfo">
<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.3.1</div>
<div class="releasedate">July 25, 2011</div>
<div class="checkforupdates"><a href="http://www.nagios.org/checkforupdates/?version=3.3.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 && $this_version!=$updateinfo['update_version']){
?>
		<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){
?>
		<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">
<div id="splashbox1" class="splashbox">
<h2>Get Started</h2>
<ul>
<li><a href="http://go.nagios.com/nagioscore/startmonitoring" target="_blank">Start monitoring your infrastructure</a></li>
<li><a href="http://go.nagios.com/nagioscore/changelook" target="_blank">Change the look and feel of Nagios</a></li>
<li><a href="http://go.nagios.com/nagioscore/extend" target="_blank">Extend Nagios with hundreds of addons</a></li>
<!--<li><a href="http://go.nagios.com/nagioscore/docs" target="_blank">Read the Nagios documentation</a></li>-->
<li><a href="http://go.nagios.com/nagioscore/support" target="_blank">Get support</a></li>
<li><a href="http://go.nagios.com/nagioscore/training" target="_blank">Get training</a></li>
<li><a href="http://go.nagios.com/nagioscore/certification" target="_blank">Get certified</a></li>
</ul>
</div>

<div id="splashbox3" class="splashbox">
<h2>Don't Miss...</h2>
<ul>
<?php
	$url="http://www.nagios.org/backend/feeds/corepromo";
	$rss=fetch_rss($url);
	$x=0;
	foreach ($rss->items as $item){
		$x++;
		if($x>3)
			break;
		$href = $item['link'];
		$title = $item['title'];	
		$desc = $item['description'];
		//echo "<li><a href='$href' target='_blank'>$title</a></li>";
		echo "<li>$desc</li>";
		}
?>
</ul>
</div>


<div id="splashbox4" class="splashbox">
<h2>Quick Links</h2>
<ul>
<li><a href="http://library.nagios.com" target="_blank">Nagios Library</a> (tutorials and docs)</li>
<li><a href="http://labs.nagios.com" target="_blank">Nagios Labs</a> (development blog)</li>
<li><a href="http://exchange.nagios.org" target="_blank">Nagios Exchange</a> (plugins and addons)</li>
<!--
<li><a href="http://support.nagios.com" target="_blank">Nagios Support</a> (tech support)</li>
<li><a href="http://www.nagios.com" target="_blank">Nagios.com</a> (company)</li>
<li><a href="http://www.nagios.org" target="_blank">Nagios.org</a> (project)</li>
//-->
</ul>
</div>

<div id="splashbox2" class="splashbox">
<h2>Latest News</h2>
<ul>
<?php
	$url="http://www.nagios.org/backend/feeds/frontpage/";
	$rss=fetch_rss($url);
	$x=0;
	foreach ($rss->items as $item){
		$x++;
		if($x>3)
			break;
		$href = $item['link'];
		$title = $item['title'];	
		echo "<li><a href='$href' target='_blank'>$title</a></li>";
		}
?>
<li><a href="http://www.nagios.org/news" target="_blank">More news...</a></li>
</ul>
</div>

</div><!--splashboxes-->


<div id="mainfooter">
<div id="maincopy">Copyright &copy; 2010-<?php echo date("Y");?> Nagios Core Development Team and Community Contributors. Copyright &copy; 1999-2009 Ethan Galstad. See the THANKS file for more information on contributors.</div>
<div CLASS="disclaimer">
Nagios Core is licensed under the GNU General Public License and is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.  Nagios, Nagios Core and the Nagios logo are trademarks, servicemarks, registered trademarks or registered servicemarks owned by Nagios Enterprises, LLC.  Use of the Nagios marks is governed by the <A href="http://www.nagios.com/legal/trademarks/">trademark use restrictions</a>.
</div>
<div class="logos">
<!--<a href="http://www.nagios.com/" target="_blank"><img src="images/NagiosEnterprises-whitebg-112x46.png" width="112" height="46" border="0" style="padding: 0 20px 0 0;" title="Nagios Enterprises"></a>  -->

<a href="http://www.nagios.org/" target="_blank"><img src="images/weblogo1.png" width="102" height="47" border="0" style="padding: 0 40px 0 40px;" title="Nagios.org"></a>

<a href="http://sourceforge.net/projects/nagios"><img src="images/sflogo.png" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
</div>
</div> 


</BODY>
</HTML>

