CoreFiles by mySites.guru
mod_feed.php37 lines, 937 bytes, from Joomla_1.7.2-Stable-Full_Package.zip
Raw History Compare with 1.7.1
md5
78559c04495a534d38dd4bee9f71644a
sha1
f4424b2bfa721264844f3cb2b2c96ebddff32b9d
sha256
7f445d393003e95f4a59e439b7c52a606a9e924e24a0a18dbfc61777b1101e69
<?php
/**
 * @version		$Id: mod_feed.php 20196 2011-01-09 02:40:25Z ian $
 * @package		Joomla.Administrator
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

/** ensure this file is being included by a parent file */
defined('_JEXEC') or die;

// Include the syndicate functions only once
require_once dirname(__FILE__).'/helper.php';

$rssurl	= $params->get('rssurl', '');
$rssrtl	= $params->get('rssrtl', 0);

//check if cache diretory is writable as cache files will be created for the feed
$cacheDir = JPATH_CACHE;
if (!is_writable($cacheDir))
{
	echo '<div>';
	echo JText::_('MOD_FEED_ERR_CACHE');
	echo '</div>';
	return;
}

//check if feed URL has been set
if (empty ($rssurl))
{
	echo '<div>';
	echo JText::_('MOD_FEED_ERR_NO_URL');
	echo '</div>';
	return;
}

require JModuleHelper::getLayoutPath('mod_feed');

The same content is in 13 releases, Joomla 1.6.0 to 1.7.5. See them all, or every version of this file.