File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/includes/pages/viewrss.php
<?php
/**
* This file contains the iwp_page_viewauthor class
*
* @version $Id$
*
*
* @package IWP
* @subpackage IWP_FrontEnd
*/
/**
* IWP Frontend View Author Page
* This class extends the iwp_engine abstract class.
* This class handles the actions for viewing an author's profile
*
* @package IWP
* @subpackage IWP_FrontEnd
*/
class iwp_page_viewrss extends iwp_engine {
/**
* Calls the parent constructor
*
* @return void Doesn't return anything
*/
public function __construct(){
parent::__construct();
}
/**
* This function tells the controller to loads the view author page. It checks to make sure the ID number is valid and loads the author data from the database and sets up the database variables with the data.
*
* @return void Doesn't return anything
*/
public function ShowPage(){
$sections = $this->urls->GetCurrentMatches();
$listid = $sections['idnumber'];
$list = iwp_lists::getInstance();
$list->Load($listid);
$RSSArray = array();
if($list->Get('type') == 'dynamic') {
$RSSArray = $list->GetRSSofDynamicListOutput();
}elseif($list->Get('type') == 'static'){
$RSSArray = $list->GetRSSofStaticListOutput();
}elseif($list->Get('type') == 'rss'){
$RSSArray = $list->GetRSSofRSSListOutput();
}
$rss = new iwp_rsscreator(false);
$rss->StartRSS($list->Get('title'), iwp_config::Get('siteURL') .'/');
foreach($RSSArray as $item){
$rss->AddItem($item);
}
$rss->EndRSS(true);
}
}