Viewing file: rss.php (1.95 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $conn=mysql_connect("localhost","placasci_pba","pba"); mysql_select_db("placasci_papyre",$conn);
echo '<?xml version="1.0" encoding="utf-8"?> <!-- generator=creado a puro huevo by gaby" --> <rss version="2.0"> <channel> <title>papyre.co.cc</title> <description>libros en fb2 para papyre</description> <link>http://papyre.co.cc</link> <lastBuildDate>Tue, 20 Jan 2009 09:07:27 +0100</lastBuildDate> <generator>FeedCreator 1.7.2</generator> <image> <url>http://placasci.exofire.net/frames/papyreicon.gif</url> <title>papyre.co.cc</title> <link>http://papyre.co.cc</link> <description>feeds de papyre.co.cc</description> </image>';
ECHO $feed=elimina_acentos(" <item> <title>AVISO: </title> <link>http://feeds2.feedburner.com/exofire/NeUY</link> <description><![CDATA[ Hemos cambiado la direccion del agregador de feeds/RSS. <p>La nueva direcion es <p> <a href='http://feeds2.feedburner.com/exofire/NeUY'>http://feeds2.feedburner.com/exofire/NeUY</a> <p>Gracias por tu comprension ]]></description> <category>Ultimos libros en FB2</category> <pubDate>{$row['fecha_subida']}</pubDate> </item>"); // <pubDate>Sat, 03 Jan 2009 11:40:46 +0100</pubDate> // fin echo "</channel> </rss>"; mysql_close($conn); function elimina_acentos($cadena){ $tofind = "���������������������������������������������������������"; $replac = " nnAAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn"; return(strtr($cadena,$tofind,$replac)); } ?>
|