Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 10 | Rev 12 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 11
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.3 2006-10-31 12:39:23 jp_milcent Exp $
22
// CVS : $Id: hb_rss.php,v 1.4 2006-10-31 12:42:00 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.3 $ $Date: 2006-10-31 12:39:23 $
32
*@version       $Revision: 1.4 $ $Date: 2006-10-31 12:42:00 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
Line 35... Line 35...
35
 
35
 
36
//==================================== LES FLUX RSS==================================
36
//==================================== LES FLUX RSS==================================
37
// Constantes liées aux flux RSS
37
// Constantes liées aux flux RSS
38
//==================================================================================
38
//==================================================================================
39
define('HBR_CREER_FICHIERS_XML',0);//0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/
39
define('HBR_CREER_FICHIERS_XML', 0);//0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/
40
define('HBR_RSS_NOMSITE','tela-botanica.org');//Nom du site indiqué dans les flux rss
40
define('HBR_RSS_NOMSITE','tela-botanica.org');//Nom du site indiqué dans les flux rss
41
define('HBR_RSS_ADRESSESITE','http://www.tela-botanica.org');//Adresse Internet du site indiqué dans les flux rss
41
define('HBR_RSS_ADRESSESITE','http://www.tela-botanica.org');//Adresse Internet du site indiqué dans les flux rss
42
define('HBR_RSS_DESCRIPTIONSITE','www.tela-botanica.org, pour mutualiser l\'information sur les Herbiers.');    //Description du site indiquée dans les flux rss
42
define('HBR_RSS_DESCRIPTIONSITE','www.tela-botanica.org, pour mutualiser l\'information sur les Herbiers.');    //Description du site indiquée dans les flux rss
43
define('HBR_RSS_LOGOSITE','http://www.tela-botanica.org/sites/commun/generique/images/logos/logo_tela_ombre.png');//Logo du site indiqué dans les flux rss
43
define('HBR_RSS_LOGOSITE','http://www.tela-botanica.org/sites/commun/generique/images/logos/logo_tela_ombre.png');//Logo du site indiqué dans 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('&', '&amp;', $GLOBALS['_HERBIER_']['url_rss']->getURL());
106
		$aso_infos['link'] = str_replace('&', '&amp;', $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: ', '', '$Date: 2006-10-31 12:39:23 $'))));
108
		$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 12:42:00 $'))));
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.3  2006/10/31 12:39:23  jp_milcent
-
 
191
* Modification de la gestion de la date des flux via les infos cvs.
-
 
192
*
190
* Revision 1.2  2006/10/31 12:38:12  jp_milcent
193
* Revision 1.2  2006/10/31 12:38:12  jp_milcent
191
* Début gestion des différents type de flux.
194
* Début gestion des différents type de flux.
192
*
195
*
193
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
196
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
194
* Début gestion des flux rss.
197
* Début gestion des flux rss.