template->set_file("layout", "layout.html"); $menu->parseMenuSide(); if( isset($HTTP_GET_VARS['item']) ) $item = $HTTP_GET_VARS['item']; else $item = "home"; if( isset($HTTP_GET_VARS['download']) ) { $download = $HTTP_GET_VARS['download']; $platform = $HTTP_GET_VARS['platform']; $stats->addDownload($download, $platform); if( isset($HTTP_GET_VARS['site']) ) { if($HTTP_GET_VARS['site'] == "lex") { header("location:http://www.admiraal.dds.nl/lexinteractive.php?download=$download&platform=$platform"); printf("If the redirect does not work go here"); } } else header("location:$download"); printf("If the redirect does not work go here"); exit(); } $stats->addView($HTTP_GET_VARS{'item'}); if( $item == "digiport" ) { $globals->template->set_file("digiport", "digitalportfolio.html"); $globals->template->parse("CONTENT", "digiport"); } else if( $item == "contact" ) { $globals->template->set_file("contact", "email.html"); $globals->template->set_file("emailsend", "emailsend.html"); $email = new EMail($globals); if($email->page == "send") $globals->template->parse("CONTENT", "emailsend"); else $globals->template->parse("CONTENT", "contact"); } else if( $item == "app" ) { $globals->template->set_file("app", "app.html"); $globals->template->parse("CONTENT", "app"); } else if( $item == "amcdb" ) { $globals->template->set_file("amcdb", "amcdb.html"); $globals->template->parse("CONTENT", "amcdb"); } else if( $item == "domotica" ) { $globals->template->set_file("domotica", "domotica.html"); $globals->template->parse("CONTENT", "domotica"); } else if( $item == "bhpc" ) { $globals->template->set_file("bhpc", "bhpc.html"); $globals->template->parse("CONTENT", "bhpc"); } else if( $item == "mpd" ) { $globals->template->set_file("mpd", "mpd.html"); $globals->template->parse("CONTENT", "mpd"); } else if( $item == "links" ) { $globals->template->set_file("links", "links.html"); $globals->template->parse("CONTENT", "links"); } else { $globals->template->set_file("home", "home.html"); $globals->template->parse("CONTENT", "home"); } $globals->template->parse("OUT", "layout"); print $globals->template->get("OUT"); ?>