\n"; echo "\n"; echo "\n"; echo "\n"; echo "".SITE_NAME." - $pais\n"; echo "".$url."\n"; echo "".$langsm['1013']."\n"; echo "".$langsm['1014']."\n"; echo "".$tm."\n"; echo "".$langsm['1015']." ".SITE_NAME_SHORT."\n"; echo "info@".SITE_NAME_LOWER."\n"; echo "\n"; echo "".$url."images/".SITE_IMG_CODE."_logorss.png\n"; echo "".SITE_NAME."\n"; echo "".$url."\n"; echo ""; $query = " SELECT * FROM anuncios WHERE zona='$zona' AND estado=1 AND borrado=0 $querytipo $queryprovincia ORDER by Id DESC LIMIT 0 , 20"; $result = @ mysql_query($query, $link); $res1 = mysql_num_rows($result); if ($res1 != 0) { while($row = mysql_fetch_array($result)) { //tipo_anuncio_texto($row[tipo], $tipotexto); $tipotexto=$langsm_tipoanuncio[$langsm['lang']][$row[tipo]]; echo "\n"; echo " \n"; $row[titulo] = strtolower($row[titulo]); $row[titulo]=html_entity_decode($row[titulo], ENT_QUOTES, 'ISO8859-15'); echo " ".$row[titulo]."\n"; $desc = preg_replace("/\[(.*?)\]/i", "", $row[texto]); $desc = substr($desc,0,150); $desc = str_replace('<','<',$desc); $desc = str_replace("\n",'',$desc); $desc = str_replace("\r",'',$desc); $desc .= ' ... '; $desc=html_entity_decode($desc, ENT_QUOTES, 'ISO8859-15'); echo " \n"; //tipo_anuncio_texto1($row[tipo], $tiposhort); $tiposhort=$langsm_tipoanuncio1[$langsm['lang']][$row[tipo]]; // $urlanuncio = ( $tiposhort . ' '. $row[titulo] ); $urlanuncio = ( $row[titulo] ); cambiaUrlAnuncios($row[Id], $urlanuncio); echo " ".$url."".$urlanuncio."\n"; echo "".$row[tm]."\n"; echo "".$tipotexto."\n"; echo " \n"; } } else { echo "\n"; echo " \n"; echo " ".$langsm['339']."\n"; echo " \n"; echo " ".$url."tablon-anuncios.php?pa=1\n"; echo "".$tm."\n"; echo "".$langsm['339']."\n"; echo " \n"; } echo "\n"; echo "\n"; ?>