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.11 2008-10-29 15:55:56 alexandre_tb Exp $ |
// CVS : $Id: syndication.php,v 1.10 2007-12-13 14:10:51 alexandre_tb Exp $ |
/** |
* papyrus_bp - syndication.php |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 1999-2006 |
*@version $Revision: 1.11 $ $Date: 2008-10-29 15:55:56 $ |
*@version $Revision: 1.10 $ $Date: 2007-12-13 14:10:51 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
99,7 → 99,7 |
$options[$tab_parametres[0]] = trim($tab_parametres[1], '"'); |
} |
} |
// |
|
//+----------------------------------------------------------------------------------------------------------------+ |
// Gestion des erreurs de paramétrage |
if (!isset($options['url'])) { |
200,21 → 200,16 |
// Gestion des pages syndiquees |
$i = 0; |
$nb_item = $feed->numberEntries; |
|
foreach ($feed as $item) { |
|
//echo '<pre>'.print_r($item, true).'</pre>'; |
if ($options['nb'] != 0 && $nb_item >= $options['nb'] && $i >= $options['nb']) { |
break; |
} |
$i++; |
|
$aso_page = array(); |
$aso_page['site'] = $aso_site; |
$aso_page['url'] = htmlentities($item->link); |
$aso_page['titre'] = mb_convert_encoding($item->title, 'HTML-ENTITIES', $encodages); |
$aso_page['description'] = mb_convert_encoding($item->description, 'HTML-ENTITIES', $encodages); |
$aso_page['category'] = mb_convert_encoding($item->model->getElementsByTagName('category')->item(0)->nodeValue, 'HTML-ENTITIES', $encodages); |
$aso_page['author'] = mb_convert_encoding($item->author, 'HTML-ENTITIES', $encodages); |
$aso_page['date'] = $item->pubDate; |
if ($options['formatdatepro']) { |
switch ($options['formatdatepro']) { |
283,9 → 278,6 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.10 2007-12-13 14:10:51 alexandre_tb |
* Fusion avec la livraison AHA : 13 decembre 2007 |
* |
* Revision 1.9 2007-12-03 14:54:14 jp_milcent |
* Fusion avec la livraison AHA : 3 décembre 2007 |
* |