Subversion Repositories Applications.papyrus

Rev

Rev 553 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 553 Rev 735
Line 18... Line 18...
18
    
18
    
19
    function token($options)
19
    function token($options)
20
    {
20
    {
21
        // Initialisation des variables
21
        // Initialisation des variables
22
        $sortie = '';
22
        $sortie = '';
23
	$titre = $options['titre'];
23
        $titre = $options['titre'];
24
        $urls = $options['url'];
24
        $urls = $options['url'];
25
	$nblimite = $options['nb'];
25
        $nblimite = $options['nb'];
26
        $tab_url = array_map('trim', explode(',', $urls));
26
        $tab_url = array_map('trim', explode(',', $urls));
27
        if (ini_get('allow_url_fopen') != 0) {
27
        if (ini_get('allow_url_fopen') != 0) {
28
            ini_set('allow_url_fopen', 1);
28
            ini_set('allow_url_fopen', 1);
29
        }
29
        }
30
        if (ini_get('allow_url_fopen') != 0) {
30
        if (ini_get('allow_url_fopen') != 0) {
-
 
31
            foreach ($tab_url as $cle => $url) {
31
            foreach ($tab_url as $cle => $url) {
32
                $url = str_replace('&', '&', $url) ;
32
                $rss =& new XML_RSS($url);
33
                $rss =& new XML_RSS($url);
33
                $rss->parse();
34
                $rss->parse();
34
                $aso_info_rss = $rss->getChannelInfo();
35
                $aso_info_rss = $rss->getChannelInfo();
35
                if ($titre!='') {
36
                if ($titre!='') {