From bcad40a05ab2dc2a341a3227e30b96668bce4500 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 9 Jun 2005 16:34:40 +0000 Subject: New Import --- lib/rss.php | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 lib/rss.php (limited to 'lib/rss.php') diff --git a/lib/rss.php b/lib/rss.php new file mode 100644 index 00000000..efb6cba9 --- /dev/null +++ b/lib/rss.php @@ -0,0 +1,64 @@ +"; + echo "\n$rss_main_title\n"; + echo "$web_path\n$rss_main_description\n"; + echo "$rss_main_copyright"; + echo "$today\n$rss_main_language\n"; + + while ($r = mysql_fetch_object($db_result)) { + $song = new Song($r->song_id); + $song->format_song(); + $user = get_user_byid($r->user_id); + if (is_object($song)) { + $artist = $song->f_artist; + $album = $song->get_album_name(); + $text = "$artist - $song->f_title"; + echo " "; + echo " <![CDATA[$text]]> "; + echo " $web_path/albums.php?action=show&album=$song->album"; + echo " $rss_song_description"; + echo " $today"; + echo ""; + } + } + + echo "\n"; +} // show_now_playingRSS +?> -- cgit