load("main.tpl"); //Variablen ersetzten $tpl->assign( "UserInformation", $sysutil->GetUserInfobox($_SESSION['userId'],$mydbBaseSystem)); $tpl->assign( "MainMenue", $sysutil->GetMainMenue($_SESSION['authId'], $pageId,$mydbBaseSystem)); if ($sysutil->AccessAllowed($_SESSION['authId'],$pageId,$mydbBaseSystem)) { $tpl->assign( "Content", $sysutil->GetContent($pageId)); } else { $tpl->assign( "Content", $sysutil->GetContent(0)); } // Seite anzeigen $tpl->display(); $mydbBaseSystem->disconnect(); ?>