addSource('rss', 'blog', 'Blog', 'http://bohwaz.net/blog', array( 'feed_url' => 'http://blogs.kd2.org/bohwaz/rss.php', )); // FICHIERS HTML STATIQUES $feed->addSource('html', 'musique', 'Musique', 'http://bohwaz.net/musique/', array( 'path' => '../musique/index.html', )); define('SELF_URL', 'http://bohwaz.net/'); $last_update = $feed->getLastItemDate(); header('Content-Type: application/rss+xml'); echo ' bohwaz.net Derniers éléments ajoutés ou modifiés sur le site perso de bohwaz '.SELF_URL.' fr bohwaz '.date(DATE_W3C, $last_update).' daily 1 '.date(DATE_W3C, $last_update).' '; $items = $feed->getLastItems(100); foreach ($items as &$item) { $source = $feed->getSource($item['source']); echo ' '; } echo ' '; foreach ($items as &$item) { $source = $feed->getSource($item['source']); $title = !empty($item['title']) ? $item['title'] . ' ('.$source['name'].')' : $source['name']; if (empty($item['url'])) $item['url'] = $source['url']; $content = ''; if (!empty($item['thumb']) && !preg_match('!'.escape($title).'

'; } $content .= '

'.$item['desc'].'

('.escape($source['name']).')

'; echo ' '.escape($title).' '.$item['url'].' '.date(DATE_W3C, $item['date']).' fr bohwaz '.escape($source['name']).' '.escape($content).' '; } echo '
'; ?>