dbConnect()==FALSE){ echo "Datenbank konnte nicht ge?ffnet werden!"; } if (isset($_POST['RegisteredUserName'])) {$CustomerUsername = $_POST['RegisteredUserName'];}else{$CustomerUsername="";} if (isset($_POST['RegisteredUserPassword'])) {$CustomerPassword = $_POST['RegisteredUserPassword'];$Customer->CheckLoginData($CustomerUsername,$CustomerPassword);}else{$CustomerPassword="";} if (isset($_GET['op'])) {$op = $_GET['op'];}else {$op="start";} if (isset($_GET['sub'])) {$sub = $_GET['sub'];}else {$sub="";} if($op=="logout"){$Customer->logout(); $op="start";} $Customer->IsLogedin(); require_once('header.php'); //echo $op; if(!file_exists("content/"."$op".".php")){ $TplLoad="content/"."sorry".".php"; // $log->log("$op $TplLoad nicht vorhanden", "1000"); }else{ $TplLoad="content/"."$op".".php"; //$log->log("$op wurde aufgerufen", "0"); } require_once("$TplLoad"); require_once('footer.php'); ?>