Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 33 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 45
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 5.0                                                                                      |
4
// | PHP version 5.0                                                                                      |
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-Serveur.                                                                 |
8
// | This file is part of eFlore-Serveur.                                                                 |
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.php,v 1.3 2004-12-16 22:07:53 fred Exp $
24
// CVS : $Id: eflore_config.php,v 1.4 2004-12-22 13:24:47 jpm Exp $
25
/**
25
/**
26
* Fichier de configuration d'eFlore-Serveur
26
* Fichier de configuration d'eFlore-Serveur
27
*
27
*
28
* Ce fichier contient les constantes et éventuellement des variables globales contenant toutes les info
28
* Ce fichier contient les constantes et éventuellement des variables globales contenant toutes les info
29
* nécessaire à la configuration du programme eFlore-Serveur.
29
* nécessaire à la configuration du programme eFlore-Serveur.
30
*
30
*
31
*@package eFlore-Serveur
31
*@package eFlore-Serveur
32
*@subpackage Configuration
32
*@subpackage Configuration
33
//Auteur original :
33
//Auteur original :
34
*@author        Frédéric LEGENS <flegens@free.fr>
34
*@author        Frédéric LEGENS <flegens@free.fr>
35
//Autres auteurs :
35
//Autres auteurs :
36
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
*@copyright     Tela-Botanica 2000-2004
37
*@copyright     Tela-Botanica 2000-2004
38
*@version       $Revision: 1.3 $ $Date: 2004-12-16 22:07:53 $
38
*@version       $Revision: 1.4 $ $Date: 2004-12-22 13:24:47 $
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
*/
40
*/
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
45
 
45
 
46
 
46
 
47
// +------------------------------------------------------------------------------------------------------+
47
// +------------------------------------------------------------------------------------------------------+
48
// |                                            CORPS du PROGRAMME                                        |
48
// |                                            CORPS du PROGRAMME                                        |
49
// +------------------------------------------------------------------------------------------------------+
49
// +------------------------------------------------------------------------------------------------------+
50
// Constante générale
50
// Constante générale
51
/** Constante stockant la version du programme.*/
51
/** Constante stockant la version du programme.*/
52
define('EFSE_VERSION', '0.0.1');
52
define('EFSE_VERSION', '0.0.1');
53
/** Constante stockant l'intitulé de version du programme.*/
53
/** Constante stockant l'intitulé de version du programme.*/
54
define('EFSE_VERSION_INTITULE', 'Version '.EFSE_VERSION);
54
define('EFSE_VERSION_INTITULE', 'Version '.EFSE_VERSION);
55
 
55
 
56
// +------------------------------------------------------------------------------------------------------+
56
// +------------------------------------------------------------------------------------------------------+
57
// Constante de la base de données
57
// Constante de la base de données
58
/** Constante stockant le nom du serveur de la base de donnée.*/
58
/** Constante stockant le nom du serveur de la base de donnée.*/
59
define('EFSE_BDD_SERVEUR', 'localhost');
59
define('EFSE_BDD_SERVEUR', 'localhost');
60
/** Constante stockant le nom de la base de donnée.*/
60
/** Constante stockant le nom de la base de donnée.*/
61
define('EFSE_BDD_NOM', 'tela_test_eflore');
61
define('EFSE_BDD_NOM', '');
62
/** Constante stockant le nom de l'utilisateur.*/
62
/** Constante stockant le nom de l'utilisateur.*/
63
define('EFSE_BDD_UTILISATEUR', 'eflorete');
63
define('EFSE_BDD_UTILISATEUR', '');
64
/** Constante stockant le mot de passe de l'utilisateur.*/
64
/** Constante stockant le mot de passe de l'utilisateur.*/
65
define('EFSE_BDD_MOT_DE_PASSE', 'rcf8wvc');
65
define('EFSE_BDD_MOT_DE_PASSE', '');
66
 
66
 
67
// +------------------------------------------------------------------------------------------------------+
67
// +------------------------------------------------------------------------------------------------------+
68
// Constante de chemin de dossier et fichier
68
// Constante de chemin de dossier et fichier
69
$separateur = strstr( PHP_OS, "WIN") ? '\\' : '/';
69
$separateur = strstr( PHP_OS, "WIN") ? '\\' : '/';
70
/** Constante stockant le séparateur de dossier qui dépend de l'OS.*/
70
/** Constante stockant le séparateur de dossier qui dépend de l'OS.*/
71
define('EFSE_SEP', $separateur);
71
define('EFSE_SEP', $separateur);
72
/** Constante stockant la valeur de la racine des chemins.*/
72
/** Constante stockant la valeur de la racine des chemins.*/
73
define('EFSE_CHEMIN_RACINE', '/');
73
define('EFSE_CHEMIN_RACINE', '/');
74
/** Constante stockant le chemin vers la configuration.*/
74
/** Constante stockant le chemin vers la configuration.*/
75
define('EFSE_CHEMIN_CONFIG', 'configuration'.EFSE_SEP);
75
define('EFSE_CHEMIN_CONFIG', 'configuration'.EFSE_SEP);
76
/** Constante stockant le chemin vers la bibliothèque.*/
76
/** Constante stockant le chemin vers la bibliothèque.*/
77
define('EFSE_CHEMIN_BIBLIO', 'bibliotheque'.EFSE_SEP);
77
define('EFSE_CHEMIN_BIBLIO', 'bibliotheque'.EFSE_SEP);
78
/** Constante stockant le chemin vers la bibliothèque des classes.*/
78
/** Constante stockant le chemin vers la bibliothèque des classes.*/
79
define('EFSE_CHEMIN_CLASSE', EFSE_CHEMIN_BIBLIO.'classes'.EFSE_SEP);
79
define('EFSE_CHEMIN_CLASSE', EFSE_CHEMIN_BIBLIO.'classes'.EFSE_SEP);
80
/** Constante stockant le chemin vers la bibliothèque des interfaces.*/
80
/** Constante stockant le chemin vers la bibliothèque des interfaces.*/
81
define('EFSE_CHEMIN_INTERFACE', EFSE_CHEMIN_BIBLIO.'interfaces'.EFSE_SEP);
81
define('EFSE_CHEMIN_INTERFACE', EFSE_CHEMIN_BIBLIO.'interfaces'.EFSE_SEP);
82
/** Constante stockant le chemin vers le dossier des définitions.*/
82
/** Constante stockant le chemin vers le dossier des définitions.*/
83
define('EFSE_CHEMIN_DEFINITION', 'definitions'.EFSE_SEP);
83
define('EFSE_CHEMIN_DEFINITION', 'definitions'.EFSE_SEP);
84
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
84
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
85
define('EFSE_CHEMIN_DEF_MACRO', EFSE_CHEMIN_DEFINITION.'macro_elements'.EFSE_SEP);
85
define('EFSE_CHEMIN_DEF_MACRO', EFSE_CHEMIN_DEFINITION.'macro_elements'.EFSE_SEP);
86
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
86
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
87
define('EFSE_CHEMIN_DEF_MACRO_GROUPE', EFSE_CHEMIN_DEFINITION.'groupes_macro_elements'.EFSE_SEP);
87
define('EFSE_CHEMIN_DEF_MACRO_GROUPE', EFSE_CHEMIN_DEFINITION.'groupes_macro_elements'.EFSE_SEP);
88
/** Constante stockant le chemin vers le dossier des publications au format xhtml.*/
88
/** Constante stockant le chemin vers le dossier des publications au format xhtml.*/
89
define('EFSE_CHEMIN_DEF_PUBLI_XHTML', EFSE_CHEMIN_DEFINITION.'publications_html'.EFSE_SEP);
89
define('EFSE_CHEMIN_DEF_PUBLI_XHTML', EFSE_CHEMIN_DEFINITION.'publications_html'.EFSE_SEP);
90
/** Constante stockant le chemin vers le dossier des publications au format xml.*/
90
/** Constante stockant le chemin vers le dossier des publications au format xml.*/
91
define('EFSE_CHEMIN_DEF_PUBLI_XML', EFSE_CHEMIN_DEFINITION.'publications_xml'.EFSE_SEP);
91
define('EFSE_CHEMIN_DEF_PUBLI_XML', EFSE_CHEMIN_DEFINITION.'publications_xml'.EFSE_SEP);
92
/** Constante stockant le chemin vers le dossier des fichiers Modèles et Vues pouvant être générés.*/
92
/** Constante stockant le chemin vers le dossier des fichiers Modèles et Vues pouvant être générés.*/
93
define('EFSE_CHEMIN_MV', 'eflore_mv'.EFSE_SEP);
93
define('EFSE_CHEMIN_MV', 'eflore_mv'.EFSE_SEP);
94
/** Constante stockant le chemin vers le dossier des Modèles.*/
94
/** Constante stockant le chemin vers le dossier des Modèles.*/
95
define('EFSE_CHEMIN_MV_MODELE', EFSE_CHEMIN_MV.'modeles'.EFSE_SEP);
95
define('EFSE_CHEMIN_MV_MODELE', EFSE_CHEMIN_MV.'modeles'.EFSE_SEP);
96
/** Constante stockant le chemin vers le dossier des Vues.*/
96
/** Constante stockant le chemin vers le dossier des Vues.*/
97
define('EFSE_CHEMIN_MV_VUE', EFSE_CHEMIN_MV.'vues'.EFSE_SEP);
97
define('EFSE_CHEMIN_MV_VUE', EFSE_CHEMIN_MV.'vues'.EFSE_SEP);
98
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les groupes de macro-éléments.*/
98
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les groupes de macro-éléments.*/
99
define('EFSE_CHEMIN_MV_MACRO_GROUPE', EFSE_CHEMIN_MV_MODELE.'groupes_macro_elements'.EFSE_SEP);
99
define('EFSE_CHEMIN_MV_MACRO_GROUPE', EFSE_CHEMIN_MV_MODELE.'groupes_macro_elements'.EFSE_SEP);
100
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les macro-éléments.*/
100
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les macro-éléments.*/
101
define('EFSE_CHEMIN_MV_MACRO', EFSE_CHEMIN_MV_MODELE.'macro_elements'.EFSE_SEP);
101
define('EFSE_CHEMIN_MV_MACRO', EFSE_CHEMIN_MV_MODELE.'macro_elements'.EFSE_SEP);
102
 
102
 
103
/** Constante stockant le chemin vers la carte des services principaux.*/
103
/** Constante stockant le chemin vers la carte des services principaux.*/
104
define('EFSE_FICHIER_MAP', EFSE_CHEMIN_MV.'eflore_services.map');
104
define('EFSE_FICHIER_MAP', EFSE_CHEMIN_MV.'eflore_services.map');
105
/** Constante stockant le chemin vers le fichier de configuration principal.*/
105
/** Constante stockant le chemin vers le fichier de configuration principal.*/
106
define('EFSE_FICHIER_CONFIG', EFSE_CHEMIN_CONFIG.'eflore_config.php');
106
define('EFSE_FICHIER_CONFIG', EFSE_CHEMIN_CONFIG.'eflore_config.php');
107
 
107
 
108
/** Constante stockant la valeur de la racine des chemins.*/
108
/** Constante stockant la valeur de la racine des chemins.*/
109
define('EFSE_CHEMIN_GENERATEUR_RACINE', '..'.EFSE_SEP);
109
define('EFSE_CHEMIN_GENERATEUR_RACINE', '..'.EFSE_SEP);
110
 
110
 
111
// Tableau stockant les différentes valeurs permettant de configurer l'appli.
111
// Tableau stockant les différentes valeurs permettant de configurer l'appli.
112
/*
112
/*
113
$appConfig = array(
113
$appConfig = array(
114
    'mysql_host' => 'localhost',
114
    'mysql_host' => 'localhost',
115
    'mysql_database' => 'eflore-test',
115
    'mysql_database' => 'eflore-test',
116
    'mysql_user' => 'eflorete',
116
    'mysql_user' => 'eflorete',
117
    'mysql_password' => 'rcf8wvc',
117
    'mysql_password' => 'rcf8wvc',
118
    'app_version' => 'Version 0.0.1',
118
    'app_version' => 'Version 0.0.1',
119
    'service_map' => ,
119
    'service_map' => ,
120
    'def_groupes'=>'definitions\\groupesmacroelements\\',
120
    'def_groupes'=>'definitions\\groupesmacroelements\\',
121
    'def_macro'=>'definitions\\macroelements\\',
121
    'def_macro'=>'definitions\\macroelements\\',
122
    'service_map'=>'definitions\\eflore_services.map',
122
    'service_map'=>'definitions\\eflore_services.map',
123
    'publi_html'=>'definitions\\publicationshtml\\',
123
    'publi_html'=>'definitions\\publicationshtml\\',
124
    'publi_xml'=>'definitions\\publicationsxml\\',
124
    'publi_xml'=>'definitions\\publicationsxml\\',
125
    'auto_groupes'=>'phpautomatique\\groupesmacroelements\\',
125
    'auto_groupes'=>'phpautomatique\\groupesmacroelements\\',
126
    'auto_macro'=>'phpautomatique\\macroelements\\'
126
    'auto_macro'=>'phpautomatique\\macroelements\\'
127
);
127
);
128
*/
128
*/
129
/* +--Fin du code ----------------------------------------------------------------------------------------+
129
/* +--Fin du code ----------------------------------------------------------------------------------------+
130
*
130
*
131
* $Log: not supported by cvs2svn $
131
* $Log: not supported by cvs2svn $
-
 
132
* Revision 1.3  2004/12/16 22:07:53  fred
-
 
133
* correction du numéro de version de PHP
-
 
134
*
132
* Revision 1.2  2004/12/16 16:40:59  jpm
135
* Revision 1.2  2004/12/16 16:40:59  jpm
133
* Ajout de chemin.
136
* Ajout de chemin.
134
*
137
*
135
* Revision 1.1.1.1  2004/12/16 12:24:36  jpm
138
* Revision 1.1.1.1  2004/12/16 12:24:36  jpm
136
* Importation initiale eFlore v1.1 et serveur.
139
* Importation initiale eFlore v1.1 et serveur.
137
*
140
*
138
*
141
*
139
* +-- Fin du code ----------------------------------------------------------------------------------------+
142
* +-- Fin du code ----------------------------------------------------------------------------------------+
140
*/
143
*/
141
?>
144
?>