"; while($rs = mysql_fetch_array($query)) { if($k==0) { $links .= ""; $k++; } elseif($k*3==$i) { $links .= ""; $k++; } $links .= "\"$rs[nome]\"
"; $links .= "
".stripslashes($rs[nome])."
"; $i++; if($i == $lim) { $links .= ""; } } $links .= ""; $dasost = array("-BRICIOLA-","-LINKS-","-DESC-"); $sost = array("",$links,stripslashes($info[0])); echo str_replace($dasost,$sost,headerf('network',tpl('tpl/header.tpl'),$db).tpl('tpl/partners.tpl')); } else { $query = mysql_query("SELECT * FROM links WHERE id=".$_GET['id'],$db); $rs = mysql_fetch_array($query); $res = "
".stripslashes($rs[pretext])."
"; $res .= "\"$rs[nome]\"

"; $res .= stripslashes($rs[descrizione])."
"; $briciola = 'Network > '.$rs[nome].''; $dasost = array("-BRICIOLA-","-LINKS-","-DESC-"); $sost = array(stripslashes($briciola),$res,stripslashes($info[0])); echo str_replace($dasost,$sost,headerf('network',tpl('tpl/header.tpl'),$db).tpl('tpl/partners.tpl')); }