loadTemplatefile("main_header.tpl", true, true); $tpl->setCurrentBlock("main_header"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("main_header"); $tpl->setCurrentBlock("menue_login_selected"); $tpl->touchBlock("menue_login_selected"); $headerHTML = $tpl->get(); $tpl->loadTemplatefile("menue_login.tpl", true, true); $tpl->setCurrentBlock("menue_login"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("menue_login"); $menueHTML = $tpl->get(); $tpl->loadTemplatefile("content_index.tpl", true, true); $tpl->setCurrentBlock("content_index"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->parseCurrentBlock("content_index"); $contentHTML = $tpl->get(); $tpl->loadTemplatefile("main_footer.tpl", true, true); $tpl->setCurrentBlock("main_footer"); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("main_footer"); $footerHTML = $tpl->get(); $tpl->loadTemplatefile("main_site.tpl", true, true); $tpl->setCurrentBlock("main_site"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable('HEADER', $headerHTML); $tpl->setVariable('FOOTER', $footerHTML); //Pagina zelf ob_start(); require_once 'front.php'; $contentHTML = ob_get_contents(); ob_end_clean(); $tpl->setVariable('CONTENT', $contentHTML); //Menu if(isset($_SESSION['loggedIn'])) { ob_start(); require_once 'menu.php'; $menueHTML = ob_get_contents(); ob_end_clean(); } $tpl->setVariable('MENUE', $menueHTML); $tpl->show(); exit; ?>