4 |
linda |
1 |
<?php
|
|
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
59 |
jpm |
4 |
// | PHP version 4.3 |
|
4 |
linda |
5 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
|
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
59 |
jpm |
8 |
// | This file is part of eFlore-consultation. |
|
4 |
linda |
9 |
// | |
|
59 |
jpm |
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, |
|
4 |
linda |
16 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
59 |
jpm |
17 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
18 |
// | GNU General Public License for more details. |
|
4 |
linda |
19 |
// | |
|
59 |
jpm |
20 |
// | You should have received a copy of the GNU General Public License |
|
|
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
4 |
linda |
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
59 |
jpm |
24 |
// CVS : $Id: eflore_config.inc.php,v 1.5 2004-12-23 20:04:59 jpm Exp $
|
4 |
linda |
25 |
/**
|
59 |
jpm |
26 |
* Fichier de configuration d'eFlore.
|
4 |
linda |
27 |
*
|
59 |
jpm |
28 |
* Fichier contenant des constantes et des variables globales permettant de configurer eFlore-consultation.
|
4 |
linda |
29 |
*
|
|
|
30 |
*@package eflore
|
|
|
31 |
*@subpackage configuration
|
|
|
32 |
//Auteur original :
|
|
|
33 |
*@author Linda ANGAMA<linda_angama@yahoo.fr>
|
|
|
34 |
//Autres auteurs :
|
59 |
jpm |
35 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
4 |
linda |
36 |
*@copyright Tela-Botanica 2000-2004
|
59 |
jpm |
37 |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:04:59 $
|
4 |
linda |
38 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
39 |
*/
|
|
|
40 |
|
|
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
42 |
// | ENTETE du PROGRAMME |
|
|
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
47 |
// | CORPS du PROGRAMME |
|
|
|
48 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
49 |
|
59 |
jpm |
50 |
/** Definition de la variable globale d'eFlore.*/
|
|
|
51 |
$GLOBALS['_EFLORE_'] = array();
|
24 |
linda |
52 |
|
|
|
53 |
// +------------------------------------------------------------------------------------------------------+
|
4 |
linda |
54 |
// Paramétrage de la base de données.
|
59 |
jpm |
55 |
/** Constante stockant le nom du serveur de bases de données.*/
|
4 |
linda |
56 |
define('EFLORE_BDD_SERVEUR', 'localhost');
|
59 |
jpm |
57 |
/** Constante stockant le nom de l'utilisateur de la base de données de Génésia.*/
|
|
|
58 |
define('EFLORE_BDD_UTILISATEUR', 'eflorete');
|
|
|
59 |
/** Constante stockant le mot de passse de l'utilisateur de la base de données de Génésia.*/
|
|
|
60 |
define('EFLORE_BDD_MOT_DE_PASSE', 'rcf8wvc');
|
|
|
61 |
/** Constante stockant le nom de la base de données de Génésia.*/
|
8 |
linda |
62 |
define('EFLORE_BDD_NOM', 'tela_test_eflore');
|
4 |
linda |
63 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
64 |
// Paramétrage de la valeur du DSN pour Pear DB.
|
59 |
jpm |
65 |
/** Constante stockant le DSN permetant de se connecter à la base de données de Génésia.*/
|
7 |
linda |
66 |
define('EFLORE_DSN', 'mysql://'.EFLORE_BDD_UTILISATEUR.':'.EFLORE_BDD_MOT_DE_PASSE.'@'.EFLORE_BDD_SERVEUR.'/'.EFLORE_BDD_NOM);
|
59 |
jpm |
67 |
|
8 |
linda |
68 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
69 |
// Définition des chemins de fichiers.
|
59 |
jpm |
70 |
/** Constante stockant le chemin du dossier contenant les images de plantes.*/
|
|
|
71 |
define('EFLORE_CHEMIN_IMG_PLTE', 'sites/eflore/generique/images/photos_plte/');
|
|
|
72 |
/** Constante stockant le chemin du dossier contenant les fichiers rdf.*/
|
|
|
73 |
define('EFLORE_CHEMIN_RDF', 'sites/eflore/generique/images/photos_plte/');
|
|
|
74 |
/** Constante stockant l'URL de base de l'application recherche de plante.*/
|
|
|
75 |
define('EFLORE_CHEMIN_APPLI', GEN_CHEMIN_CLIENT.'eflore/');
|
|
|
76 |
/** Constante stockant le chemin vers le dossier bibliothèque.*/
|
|
|
77 |
define('EFLORE_CHEMIN_BIBLIO', EFLORE_CHEMIN_APPLI.'bibliotheque/');
|
|
|
78 |
/** Constante stockant le chemin vers le dossier présentation.*/
|
|
|
79 |
define('EFLORE_CHEMIN_PRESENTATION', EFLORE_CHEMIN_APPLI.'presentations/');
|
|
|
80 |
/** Constante stockant le chemin vers le dossier styles.*/
|
|
|
81 |
define('EFLORE_CHEMIN_STYLE', EFLORE_CHEMIN_PRESENTATION.'styles/');
|
|
|
82 |
|
|
|
83 |
/** Constante stockant l'URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
|
|
|
84 |
$GLOBALS['_EFLORE_']['objet_pear_url'] = $GLOBALS['_GEN_commun']['url'];
|
|
|
85 |
|
24 |
linda |
86 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
87 |
// Définition de la langue
|
59 |
jpm |
88 |
/** Constante stockant la langue utilisée pour l'application.*/
|
|
|
89 |
define('EFLORE_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2));
|
4 |
linda |
90 |
|
59 |
jpm |
91 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
92 |
// Définition de constante spécifiques
|
|
|
93 |
define('EFLORE_RECH_NOM_FORM_NOM_SIZE', '45');
|
|
|
94 |
define('EFLORE_RECH_NOM_FORM_NOM_MAXLENGTH', '255');
|
|
|
95 |
|
|
|
96 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
97 |
// Définition des variables temporairement utilisées pour les essais de l'application.
|
|
|
98 |
define('N_TAXON', 3288);
|
|
|
99 |
define('N_VERSION_PROJET_TAXON', 1);
|
|
|
100 |
define('CONTRIBUTEUR', 4);
|
|
|
101 |
|
4 |
linda |
102 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
103 |
*
|
|
|
104 |
* $Log: not supported by cvs2svn $
|
59 |
jpm |
105 |
* Revision 1.4 2004/08/17 11:22:45 linda
|
|
|
106 |
* 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
|
|
|
107 |
*
|
24 |
linda |
108 |
* Revision 1.3 2004/06/22 12:25:02 linda
|
|
|
109 |
* modifications des paramètre de connexion à la base de données
|
|
|
110 |
*
|
8 |
linda |
111 |
* Revision 1.2 2004/06/17 15:21:37 linda
|
|
|
112 |
* ajout du fichier initial
|
4 |
linda |
113 |
*
|
|
|
114 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
115 |
*/
|
|
|
116 |
?>
|