Location: PHPKode > projects > NaWui > nawui/main.php
<?php


# Disallow run of this script.
if (basename($_SERVER['PHP_SELF']) == "hosts.php") 	{
	print("Direct execution of this script is not allowed.");
	exit;
}


# Includes
require_once("includes/drawlib.inc.php");


# Definitions
define("PAGE_INFO", 'Query made at '.date("H:i:s - d M Y"));

?>
<p>&nbsp;</p>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">
<table class="infoBox" border="1" cellspacing="0" cellpadding="0">
<tr><td class="infoBox">
<div class="infoBoxTitle">Current Nawui Information</div><br>
Database Last Updated: <?=$Plugin->DatabaseModifiedTime();?><br>

<br>
Logged in as <i><?=$HTTP_SERVER_VARS["PHP_AUTH_USER"]?></i><br>
Debug is 
<? 
if (DEBUG == "1")
	echo "<font color=\"#ff0000\"><b>On</b></font>";
   else 
   	echo "<font color=\"#00aa00\"><b>Off</b></font>";
?>
<br>
Current Plugin type: <?=$Plugin->database["type"] ?>
<!-- <div CLASS='infoBoxBadProcStatus'>- Notifications are disabled</div></td></tr> -->
</table>
</td>
<td align="right" valign="top">
<table border="1" class="filter" cellspacing="2" cellpadding="1" width="450">
<tr>
<td class="filterTitle">
Welcome to NaWui!
</td>
</tr>
<tr>
<td class="filterName">
NaWui is a configuration tool for Nagios(tm) and it stands for NAgios Web Users Interface.<br>
Basically it's a web frontend to Nagios databases, it is written to be as flexible and powerfull as possible.
The storage of data depends on the choosen 'plugin', it can be imported/exported from/to Nagios 
files and stored elsewhere (SQL, plain-text, serliazed) or it can manage nagios own structured file format.
</td>
</tr>
<tr>
<td class="filterName">
Project development home page is hosted on Sourceforge:
<br>
<a href="http://sourceforge.net/projects/nawui" target="_blank">http://sourceforge.net/projects/nawui</a><br>
<a href="http://nawui.sourceforge.net" target="_blank">http://nawui.sourceforge.net (screenshots!)</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>

<div align="center">
<table border="1" class="hostTotals">
<tr>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=hosts">Hosts</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=hostgroups">Hostgroups</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=contacts">Contacts</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=contactgroups">Contactgroups</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=services">Services</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=serviceescalations">Service Escalations</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=timeperiods">Timeperiods</a></th>
<th class="hostTotals"><a class="hostTotals" href="go.php?go=commands">Commands</a></th>
</tr>
<tr>
<td class="hostTotals"><?=count($Plugin->GetObjects("host")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("hostgroup")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("contact")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("contactgroup")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("service")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("serviceescalation")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("timeperiod")) ?></td>
<td class="hostTotals"><?=count($Plugin->GetObjects("command")) ?></td>
</tr>
</table>
</div>

<p>&nbsp;</p>
<p>&nbsp;</p>

<hr>
<? 
if (DEBUG == "1")	{
	PrintArray($HTTP_SERVER_VARS);
	echo "<hr>\n\r";
}
?>

<font class="copyright">
<a href="http://nawui.sourceforge.net" target="_blank">Nawui</a> v<?=VERSION?>, Copyright (c) 2003 Hvm<br>
<a href="http://nawui.sourceforge.net" target="_blank">Nawui</a> comes with ABSOLUTELY NO WARRANTY!<br>
This software's license is under the <a class="copyright" href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU General Public License</a>.<br>
<a class="copyright" href="http://www.nagios.org" target="_blank">Nagios</a> and the Nagios logo are trademarks of Ethan Galstad<br>
</font>
Return current item: NaWui