Copyright (C) 2005 Philipp HŸgelmeyer <*****@*****.**> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ require '../lib/bootstrap.php'; ob_end_clean(); ob_start(); require_once 'lib/showNews.inc.php'; if (get_config('NEWS_RSS_EXPORT_ENABLE')) { $range = StudipNews::GetRangeFromRssID(Request::option('id')); if (is_array($range)) { Metrics::increment('core.news.rss_fetched'); show_rss_news($range['range_id'], $range['range_type']); } else { header("Content-type: text/xml; charset=utf-8"); echo "<?xml version=\"1.0\"?>\n<rss version=\"2.0\">\n</rss>\n"; } } ob_end_flush();
public static function GetRangeIdFromRssID($rss_id) { $ret = StudipNews::GetRangeFromRssID($rss_id); return $ret['range_id']; }