Beispiel #1
0
                     $type = "unknown";
                 }
                 /* 	print $filename; */
                 $dir = $b[slot_name];
                 $size = $b[media_size];
                 $fileurl = "{$uploadurl}/{$dir}/{$filename}";
                 $filepath = "{$uploaddir}/{$dir}/{$filename}";
                 $filesize = $size;
                 print "<enclosure url='{$fileurl}' length='{$filesize}' type='{$type}' />\n";
             }
             print "\t\t</item>\n";
         }
     }
 } else {
     if ($_REQUEST['scope'] == "alldiscuss") {
         $recent_discussion = recent_discussion($thisSite->name);
         while ($a = db_fetch_assoc($recent_discussion)) {
             $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")) {
                 print "\t\t<item>\n";
                 $title = $a["discussion_subject"];
                 print "\t\t\t<title>" . htmlspecialchars(urldecode($title), ENT_QUOTES, 'utf-8') . "</title>\n";
                 $storylink = "&amp;story=" . $a["story_id"] . "&detail=" . $a["story_id"] . "#" . $a["discussion_id"];
                 $pagelink = "&page=" . $a["page_id"];
                 $sectionlink = "&section=" . $a["section_id"];
                 $discusslink = $a["discussion_id"];
                 $linkpath = $link . htmlspecialchars($sectionlink . $pagelink . $storylink, ENT_QUOTES);
                 print "\t\t\t<link>" . $linkpath . "</link>\n";
                 print "\t\t\t<guid isPermaLink=\"true\">" . $linkpath . "</guid>\n";
                 print "\t\t\t<pubDate>";
Beispiel #2
0
/* $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'>  
All the content blocks on Segue pages that are public are available in RSS format.  The RSS feeds available here are aggregations of content across all public sections and pages of a given Segue site.