isOnline(); $smarty->assign("Registrato",$loggato); #testi... if(isset($_GET['tipo']) and is_numeric($_GET['tipo'])) $tipo=$_GET['tipo']; else $tipo=1; switch($tipo){ //download case 1: $txt=56; break; //area riservata case 2: $txt=57; break; //copy case 3: $txt=61; break; //def default: $txt=1; break; } $smarty->assign("Testi",Vari::getTestiSingoli($db,$txt)); $tmp_exp=Vari::getGiorniExp(); $smarty->assign("expAnni",$tmp_exp[0]); $smarty->assign("expGiorni",$tmp_exp[1]); #lastnews... $elenco_totale=Vari::elencoNews($db,2,1,0,$lng->getLng()); foreach ($elenco_totale as $k => $v) foreach ($v as $kf => $vf) if($kf==2 or $kf==3) $elenco_totale[$k][$kf]=convertiData($vf); $smarty->assign("News",$elenco_totale); #titolo e testo della pagina $smarty->assign("Titolo"," "); #mando in output il template $smarty->display('vari.tpl'); #chiudo db $db->Close(); ?>