Subversion Repositories Applications.papyrus

Rev

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

Rev 1528 Rev 1538
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: syndication.php,v 1.5.2.4 2007-07-25 15:07:52 jp_milcent Exp $
24
// CVS : $Id: syndication.php,v 1.5.2.5 2007-08-24 13:07:04 jp_milcent Exp $
25
/**
25
/**
26
* papyrus_bp - syndication.php
26
* papyrus_bp - syndication.php
27
*
27
*
28
* Description :
28
* Description :
29
*
29
*
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 1999-2006
35
*@copyright     Tela-Botanica 1999-2006
36
*@version       $Revision: 1.5.2.4 $ $Date: 2007-07-25 15:07:52 $
36
*@version       $Revision: 1.5.2.5 $ $Date: 2007-08-24 13:07:04 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 136... Line 136...
136
			if ($url != '') {
136
			if ($url != '') {
137
				$aso_site = array();
137
				$aso_site = array();
138
				try {
138
				try {
139
					$feed = new XML_Feed_Parser(file_get_contents($url));
139
					$feed = new XML_Feed_Parser(file_get_contents($url));
140
				} catch (XML_Feed_Parser_Exception $e) {
140
				} catch (XML_Feed_Parser_Exception $e) {
141
					die('Le flux RSS est invalide : ' . $e->getMessage());
141
					trigger_error('Le flux RSS est invalide : ' . $e->getMessage(), E_USER_WARNING);
142
				}
142
				}
Line 143... Line 143...
143
				
143
				
144
				if ($options['template'] != '' && !file_exists($options['template'])) {
144
				if ($options['template'] != '' && !file_exists($options['template'])) {
145
					$i = 0 ;
145
					$i = 0 ;
Line 274... Line 274...
274
}
274
}
Line 275... Line 275...
275
 
275
 
276
/* +--Fin du code ----------------------------------------------------------------------------------------+
276
/* +--Fin du code ----------------------------------------------------------------------------------------+
277
*
277
*
-
 
278
* $Log: not supported by cvs2svn $
-
 
279
* Revision 1.5.2.4  2007-07-25 15:07:52  jp_milcent
-
 
280
* Correction problème url.
278
* $Log: not supported by cvs2svn $
281
*
279
* Revision 1.5.2.3  2007-07-25 14:50:21  jp_milcent
282
* Revision 1.5.2.3  2007-07-25 14:50:21  jp_milcent
280
* Corrections, meilleure utilisation de XML_Feed_Parser.
283
* Corrections, meilleure utilisation de XML_Feed_Parser.
281
*
284
*
282
* Revision 1.5.2.2  2007-07-25 09:45:07  jp_milcent
285
* Revision 1.5.2.2  2007-07-25 09:45:07  jp_milcent