From 5fd9fa480f302902328b81f912dd67ce378284f8 Mon Sep 17 00:00:00 2001 From: citizenz7 Date: Thu, 20 Apr 2017 18:50:55 +0200 Subject: V.1.4.6 --- Html/rss.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Html/rss.php (limited to 'Html/rss.php') diff --git a/Html/rss.php b/Html/rss.php new file mode 100644 index 0000000..2a002ec --- /dev/null +++ b/Html/rss.php @@ -0,0 +1,55 @@ +'; + +require_once("includes/config.php"); + +//Titre de la page +$pagetitle = 'Flux RSS'; + +//Stats : bbclone +define("_BBC_PAGE_NAME", $pagetitle); +define("_BBCLONE_DIR", "bbclone/"); +define("COUNTER", _BBCLONE_DIR."mark_page.php"); +if (is_readable(COUNTER)) include_once(COUNTER); +?> + + + + + + <?php echo SITEURL; ?> + fr + + + + + + + query("SELECT * FROM blog_posts_seo,xbt_files WHERE blog_posts_seo.postID = xbt_files.fid ORDER BY postDate DESC LIMIT 10"); + while($data = $stmt->fetch()) { + $id=html($data['postID']); + $filename = preg_replace(array('//', '/"/'), array('<', '>', '"'), $data['postTitle']); + $seeders = strip_tags($data['seeders']); + $leechers = strip_tags($data['leechers']); + $desc = nl2br(bbcode($data['postDesc'])); + $torrent = html($data['postTorrent']); + $f= rawurlencode(html($data['postTitle'])); + $taille = strip_tags($data['postTaille']); + + // on affiche dans le navigateur + echo "\n"; + echo "<![CDATA[$filename [seeders ($seeders)/leechers ($leechers)]]]>\n"; + echo "".SITEURL."/".$data['postSlug']."\n"; + echo "".SITEURL."/".$data['postSlug']."\n"; + echo "\n"; + echo ""; + echo "".$data["postDate"]." GMT\n"; + echo "\n"; + } + ?> + + -- cgit v1.2.1