<?php
/*
* targetfrm.php Sample destination form
* Author: Manel Zaera (hide@address.com)
* Description: Singleton class to find syndication feeds in
* a website.
* Creation date: 2007-11-06
*
* This work is published under the GPL license (http://www.gnu.org/copyleft/gpl.html)
*
*/
require_once('FeedFinder.php');
$aFeedFinder = FeedFinder::getInstance();
/*print_r($aFeedFinder->getFeeds('http://localhost/FeedFinder/rss1.xml'));print('<br/>');
print_r($aFeedFinder->getFeeds('http://localhost/FeedFinder/rss2.xml'));print('<br/>');
print_r($aFeedFinder->getFeeds('http://localhost/FeedFinder/atom.xml'));print('<br/>');
print_r($aFeedFinder->getFeeds('http://localhost/web/index.php?mact=News,cntnt01,rss&cntnt01showtemplate=false&cntnt01category=&cntnt01number=20&cntnt01returnid=15'));print('<br/>');
print_r($aFeedFinder->getFeeds('http://localhost/web/'));print('<br/>');
print_r($aFeedFinder->getFeeds('http://localhost/FeedFinder/webnorss.htm'));*/
print_r($aFeedFinder->getFeeds($_POST['url']));
?>