require("includes/reference.inc");
// handle get vars
// _nav
// navigation
if (!isset($HTTP_GET_VARS["_nav"])) {
$_nav = "";
}
else
{
$_nav = $HTTP_GET_VARS["_nav"];
}
switch($_nav)
{
case "leitmotiv":
$defaultpage= $_nav;
$nav = "nonav";
break;
case "publikationen":
$defaultpage= $_nav;
$nav = $_nav;
break;
case "kontakt":
$defaultpage= $_nav;
$nav = "nonav";
break;
case "angebot":
$defaultpage= $_nav;
$nav = $_nav;
break;
case "person":
$defaultpage= $_nav;
$nav = "nonav";
break;
case "projekte":
$defaultpage= $_nav;
$nav = $_nav;
break;
default:
$defaultpage="splash";
$nav = "nonav";
$_nav = "splash";
break;
}
// _page
// pages
if (!isset($HTTP_GET_VARS["_page"])) {
$_page = "";
}
else
{
$_page = $HTTP_GET_VARS["_page"];
}
if (!is_readable("pages/".$_page.".php")) {
$page = $defaultpage;
}
else {
$page = $_page;
}
?>
in.fact - Wissen & Anwendung
|
| |
@include("pages/".$page.".php"); ?> |
| |
// map
switch($_nav)
{
case "angebot":
?>
break;
case "projekte":
?>
break;
case "publikationen":
?>
}
?>