You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

80 lines
2.6 KiB

<?php
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
require_once('XTemplate/xtpl.php');
require_once("data/Tracker.php");
require_once('themes/'.$theme.'/layout_utils.php');
require_once('include/logging.php');
require_once('include/ListView/ListView.php');
require_once('include/utils.php');
require_once('include/uifromdbutil.php');
require_once('modules/Rss/Rss.php');
global $app_strings;
global $app_list_strings;
global $mod_strings;
$current_module_strings = return_module_language($current_language, 'Rss');
$log = LoggerManager::getLogger('rss_list');
global $currentModule;
global $image_path;
global $theme;
global $cache_dir;
// focus_list is the means of passing data to a ListView.
global $focus_list;
if(isset($_REQUEST[record]))
{
$recordid = $_REQUEST[record];
}
$rss_form=new XTemplate ('modules/Rss/ListView.html');
$rss_form->assign("MOD", $mod_strings);
$rss_form->assign("APP", $app_strings);
$rss_form->assign("IMAGEPATH",$image_path);
//<<<<<<<<<<<<<<lastrss>>>>>>>>>>>>>>>>>>//
//$url = 'http://forums/rss.php?name=forums&file=rss';
//$url = 'http://forums/weblog_rss.php?w=202';
$oRss = new vtigerRSS();
if(isset($_REQUEST[record]))
{
$recordid = $_REQUEST[record];
$url = $oRss->getRssUrlfromId($recordid);
if($oRss->setRSSUrl($url))
{
$rss_html = $oRss->getSelectedRssHTML($recordid);
}else
{
$rss_html = "<strong>No RSS Feeds are selected</strong>";
}
}else
{
$rss_html = $oRss->getStarredRssHTML();
}
//$all_rss_html = $oRss->getAllRssFeeds();
//$stared_rss_html = $oRss->getStaredRssFeeds();
//$crm_rss_html = $oRss->getCRMRssFeeds();
//$category_rss_html = $oRss->getRSSCategoryHTML();
//$top_stared_rss_html = $oRss->getTopStarredRSSFeeds();
//print_r($rss_hdr_html);
//$rss_form->assign("TOPSTARSSFEEDS",$top_stared_rss_html);
//$rss_form->assign("RSSHEADERDETAILS",$rss_hdr_html);
$rss_form->assign("RSSDETAILS",$rss_html);
//$rss_form->assign("ALLRSSFEEDS",$all_rss_html);
//$rss_form->assign("STAREDFEEDS",$stared_rss_html);
//$rss_form->assign("CRMRSSFEEDS",$crm_rss_html);
//$rss_form->assign("CATEGORYFEEDS",$category_rss_html);
//<<<<<<<<<<<<<<lastrss>>>>>>>>>>>>>>>>>>//
$rss_form->parse("main");
$rss_form->out("main");
?>