connect(DB_NAME, DB_HOST, DB_USER, DB_PASS); ////////////////////////// //if(!validateSid($_GET["PHPSESSID"]) ) { //session is not ok // HEADER("Location: /index.php?lang=".$lang); //} $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_hosting_selected"); $tpl->touchBlock("menue_hosting_selected"); $headerHTML = $tpl->get(); $tpl->loadTemplatefile("menue_hosting.tpl", true, true); $tpl->setCurrentBlock("menue_hosting"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->touchBlock("menue_hosting"); $menueHTML = $tpl->get(); $tpl->loadTemplatefile("content_hosting_phone.tpl", true, true); /* $tpl->setCurrentBlock("navigation_path"); $tpl->touchBlock("navigation_path"); # $tpl->parseCurrentBlock(); $navigation_pathHTML = $tpl->get(); # echo "_".$navigation_pathHTML; $tpl->loadTemplatefile("content_partnertool_settings.tpl", true, true); */ $tpl->setCurrentBlock("content_hosting_phone"); $tpl->setVariable("SID", session_name()."=".$_GET["PHPSESSID"]); $tpl->setVariable("LANG", $lang); $tpl->parseCurrentBlock("content_hosting_phone"); $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); $tpl->setVariable(MENUE, $menueHTML); $tpl->setVariable(CONTENT, $contentHTML); $tpl->show(); exit; ?>