Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 14 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 15
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: herbier_rss.php,v 1.5 2006-10-31 15:33:15 jp_milcent Exp $
22
// CVS : $Id: herbier_rss.php,v 1.6 2006-10-31 16:03:42 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.5 $
32
*@version       $Revision: 1.6 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
// |                                            ENTETE du PROGRAMME                                       |
37
// |                                            ENTETE du PROGRAMME                                       |
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// Nous spécifions l'application à appeler.
39
// Nous spécifions l'application à appeler.
40
if (!isset($_REQUEST['appli'])) {
40
if (!isset($_REQUEST['appli'])) {
41
    $_REQUEST['appli'] = 'hb_rss';
41
    $_REQUEST['appli'] = 'hb_rss';
42
}
42
}
-
 
43
// Gestion de l'url d'appel des flux hors de Papyrus
-
 
44
// TODO : voir pourquoi le contenu de $GLOBALS['_HERBIER_']['rss']['url'] est vide dans hb_rss.php 
-
 
45
$chemin = str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname(realpath(__FILE__)).DIRECTORY_SEPARATOR);
-
 
46
$GLOBALS['_HERBIER_']['rss']['url'] = 'http://'.$_SERVER['HTTP_HOST'].$chemin.basename(__FILE__);
43
 
47
 
44
// +------------------------------------------------------------------------------------------------------+
48
// +------------------------------------------------------------------------------------------------------+
45
// |                                            CORPS du PROGRAMME                                        |
49
// |                                            CORPS du PROGRAMME                                        |
46
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
47
/** Inclusion du fichier principal de Herbier.*/
51
/** Inclusion du fichier principal de Herbier.*/
48
require_once 'herbier.php';
52
require_once 'herbier.php';
49
if (!defined('PAP_VERSION')) {
53
if (!defined('PAP_VERSION')) {
50
	echo afficherContenuCorps();
54
	echo afficherContenuCorps();
51
}
55
}
52
/* +--Fin du code ----------------------------------------------------------------------------------------+
56
/* +--Fin du code ----------------------------------------------------------------------------------------+
53
*
57
*
54
* $Log: not supported by cvs2svn $
58
* $Log: not supported by cvs2svn $
-
 
59
* Revision 1.5  2006/10/31 15:33:15  jp_milcent
-
 
60
* Gestion d'un rendu XHTML pour Papyrus.
-
 
61
*
55
* Revision 1.4  2006/10/31 15:19:15  jp_milcent
62
* Revision 1.4  2006/10/31 15:19:15  jp_milcent
56
* Amélioration de la gestion des Herbiers hors de Papyrus.
63
* Amélioration de la gestion des Herbiers hors de Papyrus.
57
*
64
*
58
* Revision 1.3  2006/10/31 15:06:43  jp_milcent
65
* Revision 1.3  2006/10/31 15:06:43  jp_milcent
59
* Fin de gestion des flux rss.
66
* Fin de gestion des flux rss.
60
*
67
*
61
* Revision 1.2  2006/10/31 10:31:36  jp_milcent
68
* Revision 1.2  2006/10/31 10:31:36  jp_milcent
62
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
69
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
63
*
70
*
64
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
71
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
65
* Début gestion des flux rss.
72
* Début gestion des flux rss.
66
*
73
*
67
*
74
*
68
* +-- Fin du code ----------------------------------------------------------------------------------------+
75
* +-- Fin du code ----------------------------------------------------------------------------------------+
69
*/
76
*/
70
 
77
 
71
?>
78
?>