home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2007 April / PCpro_2007_04.ISO / files / dsl / NVinst.exe / Scripts / HTTP / 127.0.0.3 / ReloadCMS / rss.php < prev   
Encoding:
PHP Script  |  2007-02-10  |  1.5 KB  |  25 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. //   Copyright (C) ReloadCMS Development Team                                 //
  4. //   http://reloadcms.sf.net                                                  //
  5. //                                                                            //
  6. //   This program is distributed in the hope that it will be useful,          //
  7. //   but WITHOUT ANY WARRANTY, without even the implied warranty of           //
  8. //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     //
  9. //                                                                            //
  10. //   This product released under GNU General Public License v2                //
  11. ////////////////////////////////////////////////////////////////////////////////
  12.  
  13. define('RCMS_ROOT_PATH', './');
  14. require_once(RCMS_ROOT_PATH . 'common.php');
  15. require_once(SYSTEM_MODULES_PATH . 'rss.php');
  16.  
  17. if(!empty($_GET['m']) &&  !empty($system->config['enable_rss']) && !empty($system->feeds[$_GET['m']])){
  18.     $module = $_GET['m'];
  19.     header('Content-Type: text/xml');
  20.     $feed = new rss_feed($system->config['title'] . ' - ' . $system->feeds[$module][0], $system->url, $system->feeds[$module][1], $system->config['encoding'], $system->config['language'], $system->config['copyright']);
  21.     $m = (!empty($system->feeds[$module][2])) ? $system->feeds[$module][2] : $module;
  22.     if(is_readable(MODULES_PATH . $m . '/rss.php')) include(MODULES_PATH . $m . '/rss.php');
  23.     $feed->showFeed();
  24. }
  25. ?>