Example #1
0
            if (($lbl = $links[$rel]['title']) != "" && $prepend) {
                $links[$rel]['title'] = htmlentities($title, ENT_COMPAT, "UTF-8") . " " . TITLE_SEP . " " . $lbl;
            } elseif (($lbl = $links[$rel]['title']) != "" && !$prepend) {
                $links[$rel]['title'] = htmlentities($lbl, ENT_COMPAT, "UTF-8");
            } elseif ($title) {
                $links[$rel]['title'] = htmlentities($title, ENT_COMPAT, "UTF-8");
            }
        }
    }
    //rss_header( rss_htmlspecialchars( $title ) . $dtitle,0,$cidfid,"", HDR_NONE, $links);
    $GLOBALS['rss']->header = new Header(rss_htmlspecialchars($title) . $dtitle, 0, $cidfid, "", HDR_NONE, $links);
} else {
    // "item mode"
    $res = rss_query("select c.title, c.icon, i.title from " . getTable("channels") . " c " . "inner join " . getTable("item") . " i on i.cid = c.id where c.id = {$cid} and i.id={$iid}" . " and not(i.unread & " . RSS_MODE_DELETED_STATE . ") ");
    list($title, $icon, $ititle) = rss_fetch_row($res);
    $GLOBALS['rss']->header = new Header(rss_htmlspecialchars($title) . " " . TITLE_SEP . " " . rss_htmlspecialchars($ititle), 0, null, "", HDR_NONE, $links);
}
$GLOBALS['rss']->feedList = new FeedList($cid);
if (array_key_exists('dbg', $_GET)) {
    require_once 'cls/debugfeed.php';
    $dbg = new DebugFeed($cid);
    $GLOBALS['rss']->appendContentObject($dbg);
} else {
    if ($cid && !(isset($cids) && is_array($cids) && count($cids))) {
        $cids = array($cid);
    }
    if (!isset($vfid)) {
        $vfid = null;
    }
    doItems($cids, $fid, $vfid, $title, $iid, $y, $m, $d, isset($nv) ? $nv : null, $show_what, $show_private);
}
Example #2
0
 /**
  * Feed constructor
  */
 function Feed($title, $cid, $icon)
 {
     $this->rss =& $GLOBALS['rss'];
     $this->title = rss_htmlspecialchars($title);
     $this->cid = $cid;
     if (substr($icon, 0, 5) == 'blob:') {
         $this->iconUrl = getPath() . "extlib/favicon.php?url=" . rss_real_escape_string(substr($icon, 5));
     } else {
         $this->iconUrl = $icon;
     }
     //$this->escapedTitle = preg_replace("/[^A-Za-z0-9\.]/", "_", $title);
     $this->escapedTitle = rss_uri($title);
 }
Example #3
0
<entry>
		<id><?php 
echo rss_item_url();
?>
</id>
		<author><name><?php 
echo $GLOBALS['rss']->currentItem->author;
?>
</name></author>
		<title><?php 
echo rss_htmlspecialchars(rss_feed_title());
?>
: <?php 
echo rss_htmlspecialchars(rss_item_title());
?>
</title>
                <link rel="alternate" type="text/html" href="<?php 
echo rss_item_url();
?>
"/>		
		<updated><?php 
echo rss_item_date_with_format('c');
?>
</updated>
		<published><?php 
echo rss_item_date_with_format('c');
?>
</published>
		<content type="html"><![CDATA[	<?php 
echo rss_item_content();
?>
Example #4
0
function rss_itemlist_title()
{
    return $GLOBALS['rss']->currentItemList->renderOptions & IL_TITLE_NO_ESCAPE ? $GLOBALS['rss']->currentItemList->title : rss_htmlspecialchars($GLOBALS['rss']->currentItemList->title);
}