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