\"$infoc[1]\"\n

\n
$infoc[2]
\n"; if($_GET['articolo']) { $infoa = mysql_fetch_array(mysqlec(mysql_query("SELECT * FROM post WHERE UPPER(plink)=UPPER('".$articolo."')",$db),$db)); $rs = mysql_fetch_array(mysqlec(mysql_query("SELECT nome FROM categorie WHERE id=$infoa[idcat]",$db),$db)); $briciola = ''.$rs[0].' > '.stripslashes($infoa['titolo']); // \"$infoa[titolo]\" tolto da qua sotto $text = "

".stripslashes($infoa[titolo])."


".stripslashes($infoa[testo]); if($infoa['video']!="") { $text .= "
".stripslashes($infoa[video])."
"; } $dasost = array("BRICIOLA","TEXT","URL","DESC-","MENU","CLASSP","CLASSA"); $sost = array($briciola,$text,$url,stripslashes($desc),makemenu($db),"menu","sele"); $html = headerf('progetti',tpl('tpl/header.tpl'),$db); echo str_replace($dasost,$sost,$html.tpl('tpl/articolo.tpl')); } else { $query = mysql_query("SELECT * FROM post WHERE idcat=$infoc[0] ORDER BY ordine ASC",$db); if(mysql_num_rows($query) == 0) { $lastxt = "No news"; $i = 1; } else { $i = 0; while ($rs = mysql_fetch_array($query)) { $rs['testo'] = substr(strip_tags($rs['testo']),0,250); $lastxt .= "
"; $lastxt .="\"$rs[titolo]\""; $lastxt .= "
".stripslashes($rs[titolo])."
".stripslashes($rs[testo])."
\"Approfondisci\"
"; } } $dasost = array("PROG0","-ROW","DESC-"); $sost = array($lastxt,$i,stripslashes($desc)); $html = headerf('progetti',tpl('tpl/header.tpl'),$db); $html = $html.tpl('tpl/progarch.tpl'); echo str_replace($dasost,$sost,$html); }