Subversion Repositories Applications.projet

Rev

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

Rev 353 Rev 359
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 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
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 library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: projet.config.inc.php,v 1.12 2008-10-29 15:49:24 aperonnet Exp $
22
// CVS : $Id: projet.config.inc.php,v 1.13 2008-11-19 09:28:46 aperonnet Exp $
23
/**
23
/**
24
* Application projet, fichier de configuration
24
* Application projet, fichier de configuration
25
*
25
*
26
* Fichier de configuration
26
* Fichier de configuration
27
*
27
*
28
*@package projet
28
*@package projet
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.12 $
34
*@version       $Revision: 1.13 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
38
/**
38
/**
39
//==================================== LES URLS ==================================
39
//==================================== LES URLS ==================================
40
* Constantes liées à l'utilisation des url
40
* Constantes liées à l'utilisation des url
41
//==================================================================================
41
//==================================================================================
42
*/
42
*/
43
 
43
 
44
// Définition du lien vers "voir le projet"
44
// Définition du lien vers "voir le projet"
45
define ("PROJET_LIEN_VOIR", "") ;
45
define ("PROJET_LIEN_VOIR", "") ;
46
 
46
 
47
 
47
 
48
 
48
 
49
/**
49
/**
50
//==================================== LES CHEMINS =================================
50
//==================================== LES CHEMINS =================================
51
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
51
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
52
* applications.
52
* applications.
53
//==================================================================================
53
//==================================================================================
54
*/
54
*/
55
define ('PROJET_CHEMIN_APPLI','client/projet/');//le chemin vers l'application courante
55
define ('PROJET_CHEMIN_APPLI','client/projet/');//le chemin vers l'application courante
56
define ('PROJET_CHEMIN_API_ARBRE', 'api/arbre/') ;
56
define ('PROJET_CHEMIN_API_ARBRE', 'api/arbre/') ;
57
 
57
 
58
/** Chemin vers la bibliothèque API.*/
58
/** Chemin vers la bibliothèque API.*/
59
define ('PROJET_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
59
define ('PROJET_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
60
define ('PROJET_CHEMIN_ICONES', PROJET_CHEMIN_APPLI."icones/") ;
60
define ('PROJET_CHEMIN_ICONES', PROJET_CHEMIN_APPLI."icones/") ;
61
define ('PROJET_CHEMIN_CLASSES', PROJET_CHEMIN_APPLI.'classes/');//le chemin vers les fichiers propre à GSITE
61
define ('PROJET_CHEMIN_CLASSES', PROJET_CHEMIN_APPLI.'classes/');//le chemin vers les fichiers propre à GSITE
62
define ('PROJET_CHEMIN_FONCTIONS', PROJET_CHEMIN_APPLI.'fonctions/') ;
62
define ('PROJET_CHEMIN_FONCTIONS', PROJET_CHEMIN_APPLI.'fonctions/') ;
63
define ('PROJET_CHEMIN_LIBRAIRIE','bibliotheque/');//le chemin de la librairie de fichier php
63
define ('PROJET_CHEMIN_LIBRAIRIE','bibliotheque/');//le chemin de la librairie de fichier php
64
define ('PROJET_CHEMIN_FICHIER', "client/projet/fichiers/") ; // Chemin ou seront créer les dossiers
64
define ('PROJET_CHEMIN_FICHIER', "client/projet/fichiers/") ; // Chemin ou seront créer les dossiers
65
 
65
 
66
// Chemin vers les classes pour lire les listes de discussion
66
// Chemin vers les classes pour lire les listes de discussion
67
define ('PROJET_CHEMIN_CLASSES_LISTES', PROJET_CHEMIN_CLASSES."ezmlm-php-2.0/") ;
67
define ('PROJET_CHEMIN_CLASSES_LISTES', PROJET_CHEMIN_CLASSES."ezmlm-php-2.0/") ;
68
 
68
 
69
// Langue pas defaut
69
// Langue pas defaut
70
define ('PROJET_LANGUE_DEFAUT', "fr") ;
70
define ('PROJET_LANGUE_DEFAUT', "fr") ;
71
 
71
 
72
// Gestion de l'authentification
72
// Gestion de l'authentification
73
$GLOBALS['projet_auth'] = $GLOBALS['_GEN_commun']['pear_auth'];
73
$GLOBALS['projet_auth'] = $GLOBALS['_GEN_commun']['pear_auth'];
74
 
74
 
75
// Un objet PEAR:DB connecté
75
// Un objet PEAR:DB connecté
76
$GLOBALS['projet_db'] = $GLOBALS['_GEN_commun']['pear_db'];
76
$GLOBALS['projet_db'] = $GLOBALS['_GEN_commun']['pear_db'];
77
 
77
 
78
$GLOBALS['url'] = &$GLOBALS['_GEN_commun']['url'] ;
78
$GLOBALS['url'] = &$GLOBALS['_GEN_commun']['url'] ;
79
 
79
 
80
// La langue
80
// La langue
81
if (!isset ($GLOBALS['lang'])) $GLOBALS['lang'] = PROJET_LANGUE_DEFAUT ;
81
if (!isset ($GLOBALS['lang'])) $GLOBALS['lang'] = PROJET_LANGUE_DEFAUT ;
82
/**
82
/**
83
//==================================== CONSTANTES ==================================
83
//==================================== CONSTANTES ==================================
84
* Constantes des noms de tables et de champs dans l'annuaire
84
* Constantes des noms de tables et de champs dans l'annuaire
85
//==================================================================================
85
//==================================================================================
86
*/
86
*/
87
 
87
 
88
define ("PROJET_ANNUAIRE", "gen_annuaire") ;       // Nom de la table d'annuaire
88
define ("PROJET_ANNUAIRE", "gen_annuaire") ;       // Nom de la table d'annuaire
89
define ("PROJET_CHAMPS_NOM", "ga_nom") ;                   // Nom du champs nom
89
define ("PROJET_CHAMPS_NOM", "ga_nom") ;                   // Nom du champs nom
90
define ("PROJET_CHAMPS_MAIL", "ga_mail") ;                  // Nom du champs mail
90
define ("PROJET_CHAMPS_MAIL", "ga_mail") ;                  // Nom du champs mail
91
define ("PROJET_CHAMPS_PRENOM", "ga_prenom") ;             // Nom du champs prénom
91
define ("PROJET_CHAMPS_PRENOM", "ga_prenom") ;             // Nom du champs prénom
92
define ("PROJET_CHAMPS_ID", "ga_id_administrateur") ;
92
define ("PROJET_CHAMPS_ID", "ga_id_administrateur") ;
93
 
93
 
94
// Lien vers l inscription du cms
94
// Lien vers l inscription du cms
95
define ('PROJET_LIEN_INSCRIPTION_CMS', '');
95
define ('PROJET_LIEN_INSCRIPTION_CMS', '');
96
 
96
 
97
/**
97
/**
98
//==================================== CONSTANTES ==================================
98
//==================================== CONSTANTES ==================================
99
* Constantes des chemins associés aux wikinis
99
* Constantes des chemins associés aux wikinis
100
//==================================================================================
100
//==================================================================================
101
*/
101
*/
102
 
102
 
103
define ("PROJET_CHEMIN_WIKINI", "wikini/") ;
103
define ("PROJET_CHEMIN_WIKINI", "wikini/") ;
104
define ("PROJET_HOTE_WIKINI", "localhost") ;
104
define ("PROJET_HOTE_WIKINI", "localhost") ;
105
define ("PROJET_UTILISATEUR_WIKINI", "") ;
105
define ("PROJET_UTILISATEUR_WIKINI", "") ;
106
define ("PROJET_MDP_WIKINI", "") ;
106
define ("PROJET_MDP_WIKINI", "") ;
107
define ("PROJET_DB_WIKINI", "") ;
107
define ("PROJET_DB_WIKINI", "") ;
108
define ("PROJET_URL_WIKINI", "") ;        // L'url vers le wikini
108
define ("PROJET_URL_WIKINI", "") ;        // L'url vers le wikini
109
 
109
 
110
/**
110
/**
111
//==================================== CONSTANTES ==================================
111
//==================================== CONSTANTES ==================================
112
* Constantes des emails des administrateurs
112
* Constantes des emails des administrateurs
113
//==================================================================================
113
//==================================================================================
114
*/
114
*/
115
define ("PROJET_MAIL_ADMINISTRATEUR", "") ;
115
define ("PROJET_MAIL_ADMINISTRATEUR", "") ;
116
 
116
 
117
 
117
 
118
define ("PROJET_VARIABLE_ID_PROJET", "id_projet") ;
118
define ("PROJET_VARIABLE_ID_PROJET", "id_projet") ;
119
define ("PROJET_VARIABLE_ACTION", "act") ;
119
define ("PROJET_VARIABLE_ACTION", "act") ;
120
define ("PROJET_VARIABLE_ID_REPERTOIRE", "id_repertoire") ;
120
define ("PROJET_VARIABLE_ID_REPERTOIRE", "id_repertoire") ;
121
define ("PROJET_VARIABLE_ID_DOCUMENT", "id_document") ;
121
define ("PROJET_VARIABLE_ID_DOCUMENT", "id_document") ;
122
define ('PROJET_VARIABLE_SERVICE', 'service');
122
define ('PROJET_VARIABLE_SERVICE', 'service');
123
 
123
 
124
 
124
 
125
 
125
 
126
/**
126
/**
127
//==================================== CONSTANTES ==================================
127
//==================================== CONSTANTES ==================================
128
* Constantes pour les listes de discussion
128
* Constantes pour les listes de discussion
129
//==================================================================================
129
//==================================================================================
130
*/
130
*/
131
 
131
 
132
define ('PROJET_CHEMIN_LISTES', '') ;
132
define ('PROJET_CHEMIN_LISTES', '') ;
133
define ('PROJET_DOMAINE_LISTE', '') ;
133
define ('PROJET_DOMAINE_LISTE', 'localhost') ;
134
define ('PROJET_CHEMIN_ATELIERS', 'http://domaine.ext/papyrus.php?site=<>&menu=<>&id_projet=<>') ;
134
define ('PROJET_CHEMIN_ATELIERS', 'http://domaine.ext/papyrus.php?site=<>&menu=<>&id_projet=<>') ;
135
define ('PROJET_SERVEUR_VPOPMAIL', 'http://vpopmail.domaine.ext') ;
135
define ('PROJET_SERVEUR_VPOPMAIL', 'http://vpopmail.domaine.ext') ;
136
 
136
 
137
 
137
 
138
/**
138
/**
139
//==================================== CONSTANTES ==================================
139
//==================================== CONSTANTES ==================================
140
* Constantes pour des options
140
* Constantes pour des options
141
//==================================================================================
141
//==================================================================================
142
*/
142
*/
143
define ('PROJET_UTILISE_TYPE', false) ;
143
define ('PROJET_UTILISE_TYPE', false) ;
144
define ('PROJET_UTILISE_HIERARCHIE', false) ;
144
define ('PROJET_UTILISE_HIERARCHIE', false) ;
145
define ('PROJET_LISTE_RESUME',true);
145
define ('PROJET_LISTE_RESUME',true);
146
 
146
 
147
// Mettre à true si les utilisateurs peuvent déposer des projets
147
// Mettre à true si les utilisateurs peuvent déposer des projets
148
define ('PROJET_UTILISATEURS_COORD', false) ;
148
define ('PROJET_UTILISATEURS_COORD', false) ;
149
// Taille maximume des fichiers pouvant être uploadé : modifier aussi dans php.ini les variables :post_max_size et upload_max_filesize
149
// Taille maximume des fichiers pouvant être uploadé : modifier aussi dans php.ini les variables :post_max_size et upload_max_filesize
150
define ('PROJET_UPLOAD_MAX_FILE_SIZE', 4*1024*1024) ;// 4 Mo
150
define ('PROJET_UPLOAD_MAX_FILE_SIZE', 4*1024*1024) ;// 4 Mo
151
 
151
 
152
/* +--Fin du code ----------------------------------------------------------------------------------------+
152
/* +--Fin du code ----------------------------------------------------------------------------------------+
153
*
153
*
154
* $Log: not supported by cvs2svn $
154
* $Log: not supported by cvs2svn $
-
 
155
* Revision 1.12  2008-10-29 15:49:24  aperonnet
-
 
156
* fichier de configuration de l'appli projet
-
 
157
*
155
* Revision 1.11  2008-05-21 14:37:48  alexandre_tb
158
* Revision 1.11  2008-05-21 14:37:48  alexandre_tb
156
* ajout de la constante PROJET_LIEN_INSCRIPTION_CMS
159
* ajout de la constante PROJET_LIEN_INSCRIPTION_CMS
157
*
160
*
158
* Revision 1.10  2007-04-19 09:19:52  alexandre_tb
161
* Revision 1.10  2007-04-19 09:19:52  alexandre_tb
159
* constante PROJET_VARIABLE_SERVICE pour les liaisons asynchrone
162
* constante PROJET_VARIABLE_SERVICE pour les liaisons asynchrone
160
*
163
*
161
* Revision 1.9  2007/02/13 15:11:39  jp_milcent
164
* Revision 1.9  2007/02/13 15:11:39  jp_milcent
162
* Ajout d'une constante pour l'upload de fichier.
165
* Ajout d'une constante pour l'upload de fichier.
163
*
166
*
164
* Revision 1.8  2006/07/04 09:30:56  alexandre_tb
167
* Revision 1.8  2006/07/04 09:30:56  alexandre_tb
165
* Ajout d'une variable global lang pour éviter les warning dans certains cas
168
* Ajout d'une variable global lang pour éviter les warning dans certains cas
166
*
169
*
167
* Revision 1.7  2006/06/26 11:48:50  alexandre_tb
170
* Revision 1.7  2006/06/26 11:48:50  alexandre_tb
168
* typographie
171
* typographie
169
*
172
*
170
* Revision 1.6  2006/03/02 09:24:36  mathilde
173
* Revision 1.6  2006/03/02 09:24:36  mathilde
171
* remplacement des noms de tables de l'annuaire
174
* remplacement des noms de tables de l'annuaire
172
*
175
*
173
* Revision 1.5  2006/02/15 16:33:42  alexandre_tb
176
* Revision 1.5  2006/02/15 16:33:42  alexandre_tb
174
* ajout de la constante PROJET_UTILISATEUR_COORD
177
* ajout de la constante PROJET_UTILISATEUR_COORD
175
*
178
*
176
* Revision 1.4  2006/01/26 14:06:07  florian
179
* Revision 1.4  2006/01/26 14:06:07  florian
177
* ajout des constantes d'accès à vpopmail.
180
* ajout des constantes d'accès à vpopmail.
178
*
181
*
179
* Revision 1.3  2005/11/14 10:14:30  ddelon
182
* Revision 1.3  2005/11/14 10:14:30  ddelon
180
* Projets Wikini
183
* Projets Wikini
181
*
184
*
182
* Revision 1.2  2005/10/20 10:28:25  ddelon
185
* Revision 1.2  2005/10/20 10:28:25  ddelon
183
* Wikini complet dans l'intégrateur Wikini
186
* Wikini complet dans l'intégrateur Wikini
184
*
187
*
185
* Revision 1.1  2005/09/27 12:50:28  ddelon
188
* Revision 1.1  2005/09/27 12:50:28  ddelon
186
* Projet configuration
189
* Projet configuration
187
*
190
*
188
*
191
*
189
* +-- Fin du code ----------------------------------------------------------------------------------------+
192
* +-- Fin du code ----------------------------------------------------------------------------------------+
190
*/
193
*/
191
 
194
 
192
 
195
 
193
?>
196
?>