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.7 2006-10-31 16:03:42 jp_milcent Exp $
|
22 |
// CVS : $Id: hb_rss.php,v 1.8 2006-11-07 17:28:21 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.7 $ $Date: 2006-10-31 16:03:42 $
|
32 |
*@version $Revision: 1.8 $ $Date: 2006-11-07 17:28:21 $
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
*/
|
34 |
*/
|
Line 35... |
Line 35... |
35 |
|
35 |
|
36 |
//==================================== LES FLUX RSS==================================
|
36 |
//==================================== LES FLUX RSS==================================
|
Line 85... |
Line 85... |
85 |
'ORDER BY DATE_DERNIERE_MODIF DESC';
|
85 |
'ORDER BY DATE_DERNIERE_MODIF DESC';
|
86 |
$url = HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID;
|
86 |
$url = HB_URL_COURANTE_CONSULTATION_FICHE_HERBIER_ID;
|
87 |
$aso_meta['titre'] = 'Flux des Organisations';
|
87 |
$aso_meta['titre'] = 'Flux des Organisations';
|
88 |
break;
|
88 |
break;
|
89 |
case 'collection' :
|
89 |
case 'collection' :
|
90 |
$requete = 'SELECT DISTINCT ID AS id, NOM_COLLECTION AS titre, '.
|
90 |
$requete = 'SELECT DISTINCT PARENT_ID AS id, NOM_COLLECTION AS titre, '.
|
91 |
'DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '.
|
91 |
'DATE_DERNIERE_MODIF AS date_derniere_modif, U_NAME AS nom, U_SURNAME AS prenom '.
|
92 |
'FROM HERBIERS_COLLECTION, '.HB_BDD_NOM_ANNUAIRE.'.annuaire_tela '.
|
92 |
'FROM HERBIERS_COLLECTION, '.HB_BDD_NOM_ANNUAIRE.'.annuaire_tela '.
|
93 |
'WHERE CE_MODIFIER_PAR = U_ID '.
|
93 |
'WHERE CE_MODIFIER_PAR = U_ID '.
|
94 |
'ORDER BY DATE_DERNIERE_MODIF DESC';
|
94 |
'ORDER BY DATE_DERNIERE_MODIF DESC';
|
95 |
$url = HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION_ID;
|
95 |
$url = HB_URL_COURANTE_CONSULTATION_FICHE_COLECTION_ID;
|
Line 164... |
Line 164... |
164 |
$aso_infos = array();
|
164 |
$aso_infos = array();
|
165 |
$aso_infos['title'] = 'Flux RSS : '.$flux;
|
165 |
$aso_infos['title'] = 'Flux RSS : '.$flux;
|
166 |
$GLOBALS['_HERBIER_']['rss']['url']->addQueryString('type', $flux);
|
166 |
$GLOBALS['_HERBIER_']['rss']['url']->addQueryString('type', $flux);
|
167 |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['rss']['url']->getURL());
|
167 |
$aso_infos['link'] = str_replace('&', '&', $GLOBALS['_HERBIER_']['rss']['url']->getURL());
|
168 |
$aso_infos['description'] = 'Flux RSS sur les '.$flux.'s.';
|
168 |
$aso_infos['description'] = 'Flux RSS sur les '.$flux.'s.';
|
169 |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-10-31 16:03:42 $'))));
|
169 |
$aso_infos['pubdate'] = strftime('%d %b %Y %H:%M:%S GMT', strtotime(str_replace('$', '', str_replace('Date: ', '', '$Date: 2006-11-07 17:28:21 $'))));
|
170 |
$tab_infos[] = $aso_infos;
|
170 |
$tab_infos[] = $aso_infos;
|
171 |
}
|
171 |
}
|
172 |
}
|
172 |
}
|
173 |
// En fonction, de l'appel depuis Papyrus ou pas nous affichons du XML ou du XHTML
|
173 |
// En fonction, de l'appel depuis Papyrus ou pas nous affichons du XML ou du XHTML
|
174 |
if (!defined('PAP_VERSION')) {
|
174 |
if (!defined('PAP_VERSION')) {
|
Line 255... |
Line 255... |
255 |
return $xml;
|
255 |
return $xml;
|
256 |
}
|
256 |
}
|
257 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
257 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
258 |
*
|
258 |
*
|
259 |
* $Log: not supported by cvs2svn $
|
259 |
* $Log: not supported by cvs2svn $
|
- |
|
260 |
* Revision 1.7 2006/10/31 16:03:42 jp_milcent
|
- |
|
261 |
* Correction rendu xhtml dans Papyrus.
|
- |
|
262 |
*
|
260 |
* Revision 1.6 2006/10/31 15:33:15 jp_milcent
|
263 |
* Revision 1.6 2006/10/31 15:33:15 jp_milcent
|
261 |
* Gestion d'un rendu XHTML pour Papyrus.
|
264 |
* Gestion d'un rendu XHTML pour Papyrus.
|
262 |
*
|
265 |
*
|
263 |
* Revision 1.5 2006/10/31 15:06:44 jp_milcent
|
266 |
* Revision 1.5 2006/10/31 15:06:44 jp_milcent
|
264 |
* Fin de gestion des flux rss.
|
267 |
* Fin de gestion des flux rss.
|