assign("counter", "2");} else {$tpl->assign("counter", "1");} $_SESSION["counter"]++; $tpl->config_dir = '_conf'; $tpl->template_dir = '_tpl/'; $tpl->compile_dir = '_tpl_c/'; //$tpl->debugging = true; switch ($param) { case "kontakt": $str=new kontakt; $str->param = $param; $str->tpl =& $tpl; $str->db =& $db; $str->pokaz(); break; default: $str=new main; $str->unit = $unit; $str->param = $param; $str->tpl =& $tpl; $str->db =& $db; $str->glowna(); break; } ?>