$pic_data = get_pic_data($album, $count, $album_name, 0, $XFDSET['xfd_feed_items'], false); } else { get_meta_album_set(0); $query = "SELECT pid,aid,filepath,filename,url_prefix,pwidth,pheight,filesize,ctime,title,keywords,votes,pic_rating,hits,caption,owner_id,u.user_name FROM {$CONFIG['TABLE_PICTURES']} r, {$CONFIG['TABLE_USERS']} u\r\n {$RESTRICTEDWHERE} AND r.owner_id = u.user_id AND approved = 'YES' ORDER BY pid DESC LIMIT 0, {$XFDSET['xfd_feed_items']}"; $result = cpg_db_query($query); $pic_data = cpg_db_fetch_rowset($result); } /** * MAIN CODE */ $feedtype = $superCage->get->keyExists('type') ? $superCage->get->getEscaped('type') : ''; header("Content-type: text/xml; charset={$CONFIG['charset']}"); if ($feedtype == "atom") { atom10(); } else { rss20(); } // Create RSS function rss20() { global $CONFIG, $result, $base, $gallery_name, $pic_data, $album, $album_name, $CURRENT_CAT_NAME; $superCage = Inspekt::makeSuperCage(); // Decide what kind of title to be shown if ((int) $album) { $title = " | Album: {$album_name}"; } elseif ($superCage->get->testInt('cat')) { if (strip_tags($album_name)) { $title = ' | ' . strip_tags($album_name); } if ($superCage->get->getInt('cat') < 0) { $albumDetails = get_album_name(-$superCage->get->getInt('cat'));
XML on Windows and Linux platforms. Check out <a href="http://www.troywolf.com/articles">Troy's Code Library</a>. </p> <a href="http://www.ixwebhosting.com/templates/ix/v2/affiliate/clickthru.cgi?id=troywolf"> <img src="http://www.ixwebhosting.com/templates/ix/v2/images/banners/468x60-unlimitedpro.gif" border=0></a> </td> <td width="25"> </td> <td valign="top" style="border-left:dotted 1px #000000;"> <?php /* Display the first 5 news items from Wired.com. Cache the news results for 5 minutes. */ #$url = "http://www.wired.com/news/feeds/rss2/0,2610,,00.xml"; $url = "http://news.google.com/?output=rss"; rss20($url, 300, 5); ?> </td> </tr> </table> </body> </html>