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_contact_selected"); $tpl->touchBlock("menue_contact_selected"); $headerHTML = $tpl->get(); $tpl->loadTemplatefile("menue_contact.tpl", true, true); $tpl->setCurrentBlock("menue_contact"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("menue_contact"); $menueHTML = $tpl->get(); $tpl->loadTemplatefile("content_contact.tpl", true, true); $tpl->setCurrentBlock("content_contact"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("content_contact"); $contentHTML = $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; ?>