21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: syndication.php,v 1.4 2007-03-28 15:53:27 florian Exp $ |
// CVS : $Id: syndication.php,v 1.5 2007-04-20 12:50:18 florian Exp $ |
/** |
* papyrus_bp - syndication.php |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 1999-2006 |
*@version $Revision: 1.4 $ $Date: 2007-03-28 15:53:27 $ |
*@version $Revision: 1.5 $ $Date: 2007-04-20 12:50:18 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
135,8 → 135,7 |
foreach ($tab_url as $cle => $url) { |
if ($url != '') { |
$aso_site = array(); |
$url = str_replace('&', '&', $url) ; |
$rss =& new XML_RSS($url); |
$rss =& new XML_RSS(str_replace('&', '&', $url)); |
$rss->parse(); |
if ($options['template'] != '' && !file_exists($options['template'])) { |
$i = 0 ; |
179,6 → 178,7 |
return $res; |
} |
$channel=$rss->getChannelInfo(); |
//var_dump($channel); |
// Gestion du titre |
if ( $options['titre'] == '' ) { |
$aso_site['titre'] = utf8_decode($channel['title']); |
258,7 → 258,7 |
} |
} |
// Trie des pages par date |
//var_dump($GLOBALS['_SYNDICATION_']); |
//var_dump($GLOBALS['_SYNDICATION_']['pages']); |
krsort($GLOBALS['_SYNDICATION_']['pages']); |
|
//+----------------------------------------------------------------------------------------------------------------+ |
282,6 → 282,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2007/03/28 15:53:27 florian |
* correction pb date, encodage utf-8 |
* |
* Revision 1.3 2007/01/23 14:17:19 alexandre_tb |
* backport : hack pour rattraper les dates du type 01012005 parsees par magpie |
* lorsque les flux donne des dates au format iso |