diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-14 23:04:10 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-14 23:04:10 -0700 |
commit | d20e1a6f938d088708166e039ae0088a8ddf11e4 (patch) | |
tree | 7fa25d32ca357cd04debe066956f9a44f56e5206 /mod/dfrn_notify.php | |
parent | 43f8dd680234239f2cf6e0d62a12aa32aacf5b16 (diff) | |
download | volse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.tar.gz volse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.tar.bz2 volse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.zip |
feed related
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r-- | mod/dfrn_notify.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 2d9d06fd1..301beaf2f 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -1,6 +1,6 @@ <?php - +require_once('simplepie/simplepie.inc'); @@ -22,11 +22,21 @@ function dfrn_notify_post(&$a) { dbesc($challenge) ); + $feed = new SimplePie(); + $feed->set_raw_data($data); + $feed->init(); + echo "Feed title:" . $feed->get_title(); + foreach ($feed->get_items() as $item) { + echo $item->get_permalink(); + echo $item->get_content(); + + } + killme(); } |