array("root"=>$siteRoot."include/home.php"), "Vorwort"=>array("root"=>$siteRoot."include/vorwort.php"), "Eigenschaften"=>array("root"=>$siteRoot."include/eigenschaften.php"), "Aufgaben"=>array("root"=>$siteRoot."include/aufgaben.php"), "Anmeldung Schlosslauf"=>array("root"=>$siteRoot."include/schlosslauf.php"), "Logout"=>array("root"=>$siteRoot."action/logout.php") ); $url = ""; if(isset($_GET["inhalt_mitte"])){ $aktuell = $_GET["inhalt_mitte"]; $url = $siteRoot.$aktuell; } foreach($menuStruct as $key=>$value) { if($url == $value['root']) { echo "$key\n"; } else { echo "$key\n"; } } } else { header("Location: ../index.php"); } ?>