1 |
<?php
|
1 |
<?php
|
2 |
<?php
|
- |
|
3 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
4 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// | PHP version 4.1 |
|
4 |
// | PHP version 4.1 |
|
6 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
8 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
9 |
// | This library is free software; you can redistribute it and/or |
|
8 |
// | This library is free software; you can redistribute it and/or |
|
10 |
// | modify it under the terms of the GNU Lesser General Public |
|
9 |
// | modify it under the terms of the GNU Lesser General Public |
|
11 |
// | License as published by the Free Software Foundation; either |
|
10 |
// | License as published by the Free Software Foundation; either |
|
12 |
// | version 2.1 of the License, or (at your option) any later version. |
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
13 |
// | |
|
12 |
// | |
|
14 |
// | This library is distributed in the hope that it will be useful, |
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
15 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
17 |
// | Lesser General Public License for more details. |
|
16 |
// | Lesser General Public License for more details. |
|
18 |
// | |
|
17 |
// | |
|
19 |
// | 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 |
|
20 |
// | 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 |
|
21 |
// | 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 |
|
22 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// CVS : $Id: projetRSS.php,v 1.1 2005-10-25 13:50:34 alexandre_tb Exp $
|
22 |
// CVS : $Id: projetRSS.php,v 1.2 2005-10-28 07:34:32 florian Exp $
|
24 |
/**
|
23 |
/**
|
25 |
* Générateur de flux RSS à partir du bazar
|
24 |
* Générateur de flux RSS à partir du bazar
|
26 |
*
|
25 |
*
|
27 |
*@package bazar
|
26 |
*@package bazar
|
28 |
//Auteur original :
|
27 |
//Auteur original :
|
29 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
28 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*
|
29 |
*
|
31 |
*@copyright Tela-Botanica 2000-2004
|
30 |
*@copyright Tela-Botanica 2000-2004
|
32 |
*@version $Revision: 1.1 $
|
31 |
*@version $Revision: 1.2 $
|
33 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
34 |
*/
|
33 |
*/
|
35 |
|
34 |
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// | ENTETE du PROGRAMME |
|
36 |
// | ENTETE du PROGRAMME |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
|
38 |
|
40 |
include_once 'configuration/projet.inc.php'; //fichier de configuration de Bazar
|
39 |
include_once 'configuration/projet.inc.php'; //fichier de configuration de Bazar
|
41 |
include_once 'bibliotheque/projet.fonct.rss.php'; //fichier des fonctions RSS de Bazar
|
40 |
include_once 'bibliotheque/projet.fonct.rss.php'; //fichier des fonctions RSS de Bazar
|
42 |
|
41 |
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// | CORPS DU PROGRAMME |
|
43 |
// | CORPS DU PROGRAMME |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
|
45 |
|
47 |
if (isset($_GET['domaine'])) {
|
46 |
if (isset($_GET['domaine'])) {
|
48 |
$domaine=$_GET['domaine'];
|
47 |
$domaine=$_GET['domaine'];
|
49 |
}
|
48 |
}
|
50 |
else {
|
49 |
else {
|
51 |
$domaine='';
|
50 |
$domaine='';
|
52 |
}
|
51 |
}
|
53 |
if (isset($_GET['nbitem'])) {
|
52 |
if (isset($_GET['nbitem'])) {
|
54 |
$nbitem=$_GET['nbitem'];
|
53 |
$nbitem=$_GET['nbitem'];
|
55 |
}
|
54 |
}
|
56 |
else {
|
55 |
else {
|
57 |
$nbitem='';
|
56 |
$nbitem='';
|
58 |
}
|
57 |
}
|
59 |
if (isset($_GET['liste'])) {
|
58 |
if (isset($_GET['liste'])) {
|
60 |
$liste=$_GET['liste'];
|
59 |
$liste=$_GET['liste'];
|
61 |
}
|
60 |
}
|
62 |
else {
|
61 |
else {
|
63 |
$liste='';
|
62 |
$liste='';
|
64 |
}
|
63 |
}
|
65 |
|
64 |
|
66 |
echo html_entity_decode(gen_RSS($domaine, $nbitem, $liste));
|
65 |
echo html_entity_decode(gen_RSS($domaine, $nbitem, $liste));
|
67 |
|
66 |
|
68 |
|
67 |
|
69 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
68 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
70 |
*
|
69 |
*
|
71 |
* $Log: not supported by cvs2svn $
|
70 |
* $Log: not supported by cvs2svn $
|
- |
|
71 |
* Revision 1.1 2005/10/25 13:50:34 alexandre_tb
|
- |
|
72 |
* version initiale
|
- |
|
73 |
*
|
72 |
*
|
74 |
*
|
73 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
75 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
74 |
*/
|
76 |
*/
|
75 |
?>
|
77 |
?>
|