AAAAPK ›Z?\•³±8 8 mod_feed.xmlnu W+A„¶
mod_feedJoomla! ProjectJuly 2005Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.GNU General Public License version 2 or later; see LICENSE.txtadmin@joomla.orgwww.joomla.org2.5.0MOD_FEED_XML_DESCRIPTIONmod_feed.phphelper.phpindex.htmltmplen-GB.mod_feed.inien-GB.mod_feed.sys.ini
PK ›Z?\¥¹ÿ± mod_feed.phpnu W+A„¶ get('rssurl', '');
$rssrtl = $params->get('rssrtl', 0);
//check if feed URL has been set
if (empty ($rssurl))
{
echo '
PK ›Z?\¦V‰ tmpl/index.htmlnu W+A„¶
PK ›Z?\®)ÕÐ tmpl/.htaccessnu W+A„¶
Order allow,deny
Deny from all
PK ›Z?\~±Ä¥p p
helper.phpnu W+A„¶ get('rssurl', '');
// get RSS parsed object
$cache_time = 0;
if ($params->get('cache'))
{
/*
* The cache_time will get fed into JCache to initiate the feed_parser cache group and eventually
* JCacheStorage will multiply the value by 60 and use that for its lifetime. The only way to sync
* the feed_parser cache (which caches with an empty dataset anyway) with the module cache is to
* first divide the module's cache time by 60 then inject that forward, which once stored into the
* JCacheStorage object, will be the correct value in minutes.
*/
$cache_time = $params->get('cache_time', 15) / 60;
}
$rssDoc = JFactory::getFeedParser($rssurl, $cache_time);
$feed = new stdClass;
if ($rssDoc != false)
{
// channel header and link
$feed->title = $rssDoc->get_title();
$feed->link = $rssDoc->get_link();
$feed->description = $rssDoc->get_description();
// channel image if exists
$feed->image = new stdClass;
$feed->image->url = $rssDoc->get_image_url();
$feed->image->title = $rssDoc->get_image_title();
// items
$items = $rssDoc->get_items();
// feed elements
$feed->items = array_slice($items, 0, $params->get('rssitems', 5));
} else {
$feed = false;
}
return $feed;
}
}
PK ›Z?\®)ÕÐ .htaccessnu W+A„¶
Order allow,deny
Deny from all
PK ›Z?\¦V‰
index.htmlnu W+A„¶
PK ›Z?\•³±8 8 mod_feed.xmlnu W+A„¶ PK ›Z?\¥¹ÿ± t mod_feed.phpnu W+A„¶ PK ›Z?\”ZŸ{š
š
¹ tmpl/default.phpnu W+A„¶ PK ›Z?\¦V‰ “ tmpl/index.htmlnu W+A„¶ PK ›Z?\®)ÕÐ ñ tmpl/.htaccessnu W+A„¶ PK ›Z?\~±Ä¥p p
® helper.phpnu W+A„¶ PK ›Z?\®)ÕÐ X$ .htaccessnu W+A„¶ PK ›Z?\¦V‰
% index.htmlnu W+A„¶ PK b i%