<?phprequire_once('../../inc/simplepiev11.inc');// Set your own configuration options as you see fit.$feedURL = $_POST['feedurl'];$feed = new SimplePie();$feed->set_feed_url($feedURL);$success = $feed->init();$feed->handle_content_type(); if ($success){?><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 ''; ?>"><?php echo ''; ?></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>';}?>