setzte Session Variablen if ($pass1=="habsburg" OR $pass1=="HABSBURG") { $bfsession->setvar("user1","habsburg"); $bfsession->setvar("successful_login","login_successful"); header ("Location: index.php"); //standard aufruf } //Wenn Passwort Correct -> setzte Session Variablen if ($pass1=="Halbturn") { $bfsession->setvar("user1","halbturn"); $bfsession->setvar("successful_login","login_successful"); header ("Location: index.php"); //standard aufruf } //Wenn Passwort Correct -> setzte Session Variablen if ($pass1=="CundL") { $bfsession->setvar("user1","CundL"); $bfsession->setvar("successful_login","login_successful"); header ("Location: index.php"); //standard aufruf } //Wenn nach erfolgreicher Passwort Eingabe -> Session Variable mus gesetzt sein if($bfsession->getvar("user1") == "habsburg" AND $bfsession->getvar("successful_login") == "login_successful") { $content = "habsburg"; } elseif($bfsession->getvar("user1") == "halbturn" AND $bfsession->getvar("successful_login") == "login_successful") { $content = "sophia-lukas"; } elseif($bfsession->getvar("user1") == "CundL" AND $bfsession->getvar("successful_login") == "login_successful") { $content = "leopold-charlotte"; } elseif($_GET['list']=="habsburg") { $content = "login"; } elseif($_GET['list']=="klemens-elisabeth") { $content = "klemens-elisabeth"; } elseif($_GET['list']=="sophia-lukas") { $content = "login"; } elseif($_GET['list']=="leopold-charlotte") { $content = "login"; } else { $content = "cluster"; } //include Inhalt include("./content/".$content.".php"); ?>