Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: hb_rss.php,v 1.2 2006-10-31 12:38:12 jp_milcent Exp $
|
22 |
// CVS : $Id: hb_rss.php,v 1.3 2006-10-31 12:39:23 jp_milcent Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Générateur de flux RSS pour les Herbiers
|
24 |
* Générateur de flux RSS pour les Herbiers
|
25 |
*
|
25 |
*
|
26 |
*@package bazar
|
26 |
*@package bazar
|
27 |
//Auteur original :
|
27 |
//Auteur original :
|
28 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
28 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
29 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
29 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
30 |
*
|
30 |
*
|
31 |
*@copyright Tela-Botanica 2000-2006
|
31 |
*@copyright Tela-Botanica 2000-2006
|
32 |
*@version $Revision: 1.2 $ $Date: 2006-10-31 12:38:12 $
|
32 |
*@version $Revision: 1.3 $ $Date: 2006-10-31 12:39:23 $
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
*/
|
34 |
*/
|
Line 35... |
Line 35... |
35 |
|
35 |
|
36 |
//==================================== LES FLUX RSS==================================
|
36 |
//==================================== LES FLUX RSS==================================
|
Line 103... |
Line 103... |
103 |
$aso_infos = array();
|
103 |
$aso_infos = array();
|
104 |
$aso_infos['title'] = 'Flux RSS : '.$flux;
|
104 |
$aso_infos['title'] = 'Flux RSS : '.$flux;
|
105 |
$GLOBALS['_HERBIER_']['url_rss']->addQueryString('type', $flux);
|
105 |
$GLOBALS['_HERBIER_']['url_rss']->addQueryString('type', $flux);
|
106 |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['url_rss']->getURL());
|
106 |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['url_rss']->getURL());
|
107 |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif'];
|
107 |
$aso_infos['description'] = 'Modifié par '.$ligne['prenom'].' '.$ligne['nom'].' le '.$ligne['date_derniere_modif'];
|
108 |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', str_replace('$Date: 2006-10-31 12:38:12 $Date$'))));
|
108 |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 12:39:23 $'))));
|
109 |
$tab_infos[] = $aso_infos;
|
109 |
$tab_infos[] = $aso_infos;
|
110 |
}
|
110 |
}
|
111 |
}
|
111 |
}
|
112 |
$aso_meta['description'] = HBR_RSS_DESCRIPTIONSITE;
|
112 |
$aso_meta['description'] = HBR_RSS_DESCRIPTIONSITE;
|
113 |
$aso_meta['link'] = HBR_RSS_ADRESSESITE;
|
113 |
$aso_meta['link'] = HBR_RSS_ADRESSESITE;
|
Line 185... |
Line 185... |
185 |
return $xml;
|
185 |
return $xml;
|
186 |
}
|
186 |
}
|
187 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
187 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
188 |
*
|
188 |
*
|
189 |
* $Log: not supported by cvs2svn $
|
189 |
* $Log: not supported by cvs2svn $
|
- |
|
190 |
* Revision 1.2 2006/10/31 12:38:12 jp_milcent
|
- |
|
191 |
* Début gestion des différents type de flux.
|
- |
|
192 |
*
|
190 |
* Revision 1.1 2006/10/30 18:57:17 jp_milcent
|
193 |
* Revision 1.1 2006/10/30 18:57:17 jp_milcent
|
191 |
* Début gestion des flux rss.
|
194 |
* Début gestion des flux rss.
|
192 |
*
|
195 |
*
|
193 |
*
|
196 |
*
|
194 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
197 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|