Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 173 Rev 175
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.3                                                                                      |
4
// | PHP version 4.3                                                                                      |
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 file is part of eFlore-consultation.                                                            |
8
// | This file is part of eFlore-consultation.                                                            |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: eflore_config.inc.php,v 1.10 2005-06-30 15:24:26 jpm Exp $
24
// CVS : $Id: eflore_config.inc.php,v 1.11 2005-07-01 19:02:11 jp_milcent Exp $
25
/**
25
/**
26
* Fichier de configuration d'eFlore.
26
* Fichier de configuration d'eFlore.
27
*
27
*
28
* Fichier contenant des constantes et des variables globales permettant de configurer eFlore-consultation.
28
* Fichier contenant des constantes et des variables globales permettant de configurer eFlore-consultation.
29
*
29
*
30
*@package eflore
30
*@package eflore
31
*@subpackage configuration
31
*@subpackage configuration
32
//Auteur original :
32
//Auteur original :
33
*@author        Linda ANGAMA<linda_angama@yahoo.fr>
33
*@author        Linda ANGAMA<linda_angama@yahoo.fr>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.10 $ $Date: 2005-06-30 15:24:26 $
37
*@version       $Revision: 1.11 $ $Date: 2005-07-01 19:02:11 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
 
44
 
45
 
45
 
46
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
47
// |                                            CORPS du PROGRAMME                                        |
47
// |                                            CORPS du PROGRAMME                                        |
48
// +------------------------------------------------------------------------------------------------------+
48
// +------------------------------------------------------------------------------------------------------+
49
 
49
 
50
/** Definition de la variable globale d'eFlore.*/
50
/** Definition de la variable globale d'eFlore.*/
51
$GLOBALS['_EFLORE_'] = array();
51
$GLOBALS['_EFLORE_'] = array();
52
 
52
 
53
// +------------------------------------------------------------------------------------------------------+
53
// +------------------------------------------------------------------------------------------------------+
54
// Définition des chemins de fichiers.
54
// Définition des chemins de fichiers.
55
/** Constante stockant le chemin du dossier contenant les images de plantes.*/
55
/** Constante stockant le chemin du dossier contenant les images de plantes.*/
56
define('EFLORE_CHEMIN_IMG_PLTE', 'sites/eflore/generique/images/photos_plte/');
56
define('EFLORE_CHEMIN_IMG_PLTE', 'sites/eflore/generique/images/photos_plte/');
57
/** Constante stockant le chemin du dossier contenant les fichiers rdf.*/
57
/** Constante stockant le chemin du dossier contenant les fichiers rdf.*/
58
define('EFLORE_CHEMIN_RDF', 'sites/eflore/generique/images/photos_plte/');
58
define('EFLORE_CHEMIN_RDF', 'sites/eflore/generique/images/photos_plte/');
59
/** Constante stockant l'URL de base de l'application recherche de plante.*/
59
/** Constante stockant l'URL de base de l'application recherche de plante.*/
60
define('EFLORE_CHEMIN_APPLI', GEN_CHEMIN_CLIENT.'eflore/');
60
define('EFLORE_CHEMIN_APPLI', GEN_CHEMIN_CLIENT.'eflore/');
61
/** Constante stockant le chemin vers le dossier bibliothèque.*/
61
/** Constante stockant le chemin vers le dossier bibliothèque.*/
62
define('EFLORE_CHEMIN_BIBLIO', EFLORE_CHEMIN_APPLI.'bibliotheque/');
62
define('EFLORE_CHEMIN_BIBLIO', EFLORE_CHEMIN_APPLI.'bibliotheque/');
63
/** Constante stockant le chemin vers le dossier présentation.*/
63
/** Constante stockant le chemin vers le dossier présentation.*/
64
define('EFLORE_CHEMIN_PRESENTATION', EFLORE_CHEMIN_APPLI.'presentations/');
64
define('EFLORE_CHEMIN_PRESENTATION', EFLORE_CHEMIN_APPLI.'presentations/');
65
/** Constante stockant le chemin vers le dossier styles.*/
65
/** Constante stockant le chemin vers le dossier styles.*/
66
define('EFLORE_CHEMIN_STYLE', EFLORE_CHEMIN_PRESENTATION.'styles/');
66
define('EFLORE_CHEMIN_STYLE', EFLORE_CHEMIN_PRESENTATION.'styles/');
67
 
67
 
68
/** Constante stockant l'URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
68
/** Constante stockant l'URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
69
$GLOBALS['_EFLORE_']['url'] = $GLOBALS['_GEN_commun']['url'];
69
$GLOBALS['_EFLORE_']['url'] = $GLOBALS['_GEN_commun']['url'];
70
$GLOBALS['_EFLORE_']['url_base'] = $GLOBALS['_GEN_commun']['url'];
70
$GLOBALS['_EFLORE_']['url_base'] = $GLOBALS['_GEN_commun']['url'];
71
 
71
 
72
// +------------------------------------------------------------------------------------------------------+
72
// +------------------------------------------------------------------------------------------------------+
73
// Définition des urls du serveur de ressources
73
// Définition des urls du serveur de ressources
74
/** Constante stockant l'url de base du serveur eRibosome.*/
74
/** Constante stockant l'url de base du serveur eRibosome.*/
75
define('EFLORE_URL_ERIBO', 'http://eflore-test.tela-botanica.org/serveurXML/eribo_serveur.php');
75
define('EFLORE_URL_ERIBO', 'http://eflore-test.tela-botanica.org/serveurXML/eribo_serveur.php');
76
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom scientifique.*/
76
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom scientifique.*/
77
define('EFLORE_URL_LISTE_NOM_LATIN', EFLORE_URL_ERIBO.'?cle=recherche_latin&radical=%s');
77
define('EFLORE_URL_LISTE_NOM_LATIN', EFLORE_URL_ERIBO.'?cle=recherche_latin&radical=%s');
78
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom scientifique pour un projet donné.*/
78
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom scientifique pour un projet donné.*/
79
define('EFLORE_URL_LISTE_NOM_LATIN_REF', EFLORE_URL_ERIBO.'?cle=recherche_latin&radical=%s&nvp=%s');
79
define('EFLORE_URL_LISTE_NOM_LATIN_REF', EFLORE_URL_ERIBO.'?cle=recherche_latin&radical=%s&nvp=%s');
80
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom vernaculaire.*/
80
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom vernaculaire.*/
81
define('EFLORE_URL_LISTE_NOM_VERNA', EFLORE_URL_ERIBO.'?cle=recherche_verna&radical=%s');
81
define('EFLORE_URL_LISTE_NOM_VERNA', EFLORE_URL_ERIBO.'?cle=recherche_verna&radical=%s');
82
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom vernaculaire pour un projet donné.*/
82
/** Constante stockant l'url pour obtenir une liste de noms à partir d'un radical de nom vernaculaire pour un projet donné.*/
83
define('EFLORE_URL_LISTE_NOM_VERNA_REF', EFLORE_URL_ERIBO.'?cle=recherche_verna&radical=%s&nvp=%s');
83
define('EFLORE_URL_LISTE_NOM_VERNA_REF', EFLORE_URL_ERIBO.'?cle=recherche_verna&radical=%s&nvp=%s');
84
/** Constante stockant l'url pour obtenir une synthèse sur un nom scientifique.*/
84
/** Constante stockant l'url pour obtenir une synthèse sur un nom scientifique.*/
85
define('EFLORE_URL_FICHE_SYNTHESE', EFLORE_URL_ERIBO.'?cle=fiche_synthese&nn=%s');
85
define('EFLORE_URL_FICHE_SYNTHESE', EFLORE_URL_ERIBO.'?cle=fiche_synthese&nn=%s');
86
/** Constante stockant l'url pour obtenir une synthèse sur un nom scientifique pour un projet donné.*/
86
/** Constante stockant l'url pour obtenir une synthèse sur un nom scientifique pour un projet donné.*/
87
define('EFLORE_URL_FICHE_SYNTHESE_PROJET', EFLORE_URL_ERIBO.'?cle=fiche_synthese&nn=%s&nvp=%s');
87
define('EFLORE_URL_FICHE_SYNTHESE_PROJET', EFLORE_URL_ERIBO.'?cle=fiche_synthese&nn=%s&nvp=%s');
88
/** Constante stockant l'url pour obtenir un formulaire sur les noms.*/
88
/** Constante stockant l'url pour obtenir un formulaire sur les noms.*/
89
define('EFLORE_URL_FORM_NOM', EFLORE_URL_ERIBO.'?cle=form_nom');
89
define('EFLORE_URL_FORM_NOM', EFLORE_URL_ERIBO.'?cle=form_nom');
90
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
90
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
91
define('EFLORE_URL_FORM_TAXON', EFLORE_URL_ERIBO.'?cle=form_taxon');
91
define('EFLORE_URL_FORM_TAXON', EFLORE_URL_ERIBO.'?cle=form_taxon');
92
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
92
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
93
define('EFLORE_URL_FORM_TAXON_ALPHABET', EFLORE_URL_ERIBO.'?cle=form_taxon&nvp=%s&rg=%s&od=%s&le=%s');
93
define('EFLORE_URL_FORM_TAXON_ALPHABET', EFLORE_URL_ERIBO.'?cle=form_taxon&nvp=%s&rg=%s&od=%s&le=%s');
94
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
94
/** Constante stockant l'url pour obtenir un formulaire sur les projets taxo.*/
95
define('EFLORE_URL_LISTE_TAXON', EFLORE_URL_ERIBO.'?cle=recherche_taxon&nvp=%s&rg=%s&od=%s&le=%s');
95
define('EFLORE_URL_LISTE_TAXON', EFLORE_URL_ERIBO.'?cle=recherche_taxon&nvp=%s&rg=%s&od=%s&le=%s');
96
/** Constante stockant l'url pour obtenir une liste des taxons fils d'un taxon.*/
96
/** Constante stockant l'url pour obtenir une liste des taxons fils d'un taxon.*/
97
define('EFLORE_URL_LISTE_CLASSIF', EFLORE_URL_ERIBO.'?cle=recherche_classif&nvp=%s&nt=%s');
97
define('EFLORE_URL_LISTE_CLASSIF', EFLORE_URL_ERIBO.'?cle=recherche_classif&nvp=%s&nt=%s');
98
/** Constante stockant l'url pour obtenir des infos sur le taxon supérieur dans la classification.*/
98
/** Constante stockant l'url pour obtenir des infos sur le taxon supérieur dans la classification.*/
99
define('EFLORE_URL_TAXON_SUP', EFLORE_URL_ERIBO.'?cle=recherche_taxon_sup&nt=%s&nvp=%s');
99
define('EFLORE_URL_INFO_TAXON_SUP', EFLORE_URL_ERIBO.'?cle=info_taxon_sup&nt=%s&nvp=%s');
-
 
100
/** Constante stockant l'url pour obtenir des infos sur un nom latin.*/
-
 
101
define('EFLORE_URL_INFO_NOM_LATIN', EFLORE_URL_ERIBO.'?cle=info_nom_latin&nn=%s');
100
 
102
 
101
// +------------------------------------------------------------------------------------------------------+
103
// +------------------------------------------------------------------------------------------------------+
102
// Définition de la langue
104
// Définition de la langue
103
/** Constante stockant la langue utilisée pour l'application.*/
105
/** Constante stockant la langue utilisée pour l'application.*/
104
define('EFLORE_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2));
106
define('EFLORE_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2));
105
 
107
 
106
// +------------------------------------------------------------------------------------------------------+
108
// +------------------------------------------------------------------------------------------------------+
107
// Définition de constante spécifiques
109
// Définition de constante spécifiques
108
define('EFLORE_RECH_NOM_FORM_TAB', '1');
110
define('EFLORE_RECH_NOM_FORM_TAB', '1');
109
define('EFLORE_RECH_NOM_FORM_NOM_SIZE', '45');
111
define('EFLORE_RECH_NOM_FORM_NOM_SIZE', '45');
110
define('EFLORE_RECH_NOM_FORM_NOM_MAXLENGTH', '255');
112
define('EFLORE_RECH_NOM_FORM_NOM_MAXLENGTH', '255');
111
 
113
 
112
// +------------------------------------------------------------------------------------------------------+
114
// +------------------------------------------------------------------------------------------------------+
113
// Définition des variables temporairement utilisées pour les essais de l'application.
115
// Définition des variables temporairement utilisées pour les essais de l'application.
114
define('N_TAXON', 3288);
116
define('N_TAXON', 3288);
115
define('N_VERSION_PROJET_TAXON', 1);
117
define('N_VERSION_PROJET_TAXON', 1);
116
define('CONTRIBUTEUR', 4);
118
define('CONTRIBUTEUR', 4);
117
 
119
 
118
/* +--Fin du code ----------------------------------------------------------------------------------------+
120
/* +--Fin du code ----------------------------------------------------------------------------------------+
119
*
121
*
120
* $Log: not supported by cvs2svn $
122
* $Log: not supported by cvs2svn $
-
 
123
* Revision 1.10  2005/06/30 15:24:26  jpm
-
 
124
* Début des modifications pour ajout de l'arborescence de la classif.
-
 
125
*
121
* Revision 1.9  2005/06/09 18:10:25  jpm
126
* Revision 1.9  2005/06/09 18:10:25  jpm
122
* Début gestion des sessions dans la recherche nomenclaturale.
127
* Début gestion des sessions dans la recherche nomenclaturale.
123
*
128
*
124
* Revision 1.8  2005/02/15 13:33:25  jpm
129
* Revision 1.8  2005/02/15 13:33:25  jpm
125
* Suppression des constantes les infos de connexion à la base de données. Inutile puisque l'on utilise le serveur eRibo.
130
* Suppression des constantes les infos de connexion à la base de données. Inutile puisque l'on utilise le serveur eRibo.
126
*
131
*
127
* Revision 1.7  2005/02/15 13:01:25  jpm
132
* Revision 1.7  2005/02/15 13:01:25  jpm
128
* Ajout de constantes.
133
* Ajout de constantes.
129
*
134
*
130
* Revision 1.6  2005/01/28 19:49:26  jpm
135
* Revision 1.6  2005/01/28 19:49:26  jpm
131
* Ajout de nouvelles constantes pour les url entre autres.
136
* Ajout de nouvelles constantes pour les url entre autres.
132
*
137
*
133
* Revision 1.5  2004/12/23 20:04:59  jpm
138
* Revision 1.5  2004/12/23 20:04:59  jpm
134
* Début prise en maine eflore-consultation.
139
* Début prise en maine eflore-consultation.
135
*
140
*
136
* Revision 1.4  2004/08/17 11:22:45  linda
141
* Revision 1.4  2004/08/17 11:22:45  linda
137
* définition du chemin de l'application et des constantes nécessaires pour le fonctionnement de l'appli eflore mais non encore disponibles via le site test
142
* définition du chemin de l'application et des constantes nécessaires pour le fonctionnement de l'appli eflore mais non encore disponibles via le site test
138
*
143
*
139
* Revision 1.3  2004/06/22 12:25:02  linda
144
* Revision 1.3  2004/06/22 12:25:02  linda
140
* modifications des paramètre de connexion à la base de données
145
* modifications des paramètre de connexion à la base de données
141
*
146
*
142
* Revision 1.2  2004/06/17 15:21:37  linda
147
* Revision 1.2  2004/06/17 15:21:37  linda
143
* ajout du fichier initial
148
* ajout du fichier initial
144
*
149
*
145
* +-- Fin du code ----------------------------------------------------------------------------------------+
150
* +-- Fin du code ----------------------------------------------------------------------------------------+
146
*/
151
*/
147
?>
152
?>