Subversion Repositories Applications.bazar

Rev

Rev 319 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 319 Rev 442
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | 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.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | 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,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
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: bazarRSS.php,v 1.8 2007-10-17 08:23:00 alexandre_tb Exp $
22
// CVS : $Id: bazarRSS.php,v 1.8 2007-10-17 08:23:00 alexandre_tb Exp $
23
/**
23
/**
24
* Générateur de flux RSS à partir du bazar 
24
* Générateur de flux RSS à partir du bazar 
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        Alexandre Granier <alexandre@tela-botanica.org>
29
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*
30
*
31
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Revision: 1.8 $
32
*@version       $Revision: 1.8 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
// |                                            ENTETE du PROGRAMME                                       |
37
// |                                            ENTETE du PROGRAMME                                       |
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
 
39
 
40
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
40
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
41
include_once 'bibliotheque/bazar.fonct.rss.php'; //fichier des fonctions RSS de Bazar
41
include_once 'bibliotheque/bazar.fonct.rss.php'; //fichier des fonctions RSS de Bazar
42
 
42
 
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            CORPS DU PROGRAMME                                        |
44
// |                                            CORPS DU PROGRAMME                                        |
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
 
46
 
47
if (isset($_GET['annonce'])) { 
47
if (isset($_GET['annonce'])) { 
48
	$annonce=$_GET['annonce'];
48
	$annonce=$_GET['annonce'];
49
}
49
}
50
else {
-
 
51
	$annonce='';
-
 
52
}
-
 
53
 
50
 
54
if (isset($_GET['categorie_nature'])) { 
51
if (isset($_GET['categorie_nature'])) { 
55
	$categorie_nature=$_GET['categorie_nature'];
52
	$categorie_nature=$_GET['categorie_nature'];
56
}
53
}
57
else {
54
else {
58
	$categorie_nature='';
55
	$categorie_nature='';
59
}
56
}
60
 
57
 
61
if (isset($_GET['nbitem'])) { 
58
if (isset($_GET['nbitem'])) { 
62
	$nbitem=$_GET['nbitem'];
59
	$nbitem=$_GET['nbitem'];
63
}
60
}
64
else {
61
else {
65
	$nbitem='';
62
	$nbitem='';
66
}
63
}
67
 
64
 
68
if (isset($_GET['emetteur'])) { 
65
if (isset($_GET['emetteur'])) { 
69
	$emetteur=$_GET['emetteur'];
66
	$emetteur=$_GET['emetteur'];
70
}
67
}
71
else {
68
else {
72
	$emetteur='';
69
	$emetteur='';
73
}
70
}
74
 
71
 
75
if (isset($_GET['valide'])) { 
72
if (isset($_GET['valide'])) { 
76
	$valide=$_GET['valide'];
73
	$valide=$_GET['valide'];
77
}
74
}
78
else {
75
else {
79
	$valide=1;
76
	$valide=1;
80
}
77
}
81
 
78
 
82
if (isset($_GET['sql'])) { 
79
if (isset($_GET['sql'])) { 
83
	$requeteSQL=$_GET['sql'];
80
	$requeteSQL=$_GET['sql'];
84
}
81
}
85
else {
82
else {
86
	$requeteSQL='';
83
	$requeteSQL='';
87
}
84
}
88
// Gestion de la langue
85
// Gestion de la langue
89
if (isset($_GET['langue'])) {
86
if (isset($_GET['langue'])) {
90
	$requeteWhere = ' bn_ce_i18n like "'.$_GET['langue'].'%" and ';
87
	$requeteWhere = ' bn_ce_i18n like "'.$_GET['langue'].'%" and ';
91
} else {
88
} else {
92
	$requeteWhere = '';
89
	$requeteWhere = '';
93
}
90
}
94
echo html_entity_decode(gen_RSS($annonce, $nbitem, $emetteur, $valide, $requeteSQL, '', $requeteWhere, $categorie_nature));
91
echo html_entity_decode(gen_RSS($annonce, $nbitem, $emetteur, $valide, $requeteSQL, '', $requeteWhere, $categorie_nature));
95
 
92
 
96
 
93
 
97
/* +--Fin du code ----------------------------------------------------------------------------------------+
94
/* +--Fin du code ----------------------------------------------------------------------------------------+
98
*
95
*
99
* $Log: not supported by cvs2svn $
96
* $Log: not supported by cvs2svn $
100
* Revision 1.7  2007-04-11 08:30:12  neiluj
97
* Revision 1.7  2007-04-11 08:30:12  neiluj
101
* remise en état du CVS...
98
* remise en état du CVS...
102
*
99
*
103
* Revision 1.4  2006/05/19 13:54:32  florian
100
* Revision 1.4  2006/05/19 13:54:32  florian
104
* stabilisation du moteur de recherche, corrections bugs, lien recherche avancee
101
* stabilisation du moteur de recherche, corrections bugs, lien recherche avancee
105
*
102
*
106
* Revision 1.3  2005/07/21 19:03:12  florian
103
* Revision 1.3  2005/07/21 19:03:12  florian
107
* nouveautés bazar: templates fiches, correction de bugs, ...
104
* nouveautés bazar: templates fiches, correction de bugs, ...
108
*
105
*
109
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
106
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
110
* Import initial de Bazar
107
* Import initial de Bazar
111
*
108
*
112
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
109
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
113
* Import initial
110
* Import initial
114
*
111
*
115
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
112
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
116
* import de la nouvelle version
113
* import de la nouvelle version
117
*
114
*
118
* Revision 1.3  2004/07/08 15:06:48  alex
115
* Revision 1.3  2004/07/08 15:06:48  alex
119
* modification de la date
116
* modification de la date
120
*
117
*
121
*
118
*
122
* +-- Fin du code ----------------------------------------------------------------------------------------+
119
* +-- Fin du code ----------------------------------------------------------------------------------------+
123
*/
120
*/
124
 
121
 
125
?>
122
?>