<?php
$go = @strtolower($go);
require_once("includes/main.inc.php");
$query=substr($HTTP_SERVER_VARS["QUERY_STRING"] ,strpos($HTTP_SERVER_VARS["QUERY_STRING"], "&"));
switch ($go) {
case "host" :
case "hosts" :
define("PAGE_ID","hosts");
define("PAGE_TITLE","Hosts");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/hosts.php");
break;
case "hostgroup" :
case "hostgroups" :
define("PAGE_ID","hostgroup");
define("PAGE_TITLE","Hostgroups");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/hostgroups.php");
break;
case "contact" :
case "contacts" :
define("PAGE_ID","contacts");
define("PAGE_TITLE","Contacts");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/contacts.php");
break;
case "contactgroup" :
case "contactgroups" :
define("PAGE_ID","contactgroups");
define("PAGE_TITLE","Contact Groups");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/contactgroups.php");
break;
case "service" :
case "services" :
define("PAGE_ID","services");
define("PAGE_TITLE","Services");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/services.php");
break;
case "serviceescalation" :
case "serviceescalations" :
define("PAGE_ID","serviceescalations");
define("PAGE_TITLE","Service Escalations");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/serviceescalations.php");
break;
case "timeperiod" :
case "timeperiods" :
define("PAGE_ID","timeperiods");
define("PAGE_TITLE","Time Periods");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/timeperiods.php");
break;
case "command" :
case "commands" :
define("PAGE_ID","commandedit");
define("PAGE_TITLE","Command object");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/commands.php");
break;
case "hostextinfo" :
define("PAGE_ID","hostextinfo");
define("PAGE_TITLE","Extended Host Info");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/hostextinfo.php");
break;
case "serviceextinfo" :
define("PAGE_ID","serviceextinfo");
define("PAGE_TITLE","Extended Service Info");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/serviceextinfo.php");
break;
case "controlpanel" :
include_once(NAWUI_ROOT."/controlpanel.php");
exit;
break;
default:
define("PAGE_ID","main");
define("PAGE_TITLE","Main");
include_once("html_wrap/head.inc.php");
include_once(NAWUI_ROOT."/main.php");
}
include_once("html_wrap/tail.inc.php");
?>