<?php
// echo 'bookmarkstep is: '. $_POST[bookmarkstep] . ' $_POST[feedurl] '. $_POST[feedurl];
require_once('../../test/multifeed/simplepie.inc');
// Set your own configuration options as you see fit.
$feedURL = $_POST['feedurl'];
$feed = new SimplePie();
$feed->feed_url($feedURL);
$feed->cache_max_minutes(30);
$feed->strip_ads(true);
$feed->replace_headers(true);
$feed->get_favicon(true, 'http://www.gabbr.com/img/icons/defaultfavicon.gif');
$feed->init();
var_dump($feed);
if ($feed->init()){
?>
<div style="padding-top:20px;padding-left:10px;height:40px;margin-bottom:10px;background-color:#D6D3BD;"><img src="http://www.gabbr.com/img/icons/icon_checkmark_sm.gif" width="16" height="16"> <span style="margin-left:8px;">Congratulations! Now select the category for your feed and you are done.</span></div>
<div style="padding-top:14px;padding-left:10px;padding-right:10px;padding-bottom:10px;background-color:#D6D3BD;">
<div style="margin-top:2px;margin-bottom:2px;font-size: 1.2em;">Feed Preview: <a href="<?php echo ''; ?>"><?php echo ''; ?></a></div>
<div style="height:220px;overflow:auto;padding:10px;background-color:#D6D3BD;">
<p><a href="<?php echo $feed->get_link(); ?>"><?php echo $feed->get_title(); ?></a></p>
<p><?php echo ''; ?></p>
<?php
/*
Here, we'll loop through all of the items in the feed, and $item represents the current item in the loop.
*/
foreach ($feed->get_items() as $item):
?>
<div class="item">
<p><b><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></b></h2>
<p><?php echo $item->get_description(); ?></p>
<p><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p>
</div>
<?php endforeach; ?>
</div>
</div>
<?php
}else{
echo '<p>You submitted an invalid feed document. Please <a href="http://www.gabbr.com/promotion/linkexchange/">try again</a>.</p>';
}
?>