Example #1
0
 *
 * qPlanet.: Another free RSS planet.
 * @author Jorge Fuertes - jorge@jorgefuertes.com
 * @version 2.0
 * @package qPlanet
 * 
 **/
# Setup class autoload:
function __autoload($class)
{
    require_once "include/" . $class . ".class.php";
}
# General configuration, options and feeds:
$Config = new Config();
$Config->SetOpts();
error_reporting($Config->getOpt('options', 'reporting'));
# Simplepie: 3rd-party rss processing:
#require_once('3rd-party/simplepie/SimplePieAutoloader.php');
#include_once('3rd-party/simplepie/idn/idna_convert.class.php');
# RSS init:
$rss = new Rss();
# Get the posts:
Debug::info("Getting the posts");
$posts = $rss->getPosts($Config->getFeeds());
# Write mode output openning:
Debug::info("Generating HTML output at " . OUTDIR . "/" . OUTFILE);
Debug::info("Generating RSS 2.0 output at " . OUTDIR . "/rss20.xml");
$fOutput = new Output();
#
# Output files generation:
#