Ejemplo n.º 1
0
    $rss .= "<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>\n";
    $rss .= "\t<channel>\n";
    $rss .= "\t\t<title>" . html2ascii($settings['sitename'] . " - " . $locale['feeds_title']) . "</title>\n";
    $rss .= "\t\t<link>" . $settings['siteurl'] . "</link>\n";
    $rss .= "\t\t<description>" . strip_tags($settings['description']) . "</description>\n";
    $rss .= "\t\t<lastBuildDate>" . date("D, d M Y H:i:s", time()) . " GMT</lastBuildDate>\n";
    $rss .= "\t\t<generator>" . $locale['ssfp_title'] . "</generator>\n";
    $rss .= "\t\t<atom:link href='" . $settings['siteurl'] . "infusions/ss_feeds_panel/rss/" . $feed_name . $feed_language . ".rss" . "' rel='self' type='application/rss+xml' />\n";
    $rss .= "\t\t<image>\n";
    $rss .= "\t\t\t<title>" . html2ascii($settings['sitename'] . " - " . $locale['feeds_title']) . "</title>\n";
    $rss .= "\t\t\t<url>" . $settings['siteurl'] . "images/rss.gif</url>\n";
    $rss .= "\t\t\t<link>" . $settings['siteurl'] . "</link>\n";
    $rss .= "\t\t\t<width>36</width>\n";
    $rss .= "\t\t\t<height>13</height>\n";
    $rss .= "\t\t\t<description>" . html2ascii($settings['sitename']) . "</description>\n";
    $rss .= "\t\t</image>\n";
    while ($data = dbarray($result)) {
        $rsid = intval($data['news_id']);
        $rtitle = $data['news_subject'];
        $description = trim($data['news_extended']) != "" ? stripslashes(nl2br($data['news_extended'])) : stripslashes(nl2br($data['news_news']));
        $rss .= "\t\t<item>\n";
        $rss .= "\t\t\t<title>" . html2ascii(htmlspecialchars($rtitle)) . "</title>\n";
        $rss .= "\t\t\t<link>" . $settings['siteurl'] . "news.php?readmore=" . $rsid . "</link>\n";
        $rss .= "\t\t\t<description>" . html2ascii(htmlspecialchars(strip_tags($description))) . "</description>\n";
        $rss .= "\t\t\t<guid>" . $settings['siteurl'] . "news.php?readmore=" . $rsid . "</guid>\n";
        $rss .= "\t\t\t<pubDate>" . date("D, d M Y H:i:s", $data['news_datestamp']) . " GMT</pubDate>\n";
        $rss .= "\t\t</item>\n";
    }
    $rss .= "\t</channel>\n";
    $rss .= "</rss>\n";
}
Ejemplo n.º 2
0
                $photo_file = $settings['siteurl'] . "photo.php?photo_id=" . $data['photo_id'];
            }
        } else {
            $photo_thumb = $data['photo_thumb2'] ? $PHOTODIR . $data['photo_thumb2'] : "";
            $photo_file = $PHOTODIR . $data['photo_filename'];
        }
        $rsid = intval($data['photo_id']);
        $rtitle = $data['album_title'] . " / " . $data['photo_title'];
        $description = "";
        $description .= "<div align='center' style='margin:5px;'>";
        $description .= "<a href='" . $settings['siteurl'] . "photogallery.php?photo_id=" . $rsid . "'>";
        $description .= "<img src='" . (isset($photo_thumb) && !empty($photo_thumb) ? $photo_thumb : $photo_file) . "' alt='" . $data['photo_filename'] . "' title='" . $locale['453'] . "' style='border:0px' /></a>";
        $description .= "</a></div>";
        $description .= "<div align='center' style='margin:5px 0px 5px 0px'>";
        if ($data['photo_description']) {
            $description .= stripslashes(nl2br($data['photo_description'])) . "<br /><br />";
        }
        $description .= $locale['433'] . showdate("shortdate", $data['photo_datestamp']) . "<br />";
        $description .= $locale['434'] . "<a href='" . $settings['siteurl'] . "profile.php?lookup=" . $data['user_id'] . "'>" . $data['user_name'] . "</a><br />";
        $description .= "</div>";
        $rss .= "\t\t<item>\n";
        $rss .= "\t\t\t<title>" . html2ascii(htmlspecialchars($rtitle)) . "</title>\n";
        $rss .= "\t\t\t<link>" . $settings['siteurl'] . "photogallery.php?photo_id=" . $rsid . "</link>\n";
        $rss .= "\t\t\t<description>" . html2ascii(htmlspecialchars(parseubb(parsersssmileys($description), "b|i|u|center|small|url|mail|img|quote"))) . "</description>\n";
        $rss .= "\t\t\t<guid>" . $settings['siteurl'] . "photogallery.php?photo_id=" . $rsid . "</guid>\n";
        $rss .= "\t\t\t<pubDate>" . date("D, d M Y H:i:s", $data['photo_datestamp']) . " GMT</pubDate>\n";
        $rss .= "\t\t</item>\n";
    }
    $rss .= "\t</channel>\n";
    $rss .= "</rss>\n";
}
Ejemplo n.º 3
0
    $rss .= "\t<channel>\n";
    $rss .= "\t\t<title>" . html2ascii($settings['sitename'] . " - " . $locale['feeds_title']) . "</title>\n";
    $rss .= "\t\t<link>" . $settings['siteurl'] . "</link>\n";
    $rss .= "\t\t<description>" . strip_tags($settings['description']) . "</description>\n";
    $rss .= "\t\t<lastBuildDate>" . date("D, d M Y H:i:s", time()) . " GMT</lastBuildDate>\n";
    $rss .= "\t\t<generator>" . $locale['ssfp_title'] . "</generator>\n";
    $rss .= "\t\t<atom:link href='" . $settings['siteurl'] . "infusions/ss_feeds_panel/rss/" . $feed_name . $feed_language . ".rss" . "' rel='self' type='application/rss+xml' />\n";
    $rss .= "\t\t<image>\n";
    $rss .= "\t\t\t<title>" . html2ascii($settings['sitename'] . " - " . $locale['feeds_title']) . "</title>\n";
    $rss .= "\t\t\t<url>" . $settings['siteurl'] . "images/rss.gif</url>\n";
    $rss .= "\t\t\t<link>" . $settings['siteurl'] . "</link>\n";
    $rss .= "\t\t\t<width>36</width>\n";
    $rss .= "\t\t\t<height>13</height>\n";
    $rss .= "\t\t\t<description>" . html2ascii($settings['sitename']) . "</description>\n";
    $rss .= "\t\t</image>\n";
    while ($data = dbarray($result)) {
        $rsid = intval($data['thread_id']);
        $rspid = intval($data['thread_lastpostid']);
        $rtitle = $data['thread_subject'];
        $description = stripslashes(nl2br($data['post_message']));
        $rss .= "\t\t<item>\n";
        $rss .= "\t\t\t<title>" . html2ascii(htmlspecialchars($rtitle)) . "</title>\n";
        $rss .= "\t\t\t<link>" . $settings['siteurl'] . "forum/viewthread.php?thread_id=" . $rsid . "&amp;pid=" . $rspid . "#post_" . $rspid . "</link>\n";
        $rss .= "\t\t\t<description>" . html2ascii(htmlspecialchars(preg_replace("/max-height: 300px; /", "", parseubb(parsersssmileys($description))))) . "</description>\n";
        $rss .= "\t\t\t<guid>" . $settings['siteurl'] . "forum/viewthread.php?thread_id=" . $rsid . "&amp;pid=" . $rspid . "#post_" . $rspid . "</guid>\n";
        $rss .= "\t\t\t<pubDate>" . date("D, d M Y H:i:s", $data['thread_lastpost']) . " GMT</pubDate>\n";
        $rss .= "\t\t</item>\n";
    }
    $rss .= "\t</channel>\n";
    $rss .= "</rss>\n";
}