[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/modules/mod_feed/ -> mod_feed.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: mod_feed.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   6  * @license        GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  /** ensure this file is being included by a parent file */
  15  defined('_JEXEC') or die( 'Restricted access' );
  16  
  17  // Include the syndicate functions only once
  18  require_once (dirname(__FILE__).DS.'helper.php');
  19  
  20  $rssurl    = $params->get('rssurl', '');
  21  $rssrtl    = $params->get('rssrtl', 0);
  22  
  23  //check if cache diretory is writable as cache files will be created for the feed
  24  $cacheDir = JPATH_BASE.DS.'cache';
  25  if (!is_writable($cacheDir))
  26  {
  27      echo '<div>';
  28      echo JText::_('Please make cache directory writable.');
  29      echo '</div>';
  30      return;
  31  }
  32  
  33  //check if feed URL has been set
  34  if (empty ($rssurl))
  35  {
  36      echo '<div>';
  37      echo JText::_('No feed URL specified.');
  38      echo '</div>';
  39      return;
  40  }
  41  
  42  require(JModuleHelper::getLayoutPath('mod_feed'));


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1