Subversion Repositories eFlore/Archives.herbiers

Rev

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

Rev 8 Rev 12
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.2 2006-10-31 10:31:36 jp_milcent Exp $
22
// CVS : $Id: herbier_rss.php,v 1.3 2006-10-31 15:06:43 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.2 $
32
*@version       $Revision: 1.3 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
// |                                            ENTETE du PROGRAMME                                       |
37
// |                                            ENTETE du PROGRAMME                                       |
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// Pour une utilisation hors de Papyrus
39
// Pour une utilisation hors de Papyrus
40
if (!defined('PAP_VERSION')) {
40
if (!defined('PAP_VERSION')) {
41
	// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments. (compatible XHTML strict)
41
	// Redéfini le séparateur utilisé lorsque PHP génère des URLs pour séparer les arguments. (compatible XHTML strict)
42
	ini_set('arg_separator.output', '&amp;');
42
	ini_set('arg_separator.output', '&amp;');
43
	define('GEN_SEP', DIRECTORY_SEPARATOR);
43
	define('GEN_SEP', DIRECTORY_SEPARATOR);
44
	define('PAP_CHEMIN_RACINE', dirname(realpath(__FILE__)).GEN_SEP.'..'.GEN_SEP.'..'.GEN_SEP);
44
	define('PAP_CHEMIN_RACINE', dirname(realpath(__FILE__)).GEN_SEP.'..'.GEN_SEP.'..'.GEN_SEP);
45
	define('GEN_CHEMIN_API', PAP_CHEMIN_RACINE.'api'.GEN_SEP);
45
	define('GEN_CHEMIN_API', PAP_CHEMIN_RACINE.'api'.GEN_SEP);
46
	define('GEN_CHEMIN_CLIENT', PAP_CHEMIN_RACINE.'client'.GEN_SEP);
46
	define('GEN_CHEMIN_CLIENT', PAP_CHEMIN_RACINE.'client'.GEN_SEP);
47
	define('PAP_CHEMIN_API_PEAR', GEN_CHEMIN_API.'pear'.GEN_SEP);
47
	define('PAP_CHEMIN_API_PEAR', GEN_CHEMIN_API.'pear'.GEN_SEP);
-
 
48
	define('HB_URL', 'http://testv4.tela-botanica.org/page:herbiers_recherche');
48
	$GLOBALS['_GEN_commun']['i18n'] = 'fr';
49
	$GLOBALS['_GEN_commun']['i18n'] = 'fr';
49
	$GLOBALS['_DEBOGAGE_'] = '';
50
	$GLOBALS['_DEBOGAGE_'] = '';
50
	//session_name('herbier_rss_beta');
51
	//session_name('herbier_rss_beta');
51
	//session_start();
52
	//session_start();
52
	//$expiration = 60*60*60;
53
	//$expiration = 60*60*60;
53
	//setcookie(session_name(),session_id(), time()+$expiration, '/');
54
	//setcookie(session_name(),session_id(), time()+$expiration, '/');
54
}
55
}
55
 
56
 
56
// Nous spécifions l'application à appeler.
57
// Nous spécifions l'application à appeler.
57
if (!isset($_REQUEST['appli'])) {
58
if (!isset($_REQUEST['appli'])) {
58
    $_REQUEST['appli'] = 'hb_rss';
59
    $_REQUEST['appli'] = 'hb_rss';
59
}
60
}
60
 
61
 
61
// +------------------------------------------------------------------------------------------------------+
62
// +------------------------------------------------------------------------------------------------------+
62
// |                                            CORPS du PROGRAMME                                        |
63
// |                                            CORPS du PROGRAMME                                        |
63
// +------------------------------------------------------------------------------------------------------+
64
// +------------------------------------------------------------------------------------------------------+
64
/** Inclusion du fichier principal de Herbier.*/
65
/** Inclusion du fichier principal de Herbier.*/
65
require_once 'herbier.php';
66
require_once 'herbier.php';
66
echo afficherContenuCorps();
67
echo afficherContenuCorps();
67
 
68
 
68
/* +--Fin du code ----------------------------------------------------------------------------------------+
69
/* +--Fin du code ----------------------------------------------------------------------------------------+
69
*
70
*
70
* $Log: not supported by cvs2svn $
71
* $Log: not supported by cvs2svn $
-
 
72
* Revision 1.2  2006/10/31 10:31:36  jp_milcent
-
 
73
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
-
 
74
*
71
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
75
* Revision 1.1  2006/10/30 18:57:17  jp_milcent
72
* Début gestion des flux rss.
76
* Début gestion des flux rss.
73
*
77
*
74
*
78
*
75
* +-- Fin du code ----------------------------------------------------------------------------------------+
79
* +-- Fin du code ----------------------------------------------------------------------------------------+
76
*/
80
*/
77
 
81
 
78
?>
82
?>