Subversion Repositories Applications.papyrus

Rev

Rev 345 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 345 Rev 354
Line 28... Line 28...
28
        if (ini_get('allow_url_fopen') != 0) {
28
        if (ini_get('allow_url_fopen') != 0) {
29
            foreach ($tab_url as $cle => $url) {
29
            foreach ($tab_url as $cle => $url) {
30
                $rss =& new XML_RSS($url);
30
                $rss =& new XML_RSS($url);
31
                $rss->parse();
31
                $rss->parse();
32
                $aso_info_rss = $rss->getChannelInfo();
32
                $aso_info_rss = $rss->getChannelInfo();
-
 
33
                if (isset($aso_info_rss['title')) {
33
                $sortie .= '<h2>'.$aso_info_rss['title'].'</h2>';
34
                    $sortie .= '<h2>'.$aso_info_rss['title'].'</h2>';
-
 
35
                }
34
                $sortie .= '<ul class="plan_site_'.$site.'" >'."\n";
36
                $sortie .= '<ul class="syndication" >'."\n";
35
                foreach ($rss->getItems() as $item) {
37
                foreach ($rss->getItems() as $item) {
36
                    $sortie .= '<li><a href="'.$item['link'].'">'.$item['title'].'</a></li>'."\n";
38
                    $sortie .= '<li><a href="'.$item['link'].'">'.$item['title'].'</a></li>'."\n";
37
                }
39
                }
38
                $sortie .= '</ul>'."\n";
40
                $sortie .= '</ul>'."\n";
39
            }
41
            }