Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jp_milcent 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Herbier.                                                                        |
9
// |                                                                                                      |
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                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
12 jp_milcent 24
// CVS : $Id: hb_config.inc.php,v 1.5 2006-10-31 15:06:44 jp_milcent Exp $
2 jp_milcent 25
/**
26
* Configuration générale des applications de Herbier
27
*
28
* Ce fichier permet de stocker les valeurs de configuration communes aux différentes applications
29
* constituant Herbier.
30
*
31
*@package Herbier
32
*@subpackage Configuration
33
//Auteur original :
34
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
35
//Autres auteurs :
36
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
37
*@copyright     Tela-Botanica 2000-2005
12 jp_milcent 38
*@version       $Revision: 1.5 $ $Date: 2006-10-31 15:06:44 $
2 jp_milcent 39
// +------------------------------------------------------------------------------------------------------+
40
*/
41
 
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
45
 
12 jp_milcent 46
// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués
47
setlocale(LC_CTYPE, "fr_FR");
48
 
2 jp_milcent 49
// +------------------------------------------------------------------------------------------------------+
50
/** Definition de la variable globale de Herbier.*/
51
$GLOBALS['_HERBIER_'] = array();
52
/** Variable globale stockant une URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
53
$GLOBALS['_HERBIER_']['url'] =& $GLOBALS['_GEN_commun']['url'];
54
/** Variable globale stockant l'objet Pear d'identification.*/
55
$GLOBALS['_HERBIER_']['auth'] =& $GLOBALS['_GEN_commun']['pear_auth'];
56
/** Variable globale stockant l'objet Pear DB.*/
57
$GLOBALS['_HERBIER_']['bdd'] = null;
58
 
59
// +------------------------------------------------------------------------------------------------------+
60
// Définition de la langue
61
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
62
define('HB_I18N', $GLOBALS['_GEN_commun']['i18n']);
63
 
64
// +------------------------------------------------------------------------------------------------------+
65
// Définition des arguments de l'appel de l'application
66
/** Constante stockant la demande d'authentification pour accéder aux applications.*/
67
define('HB_ARGUMENT_AUTH', 0);
68
if (!isset($GLOBALS['_GEN_commun']['info_application']->application)) {
69
    $GLOBALS['_GEN_commun']['info_application']->application = $_REQUEST['appli'];
70
}
71
define('HB_ARGUMENT_APPLI', $GLOBALS['_GEN_commun']['info_application']->application);
72
 
73
// +------------------------------------------------------------------------------------------------------+
74
// Définition des chemins de fichiers.
75
/** Constante stockant le chemin du dossier contenant l'API partagée.*/
76
define('HB_CHEMIN_API', GEN_CHEMIN_API);
3 jp_milcent 77
/** Constante stockant le chemin du dossier contenant l'API JPGraph.*/
78
define('HB_CHEMIN_API_PEAR', PAP_CHEMIN_API_PEAR);
2 jp_milcent 79
/** Constante stockant le chemin du dossier contenant l'API Débogage.*/
80
define('HB_CHEMIN_API_DEBOGAGE', HB_CHEMIN_API.'debogage'.GEN_SEP);
81
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
82
define('HB_CHEMIN_API_FRAGMENTEUR', HB_CHEMIN_API.'fragmenteur'.GEN_SEP);
83
/** Constante stockant le chemin du dossier contenant l'API Formulaire.*/
84
define('HB_CHEMIN_API_FORMULAIRE', HB_CHEMIN_API.'formulaire'.GEN_SEP);
85
/** Constante stockant le chemin du dossier contenant l'API Date.*/
86
define('HB_CHEMIN_API_FORM', HB_CHEMIN_API.'formulaire'.GEN_SEP);
87
 
88
/** Constante stockant le chemin du dossier contenant l'API Date.*/
89
define('HB_CHEMIN_API_DATE', HB_CHEMIN_API.'date'.GEN_SEP);
90
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
91
define('HB_CHEMIN_API_VOIRAUSSI', HB_CHEMIN_API.'voiraussi'.GEN_SEP);
92
 
93
/** Constante stockant le chemin du dossier racine de l'application.*/
94
define('HB_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);
12 jp_milcent 95
 
2 jp_milcent 96
/** Constante stockant le chemin absolu du dossier racine de l'application.*/
97
define('HB_CHEMIN_ABSO_RACINE', PAP_CHEMIN_RACINE.GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);
98
/** Constante stockant le chemin du dossier contenant les applications spécifiques de Herbier.*/
8 jp_milcent 99
define('HB_CHEMIN_MODULE', HB_CHEMIN_RACINE.'applications'.GEN_SEP);
2 jp_milcent 100
/** Constante stockant le chemin absolu du dossier contenant les applications spécifiques de Herbier.*/
101
define('HB_CHEMIN_ABSO_APPLI', HB_CHEMIN_ABSO_RACINE.'applications'.GEN_SEP);
102
/** Constante stockant le chemin du dossier contenant les traductions générales.*/
103
define('HB_CHEMIN_LANGUES', HB_CHEMIN_RACINE.'langues'.GEN_SEP);
104
/** Constante stockant le chemin du dossier contenant la présentation générale.*/
105
define('HB_CHEMIN_PRESENTATION', HB_CHEMIN_RACINE.'presentations'.GEN_SEP);
106
/** Constante stockant le chemin absolu du dossier contenant la présentation générale.*/
107
define('HB_CHEMIN_ABSO_PRESENTATION', HB_CHEMIN_ABSO_RACINE.'presentations'.GEN_SEP);
108
/** Constante stockant le chemin du dossier contenant les images de Herbier.*/
109
define('HB_CHEMIN_IMAGES', HB_CHEMIN_PRESENTATION.'images'.GEN_SEP);
110
/** Constante stockant le chemin du dossier contenant les styles de Herbier.*/
111
define('HB_CHEMIN_STYLES', HB_CHEMIN_PRESENTATION.'styles'.GEN_SEP);
112
/** Constante stockant le chemin du dossier contenant les scripts côté client de Herbier.*/
113
define('HB_CHEMIN_SCRIPTS', HB_CHEMIN_PRESENTATION.'scripts'.GEN_SEP);
114
/** Constante stockant le chemin du dossier contenant la bibliothèque de code générale.*/
115
define('HB_CHEMIN_BIBLIO', HB_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
116
/** Constante stockant le chemin du dossier contenant les documents de Herbier.*/
117
define('HB_CHEMIN_DOC', HB_CHEMIN_PRESENTATION.'documents'.GEN_SEP);
118
/** Constante stockant le chemin absolu du dossier contenant les documents de Herbier.*/
119
define('HB_CHEMIN_ABSO_DOC', HB_CHEMIN_ABSO_PRESENTATION.'documents'.GEN_SEP);
120
/** Constante stockant le chemin du dossier contenant la bibliothèque de Cartographie.*/
121
define('HB_CHEMIN_BIBLIO_CARTO', HB_CHEMIN_BIBLIO.'cartographie'.GEN_SEP);
122
/** Constante stockant le chemin du dossier contenant les cartes de la bibliothèque de Cartographie.*/
123
define('HB_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'cartes'.GEN_SEP);
124
 
125
// +------------------------------------------------------------------------------------------------------+
126
// Définition de chemin d'accès et de nom de fichier pour la Cartographie
127
/** Constante stockant le chemin d'accès et le nom du fichier récupérant l'image de la carte et la renvoyant au client.*/
128
define('CAR_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'carto.php?session='.session_name());
129
/** Constante stockant le chemin d'accès au dossier stockant les cartes temporaires générées par la carto.*/
130
define('CAR_CHEMIN_TMP', HB_CHEMIN_ABSO_DOC.'cartes_tmp'.GEN_SEP);
131
/** Constante stockant le nom du fichier de la carte de France des départements.*/
132
define('CAR_FICHIER_CARTE_FR_DPT', 'france.png');
133
/** Constante stockant le nom du fichier de la carte de France des départements.*/
134
define('CAR_FICHIER_CARTE_FR_DPT_MASQUE', 'france_masque.png');
135
 
136
// +------------------------------------------------------------------------------------------------------+
137
// Définition des chemins d'accès aux images.
138
/** Constante stockant le chemin d'accès au fichier ouvrir.png de Herbier.*/
139
define('HB_IMG_OUVRIR', HB_CHEMIN_IMAGES.'ouvrir.png');
140
/** Constante stockant le chemin d'accès au fichier fermer.png de Herbier.*/
141
define('HB_IMG_FERMER', HB_CHEMIN_IMAGES.'fermer.png');
142
/** Constante stockant le chemin d'accès au fichier arobrescence_trai.png de Herbier.*/
143
define('HB_IMG_ARBO', HB_CHEMIN_IMAGES.'arborescence_trait.png');
144
/** Constante stockant le chemin d'accès au fichier arobrescence_trai_fin.png de Herbier.*/
145
define('HB_IMG_ARBO_FIN', HB_CHEMIN_IMAGES.'arborescence_trait_fin.png');
146
/** Constante stockant le nom de la classe générique des icones de Herbier.*/
147
define('HB_CLASS_IMG_ICONE', 'hb_img_icone');
148
/** Constante stockant le nom de la classe générique de l'image fermer.png de Herbier.*/
149
define('HB_CLASS_IMG_FERMER', 'hb_img_fermer');
150
 
151
 
152
// +------------------------------------------------------------------------------------------------------+
153
// |                                            CORPS du PROGRAMME                                        |
154
// +------------------------------------------------------------------------------------------------------+
155
 
156
// ATTENTION : reprise directe des variables de conf de BiblioBota version 0.0
157
 
158
/* +--Fin du code ----------------------------------------------------------------------------------------+
159
*
160
* $Log: not supported by cvs2svn $
12 jp_milcent 161
* Revision 1.4  2006/10/31 10:31:36  jp_milcent
162
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
163
*
8 jp_milcent 164
* Revision 1.3  2006/10/30 18:57:17  jp_milcent
165
* Début gestion des flux rss.
166
*
6 jp_milcent 167
* Revision 1.2  2006/09/22 09:19:14  jp_milcent
168
* Ajout de constantes de chemin.
169
*
3 jp_milcent 170
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
171
* Ajout au dépot de l'application Herbiers.
172
* Elle doit à terme migrer dans eFlore.
173
*
2 jp_milcent 174
* Revision 1.3  2005/04/06 13:28:51  jpm
175
* Ajout des constantes de configuration.
176
*
177
* Revision 1.2  2005/03/09 15:58:00  jpm
178
* Ajout et modification de constantes.
179
*
180
* Revision 1.1  2005/03/08 14:13:59  jpm
181
* Ajout des fichiers de configuration de Herbier.
182
*
183
*
184
* +-- Fin du code ----------------------------------------------------------------------------------------+
185
*/
186
?>