Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 12 | 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
// +------------------------------------------------------------------------------------------------------+
13 jp_milcent 24
// CVS : $Id: hb_config.inc.php,v 1.6 2006-10-31 15:19:15 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
13 jp_milcent 38
*@version       $Revision: 1.6 $ $Date: 2006-10-31 15:19:15 $
2 jp_milcent 39
// +------------------------------------------------------------------------------------------------------+
40
*/
41
 
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
12 jp_milcent 45
// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués
46
setlocale(LC_CTYPE, "fr_FR");
47
 
13 jp_milcent 48
// Pour une utilisation hors de Papyrus
49
if (!defined('PAP_VERSION')) {
50
	define('HB_URL', 'http://'.$_SERVER['HTTP_HOST'].'/'.'page:herbiers_recherche');
51
}
52
 
2 jp_milcent 53
// +------------------------------------------------------------------------------------------------------+
54
/** Definition de la variable globale de Herbier.*/
55
$GLOBALS['_HERBIER_'] = array();
56
/** Variable globale stockant une URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
57
$GLOBALS['_HERBIER_']['url'] =& $GLOBALS['_GEN_commun']['url'];
58
/** Variable globale stockant l'objet Pear d'identification.*/
59
$GLOBALS['_HERBIER_']['auth'] =& $GLOBALS['_GEN_commun']['pear_auth'];
60
/** Variable globale stockant l'objet Pear DB.*/
61
$GLOBALS['_HERBIER_']['bdd'] = null;
62
 
63
// +------------------------------------------------------------------------------------------------------+
64
// Définition de la langue
65
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
66
define('HB_I18N', $GLOBALS['_GEN_commun']['i18n']);
67
 
68
// +------------------------------------------------------------------------------------------------------+
69
// Définition des arguments de l'appel de l'application
70
/** Constante stockant la demande d'authentification pour accéder aux applications.*/
71
define('HB_ARGUMENT_AUTH', 0);
72
if (!isset($GLOBALS['_GEN_commun']['info_application']->application)) {
73
    $GLOBALS['_GEN_commun']['info_application']->application = $_REQUEST['appli'];
74
}
75
define('HB_ARGUMENT_APPLI', $GLOBALS['_GEN_commun']['info_application']->application);
76
 
77
// +------------------------------------------------------------------------------------------------------+
78
// Définition des chemins de fichiers.
79
/** Constante stockant le chemin du dossier contenant l'API partagée.*/
80
define('HB_CHEMIN_API', GEN_CHEMIN_API);
3 jp_milcent 81
/** Constante stockant le chemin du dossier contenant l'API JPGraph.*/
82
define('HB_CHEMIN_API_PEAR', PAP_CHEMIN_API_PEAR);
2 jp_milcent 83
/** Constante stockant le chemin du dossier contenant l'API Débogage.*/
84
define('HB_CHEMIN_API_DEBOGAGE', HB_CHEMIN_API.'debogage'.GEN_SEP);
85
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
86
define('HB_CHEMIN_API_FRAGMENTEUR', HB_CHEMIN_API.'fragmenteur'.GEN_SEP);
87
/** Constante stockant le chemin du dossier contenant l'API Formulaire.*/
88
define('HB_CHEMIN_API_FORMULAIRE', HB_CHEMIN_API.'formulaire'.GEN_SEP);
89
/** Constante stockant le chemin du dossier contenant l'API Date.*/
90
define('HB_CHEMIN_API_FORM', HB_CHEMIN_API.'formulaire'.GEN_SEP);
91
 
92
/** Constante stockant le chemin du dossier contenant l'API Date.*/
93
define('HB_CHEMIN_API_DATE', HB_CHEMIN_API.'date'.GEN_SEP);
94
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
95
define('HB_CHEMIN_API_VOIRAUSSI', HB_CHEMIN_API.'voiraussi'.GEN_SEP);
96
 
97
/** Constante stockant le chemin du dossier racine de l'application.*/
98
define('HB_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);
12 jp_milcent 99
 
2 jp_milcent 100
/** Constante stockant le chemin absolu du dossier racine de l'application.*/
101
define('HB_CHEMIN_ABSO_RACINE', PAP_CHEMIN_RACINE.GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);
102
/** Constante stockant le chemin du dossier contenant les applications spécifiques de Herbier.*/
8 jp_milcent 103
define('HB_CHEMIN_MODULE', HB_CHEMIN_RACINE.'applications'.GEN_SEP);
2 jp_milcent 104
/** Constante stockant le chemin absolu du dossier contenant les applications spécifiques de Herbier.*/
105
define('HB_CHEMIN_ABSO_APPLI', HB_CHEMIN_ABSO_RACINE.'applications'.GEN_SEP);
106
/** Constante stockant le chemin du dossier contenant les traductions générales.*/
107
define('HB_CHEMIN_LANGUES', HB_CHEMIN_RACINE.'langues'.GEN_SEP);
108
/** Constante stockant le chemin du dossier contenant la présentation générale.*/
109
define('HB_CHEMIN_PRESENTATION', HB_CHEMIN_RACINE.'presentations'.GEN_SEP);
110
/** Constante stockant le chemin absolu du dossier contenant la présentation générale.*/
111
define('HB_CHEMIN_ABSO_PRESENTATION', HB_CHEMIN_ABSO_RACINE.'presentations'.GEN_SEP);
112
/** Constante stockant le chemin du dossier contenant les images de Herbier.*/
113
define('HB_CHEMIN_IMAGES', HB_CHEMIN_PRESENTATION.'images'.GEN_SEP);
114
/** Constante stockant le chemin du dossier contenant les styles de Herbier.*/
115
define('HB_CHEMIN_STYLES', HB_CHEMIN_PRESENTATION.'styles'.GEN_SEP);
116
/** Constante stockant le chemin du dossier contenant les scripts côté client de Herbier.*/
117
define('HB_CHEMIN_SCRIPTS', HB_CHEMIN_PRESENTATION.'scripts'.GEN_SEP);
118
/** Constante stockant le chemin du dossier contenant la bibliothèque de code générale.*/
119
define('HB_CHEMIN_BIBLIO', HB_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
120
/** Constante stockant le chemin du dossier contenant les documents de Herbier.*/
121
define('HB_CHEMIN_DOC', HB_CHEMIN_PRESENTATION.'documents'.GEN_SEP);
122
/** Constante stockant le chemin absolu du dossier contenant les documents de Herbier.*/
123
define('HB_CHEMIN_ABSO_DOC', HB_CHEMIN_ABSO_PRESENTATION.'documents'.GEN_SEP);
124
/** Constante stockant le chemin du dossier contenant la bibliothèque de Cartographie.*/
125
define('HB_CHEMIN_BIBLIO_CARTO', HB_CHEMIN_BIBLIO.'cartographie'.GEN_SEP);
126
/** Constante stockant le chemin du dossier contenant les cartes de la bibliothèque de Cartographie.*/
127
define('HB_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'cartes'.GEN_SEP);
128
 
129
// +------------------------------------------------------------------------------------------------------+
130
// Définition de chemin d'accès et de nom de fichier pour la Cartographie
131
/** 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.*/
132
define('CAR_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'carto.php?session='.session_name());
133
/** Constante stockant le chemin d'accès au dossier stockant les cartes temporaires générées par la carto.*/
134
define('CAR_CHEMIN_TMP', HB_CHEMIN_ABSO_DOC.'cartes_tmp'.GEN_SEP);
135
/** Constante stockant le nom du fichier de la carte de France des départements.*/
136
define('CAR_FICHIER_CARTE_FR_DPT', 'france.png');
137
/** Constante stockant le nom du fichier de la carte de France des départements.*/
138
define('CAR_FICHIER_CARTE_FR_DPT_MASQUE', 'france_masque.png');
139
 
140
// +------------------------------------------------------------------------------------------------------+
141
// Définition des chemins d'accès aux images.
142
/** Constante stockant le chemin d'accès au fichier ouvrir.png de Herbier.*/
143
define('HB_IMG_OUVRIR', HB_CHEMIN_IMAGES.'ouvrir.png');
144
/** Constante stockant le chemin d'accès au fichier fermer.png de Herbier.*/
145
define('HB_IMG_FERMER', HB_CHEMIN_IMAGES.'fermer.png');
146
/** Constante stockant le chemin d'accès au fichier arobrescence_trai.png de Herbier.*/
147
define('HB_IMG_ARBO', HB_CHEMIN_IMAGES.'arborescence_trait.png');
148
/** Constante stockant le chemin d'accès au fichier arobrescence_trai_fin.png de Herbier.*/
149
define('HB_IMG_ARBO_FIN', HB_CHEMIN_IMAGES.'arborescence_trait_fin.png');
150
/** Constante stockant le nom de la classe générique des icones de Herbier.*/
151
define('HB_CLASS_IMG_ICONE', 'hb_img_icone');
152
/** Constante stockant le nom de la classe générique de l'image fermer.png de Herbier.*/
153
define('HB_CLASS_IMG_FERMER', 'hb_img_fermer');
154
 
155
 
156
// +------------------------------------------------------------------------------------------------------+
157
// |                                            CORPS du PROGRAMME                                        |
158
// +------------------------------------------------------------------------------------------------------+
159
 
160
// ATTENTION : reprise directe des variables de conf de BiblioBota version 0.0
161
 
162
/* +--Fin du code ----------------------------------------------------------------------------------------+
163
*
164
* $Log: not supported by cvs2svn $
13 jp_milcent 165
* Revision 1.5  2006/10/31 15:06:44  jp_milcent
166
* Fin de gestion des flux rss.
167
*
12 jp_milcent 168
* Revision 1.4  2006/10/31 10:31:36  jp_milcent
169
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
170
*
8 jp_milcent 171
* Revision 1.3  2006/10/30 18:57:17  jp_milcent
172
* Début gestion des flux rss.
173
*
6 jp_milcent 174
* Revision 1.2  2006/09/22 09:19:14  jp_milcent
175
* Ajout de constantes de chemin.
176
*
3 jp_milcent 177
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
178
* Ajout au dépot de l'application Herbiers.
179
* Elle doit à terme migrer dans eFlore.
180
*
2 jp_milcent 181
* Revision 1.3  2005/04/06 13:28:51  jpm
182
* Ajout des constantes de configuration.
183
*
184
* Revision 1.2  2005/03/09 15:58:00  jpm
185
* Ajout et modification de constantes.
186
*
187
* Revision 1.1  2005/03/08 14:13:59  jpm
188
* Ajout des fichiers de configuration de Herbier.
189
*
190
*
191
* +-- Fin du code ----------------------------------------------------------------------------------------+
192
*/
193
?>