| 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.7.2.2 2007-12-03 14:52:21 jp_milcent Exp $
|
24 |
// CVS : $Id: syndication.php,v 1.7.2.3 2007-12-13 14:09:02 alexandre_tb 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.7.2.2 $ $Date: 2007-12-03 14:52:21 $
|
36 |
*@version $Revision: 1.7.2.3 $ $Date: 2007-12-13 14:09:02 $
|
| 37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
| 38 |
*/
|
38 |
*/
|
| Line 39... |
Line 39... |
| 39 |
|
39 |
|
| 40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 138... |
Line 138... |
| 138 |
// Liste des encodages acceptés pour les flux
|
138 |
// Liste des encodages acceptés pour les flux
|
| 139 |
$encodages = 'UTF-8, ISO-8859-1, ISO-8859-15';
|
139 |
$encodages = 'UTF-8, ISO-8859-1, ISO-8859-15';
|
| 140 |
try {
|
140 |
try {
|
| 141 |
$feed = new XML_Feed_Parser(file_get_contents($url));
|
141 |
$feed = new XML_Feed_Parser(file_get_contents($url));
|
| 142 |
} catch (XML_Feed_Parser_Exception $e) {
|
142 |
} catch (XML_Feed_Parser_Exception $e) {
|
| 143 |
die('Le flux RSS est invalide : ' . $e->getMessage());
|
143 |
return('Le flux RSS est invalide : ' . $e->getMessage());
|
| 144 |
}
|
144 |
}
|
| Line 145... |
Line 145... |
| 145 |
|
145 |
|
| 146 |
if ($options['template'] != '' && !file_exists($options['template'])) {
|
146 |
if ($options['template'] != '' && !file_exists($options['template'])) {
|
| 147 |
$i = 0 ;
|
147 |
$i = 0 ;
|
| Line 276... |
Line 276... |
| 276 |
}
|
276 |
}
|
| Line 277... |
Line 277... |
| 277 |
|
277 |
|
| 278 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
278 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 279 |
*
|
279 |
*
|
| - |
|
280 |
* $Log: not supported by cvs2svn $
|
| - |
|
281 |
* Revision 1.7.2.2 2007-12-03 14:52:21 jp_milcent
|
| - |
|
282 |
* Correction bogue : & dans les urls.
|
| 280 |
* $Log: not supported by cvs2svn $
|
283 |
*
|
| 281 |
* Revision 1.7.2.1 2007-11-30 14:15:02 jp_milcent
|
284 |
* Revision 1.7.2.1 2007-11-30 14:15:02 jp_milcent
|
| 282 |
* Amélioration du décodage utf8.
|
285 |
* Amélioration du décodage utf8.
|
| 283 |
*
|
286 |
*
|
| 284 |
* Revision 1.7 2007-07-25 15:09:44 jp_milcent
|
287 |
* Revision 1.7 2007-07-25 15:09:44 jp_milcent
|