$link .= "/index.php?&action=site"; $link .= "&site=" . $thisSite->name; $link = htmlspecialchars($link, ENT_QUOTES); if ($_REQUEST['scope'] == "allcontent") { print "\t\t<title>" . htmlspecialchars($thisSite->title, ENT_QUOTE) . " > All Posts</title>\n"; } else { print "\t\t<title>" . htmlspecialchars($thisSite->title, ENT_QUOTES) . " > All Discussion</title>\n"; } print "\t\t<link>" . $link . "</link>\n"; print "\t\t<description>"; // print "</description>\n"; print "\t\t<lastBuildDate>" . date("D, j M Y h:i:s O") . "</lastBuildDate>\n"; print "\t\t<generator>Segue RSS Generator</generator>\n"; if ($_REQUEST['scope'] == "allcontent") { $recent_site_edits = recent_site_edits($thisSite->name); while ($a = db_fetch_assoc($recent_site_edits)) { $thisSection =& new section($_REQUEST[site], $a['section_id'], $thisSite); $thisPage =& new page($_REQUEST[site], $a['section_id'], $a['page_id'], $thisSection); if ($thisPage->canview("everyone") && $a['story_display_type'] != "rss") { print "\t\t<item>\n"; // $title = $a["story_title"]; if ($a["story_title"]) { $title = $a["story_title"]; } else { $title2 = strip_tags(urldecode($a["story_text_short"])); if (strlen($title2) > 25) { $title = substr($title2, 0, 25) . "..."; } } print "\t\t\t<title>" . htmlspecialchars(urldecode($title), ENT_QUOTES, 'utf-8') . "</title>\n";
<?php /* $Id$ */ require "objects/objects.inc.php"; // include all necessary files //include("includes.inc.php"); $content = ''; ob_start(); session_start(); // include all necessary files include "includes.inc.php"; //if ($_SESSION['ltype'] != 'admin') exit; db_connect($dbhost, $dbuser, $dbpass, $dbdb); //if ($_REQUEST[order]) $order = $_REQUEST[order]; $site = $_REQUEST[site]; $recent_site_edits = recent_site_edits($site); $recent_discussion = recent_discussion($site); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>RSS Feeds</title> <?php include "themes/common/logs_css.inc.php"; ?> <table width='100%' cellpadding="5" cellspacing="5"> <tr> <td align='left'>