trace($g_intTree); $g_intMenu=0;if(isset($g_arrTrace[1]))$g_intMenu=$g_arrTrace[1]; $i=$tr->info($g_intTree); if($i[mod]=='')include("scripts/includes/_default.php"); elseif(ereg('.php$',$i[mod]))include("scripts/includes/$i[mod]"); elseif(ereg('.html$',$i[mod])) eval("function render_MOD(){\$tpl=new HTML_Template_Sigma(TEMPLATE_ROOT.'/$g_strLang');\$tpl->loadTemplateFile('$i[mod]');return(\$tpl->get());}"); else eval("function render_MOD(){return('eroare');}"); $tpl=new HTML_Template_Sigma(TEMPLATE_ROOT.'/'.$g_strLang); $tpl->loadTemplateFile('main.html'); $tpl->setGlobalVariable('PAGE_TITLE',SITE_TITLE); $tpl->setGlobalVariable('PAGE_META',render_PAGE_META()); $tpl->setGlobalVariable('PAGE_LANG',$g_strLang); $tpl->setGlobalVariable('PAGE_HOME',curURL("t=".DEFAULT_TREE_ID."&l=$g_strLang")); $tpl->setGlobalVariable('SITE_URL',SITE_URL); $tpl->setVariable('LANG_RO',curURL('l=ro')); $tpl->setVariable('LANG_EN',curURL('l=en')); $tpl->setVariable('PAGE_IMG',$i[img_page]); if($g_intMenu)$tpl->setVariable('PAGE_PATH',render_PAGE_PATH()); if($i[type]==1)$tpl->setVariable('PAGE_MINI_MENU',render_PAGE_MINI_MENU()); $tpl->setVariable('PAGE_CONTENT',render_MOD()); $tpl->show(); closeCN(); ?>