<?
#require_once("includes/main.inc.php");
# If there is no NAWUI_ADMIN it means we just started a fresh installation,
# so we will allow the first user to access only the control panel to define
# configurations, after he defines an 'authorized_for_system_commands' NAGIOS user
#in CGI.conf, we start to allow only that defined user.
#if ( !is_array($Plugin->GetConfig("nawuicfg")) ) {
# require_once("setup.php");
#} else {
if (!file_exists("includes/config.inc"))
require_once("setup.php");
else {
?>
<html>
<head>
<title>NaWui: Nagios Administration WUI</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="58,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="nawui_top" src="top.php">
<frame name="nawui_main" scrolling="auto" noresize src="go.php?go=Main">
</frameset>
<noframes><body bgcolor="#FFFFFF">
</body></noframes>
</html>
<?
}
?>