\n"; echo "\n"; $tpl = new HTML_Template_IT("templates/$lang"); //LANG!!! $db = new DB_Sql(); $db->connect(DB_NAME, DB_HOST, DB_USER, DB_PASS); ////////////////////////// $tpl->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_index_selected"); $tpl->touchBlock("menue_index_selected"); $headerHTML = $tpl->get(); $tpl->loadTemplatefile("content_start.tpl", true, true); $tpl->setCurrentBlock("content_start"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("content_start"); $contentHTML = $tpl->get(); $tpl->loadTemplatefile("menue_index.tpl", true, true); $tpl->setCurrentBlock("menue_index"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("menue_index"); $menueHTML = $tpl->get(); $tpl->loadTemplatefile("main_footer.tpl", true, true); $tpl->setCurrentBlock("main_footer"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("main_footer"); $footerHTML = $tpl->get(); $tpl->loadTemplatefile("main_site.tpl", true, true); $tpl->setCurrentBlock("main_site"); $tpl->setVariable(HEADER, $headerHTML); $tpl->setVariable(FOOTER, $footerHTML); $tpl->setVariable(MENUE, $menueHTML); $tpl->setVariable(CONTENT, $contentHTML); $tpl->show(); exit; ?>