Subversion Repositories Applications.bazar

Rev

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

Rev 64 Rev 75
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: baz_config.inc.php,v 1.10 2006-01-03 10:19:31 florian Exp $
22
// CVS : $Id: baz_config.inc.php,v 1.11 2006-01-18 10:03:36 florian Exp $
23
/**
23
/**
24
* Fichier de configuration du bazar
24
* Fichier de configuration du bazar
25
*
25
*
26
* A éditer de façon spécifique à chaque déploiement
26
* A éditer de façon spécifique à chaque déploiement
27
*
27
*
28
*@package bazar
28
*@package bazar
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.10 $ $Date: 2006-01-03 10:19:31 $
34
*@version       $Revision: 1.11 $ $Date: 2006-01-18 10:03:36 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
//==================================== LES FLUX RSS==================================
37
//==================================== LES FLUX RSS==================================
38
// Constantes liées aux flux RSS
38
// Constantes liées aux flux RSS
39
//==================================================================================
39
//==================================================================================
40
 
40
 
41
define('BAZ_CREER_FICHIERS_XML',0);      //0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/
41
define('BAZ_CREER_FICHIERS_XML',0);      //0=ne cree pas le fichier XML dans rss/; 1=cree le fichier XML dans rss/
42
define('BAZ_RSS_NOMSITE','Educ-Envir.org');    //Nom du site indiqué dans les flux rss
42
define('BAZ_RSS_NOMSITE','Educ-Envir.org');    //Nom du site indiqué dans les flux rss
43
define('BAZ_RSS_ADRESSESITE','http://educ-envir.org');   //Adresse Internet du site indiqué dans les flux rss
43
define('BAZ_RSS_ADRESSESITE','http://educ-envir.org');   //Adresse Internet du site indiqué dans les flux rss
44
define('BAZ_RSS_DESCRIPTIONSITE','Educ-Envir.org, pour mutualiser l\'information en éducation à l\'environnement.');    //Description du site indiquée dans les flux rss
44
define('BAZ_RSS_DESCRIPTIONSITE','Educ-Envir.org, pour mutualiser l\'information en éducation à l\'environnement.');    //Description du site indiquée dans les flux rss
45
define('BAZ_RSS_LOGOSITE','http://ecole-et-nature.org/images/Logo_REN-Site.png');     //Logo du site indiqué dans les flux rss
45
define('BAZ_RSS_LOGOSITE','http://ecole-et-nature.org/images/Logo_REN-Site.png');     //Logo du site indiqué dans les flux rss
46
define('BAZ_RSS_MANAGINGEDITOR', '') ;     //Managing editor du site
46
define('BAZ_RSS_MANAGINGEDITOR', '') ;     //Managing editor du site
47
define('BAZ_RSS_WEBMASTER', '') ;     //Mail Webmaster du site
47
define('BAZ_RSS_WEBMASTER', '') ;     //Mail Webmaster du site
48
define('BAZ_RSS_CATEGORIE', 'Education a l\'environnement'); //catégorie du flux RSS
48
define('BAZ_RSS_CATEGORIE', 'Education a l\'environnement'); //catégorie du flux RSS
49
 
49
 
50
 
50
 
51
//==================================== PARAMETRAGE =================================
51
//==================================== PARAMETRAGE =================================
52
// Pour régler certaines fonctionnalité de l'application
52
// Pour régler certaines fonctionnalité de l'application
53
//==================================================================================
53
//==================================================================================
54
 
54
 
55
define ('BAZ_ETAT_VALIDATION',0); 
55
define ('BAZ_ETAT_VALIDATION',0); 
56
//Valeur par défaut d'état de la fiche annonce après saisie 
56
//Valeur par défaut d'état de la fiche annonce après saisie 
57
//Mettre 0 pour 'en attente de validation d'un administrateur'
57
//Mettre 0 pour 'en attente de validation d'un administrateur'
58
//Mettre 1 pour 'directement validée en ligne'
58
//Mettre 1 pour 'directement validée en ligne'
59
 
59
 
60
define ('BAZ_TAILLE_MAX_FICHIER',2000*1024);
60
define ('BAZ_TAILLE_MAX_FICHIER',2000*1024);
61
//Valeur maximale en octets pour la taille d'un fichier joint à télécharger
61
//Valeur maximale en octets pour la taille d'un fichier joint à télécharger
62
 
62
 
63
define ('BAZ_TYPE_AFFICHAGE_LISTE', '');
63
define ('BAZ_TYPE_AFFICHAGE_LISTE', '');
64
$GLOBALS['_BAZAR_']['db'] = & $GLOBALS['_GEN_commun']['pear_db'];
64
$GLOBALS['_BAZAR_']['db'] = & $GLOBALS['_GEN_commun']['pear_db'];
65
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'];
65
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'];
66
	
66
	
67
define ('BAZ_ANNUAIRE','annuaire'); //Table annuaire
67
define ('BAZ_ANNUAIRE','annuaire'); //Table annuaire
68
define ('BAZ_CHAMPS_ID','a_id'); //Champs index sur la table annuaire
68
define ('BAZ_CHAMPS_ID','a_id'); //Champs index sur la table annuaire
69
define ('BAZ_CHAMPS_NOM','a_nom'); //Champs nom sur la table annuaire
69
define ('BAZ_CHAMPS_NOM','a_nom'); //Champs nom sur la table annuaire
70
define ('BAZ_CHAMPS_PRENOM','a_prenom'); //Champs prenom sur la table annuaire
70
define ('BAZ_CHAMPS_PRENOM','a_prenom'); //Champs prenom sur la table annuaire
71
define ('BAZ_CHAMPS_STRUCTURE','a_structure'); //Champs indiquant si c'est une structure qui est identifiée
71
define ('BAZ_CHAMPS_STRUCTURE','a_structure'); //Champs indiquant si c'est une structure qui est identifiée
72
define ('BAZ_CHAMPS_EMAIL','a_mail'); //Champs prenom sur la table annuaire
72
define ('BAZ_CHAMPS_EMAIL','a_mail'); //Champs prenom sur la table annuaire
73
 
73
 
74
/** Réglage des droits pour déposer des annoces */
74
/** Réglage des droits pour déposer des annoces */
75
// Mettre à true pour limiter le dépot aux rédacteurs
75
// Mettre à true pour limiter le dépot aux rédacteurs
76
define ('BAZ_RESTREINDRE_DEPOT', false) ;
76
define ('BAZ_RESTREINDRE_DEPOT', false) ;
77
 
77
 
78
$GLOBALS['_BAZAR_']['url'] = $GLOBALS['_GEN_commun']['url'];
78
$GLOBALS['_BAZAR_']['url'] = $GLOBALS['_GEN_commun']['url'];
79
//BAZ_CHEMIN_APPLI : chemin vers l'application bazar METTRE UN SLASH (/) A LA FIN!!!!
79
//BAZ_CHEMIN_APPLI : chemin vers l'application bazar METTRE UN SLASH (/) A LA FIN!!!!
80
define('BAZ_CHEMIN_APPLI', PAP_CHEMIN_RACINE.'client/bazar/');
80
define('BAZ_CHEMIN_APPLI', PAP_CHEMIN_RACINE.'client/bazar/');
81
 
81
 
82
//==================================== LES LANGUES ==================================
82
//==================================== LES LANGUES ==================================
83
// Constantes liées à l'utilisation des langues
83
// Constantes liées à l'utilisation des langues
84
//==================================================================================
84
//==================================================================================
85
 
-
 
-
 
85
$GLOBALS['_BAZAR_']['langue']='fr-FR';
86
define ('BAZ_LANGUE_PAR_DEFAUT', 'fr') ; //Indique un code langue par défaut
86
define ('BAZ_LANGUE_PAR_DEFAUT', 'fr') ; //Indique un code langue par défaut
87
define ('BAZ_VAR_URL_LANGUE', 'lang') ; //Nom de la variable GET qui sera passée dans l'URL (Laisser vide pour les sites monolingues)
87
define ('BAZ_VAR_URL_LANGUE', 'lang') ; //Nom de la variable GET qui sera passée dans l'URL (Laisser vide pour les sites monolingues)
88
//code pour l'inclusion des langues NE PAS MODIFIER
88
//code pour l'inclusion des langues NE PAS MODIFIER
89
if (BAZ_VAR_URL_LANGUE != '' && isset (${BAZ_VAR_URL_LANGUE})) {
89
if (BAZ_VAR_URL_LANGUE != '' && isset (${BAZ_VAR_URL_LANGUE})) {
90
    include_once BAZ_CHEMIN_APPLI.'langues/baz_langue_'.${BAZ_VAR_URL_LANGUE}.'.inc.php';
90
    include_once BAZ_CHEMIN_APPLI.'langues/baz_langue_'.${BAZ_VAR_URL_LANGUE}.'.inc.php';
91
} else {
91
} else {
92
    include_once BAZ_CHEMIN_APPLI.'langues/baz_langue_'.BAZ_LANGUE_PAR_DEFAUT.'.inc.php';
92
    include_once BAZ_CHEMIN_APPLI.'langues/baz_langue_'.BAZ_LANGUE_PAR_DEFAUT.'.inc.php';
93
}
93
}
94
 
94
 
95
 
95
 
96
/* +--Fin du code ----------------------------------------------------------------------------------------+
96
/* +--Fin du code ----------------------------------------------------------------------------------------+
97
*
97
*
98
* $Log: not supported by cvs2svn $
98
* $Log: not supported by cvs2svn $
-
 
99
* Revision 1.10  2006/01/03 10:19:31  florian
-
 
100
* Mise à jour pour accepter des parametres dans papyrus: faire apparaitre ou non le menu, afficher qu'un type de fiches, définir l'action par défaut...
-
 
101
*
99
* Revision 1.9  2005/12/16 15:47:54  alexandre_tb
102
* Revision 1.9  2005/12/16 15:47:54  alexandre_tb
100
* ajout de l'option restreindre dépôt
103
* ajout de l'option restreindre dépôt
101
*
104
*
102
* Revision 1.8  2005/10/24 09:42:21  florian
105
* Revision 1.8  2005/10/24 09:42:21  florian
103
* mise a jour appropriation
106
* mise a jour appropriation
104
*
107
*
105
* Revision 1.7  2005/10/21 16:15:04  florian
108
* Revision 1.7  2005/10/21 16:15:04  florian
106
* mise a jour appropriation
109
* mise a jour appropriation
107
*
110
*
108
* Revision 1.6  2005/09/30 12:22:54  florian
111
* Revision 1.6  2005/09/30 12:22:54  florian
109
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
112
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
110
*
113
*
111
* Revision 1.4  2005/07/21 19:03:12  florian
114
* Revision 1.4  2005/07/21 19:03:12  florian
112
* nouveautés bazar: templates fiches, correction de bugs, ...
115
* nouveautés bazar: templates fiches, correction de bugs, ...
113
*
116
*
114
* Revision 1.2  2005/02/22 15:34:17  florian
117
* Revision 1.2  2005/02/22 15:34:17  florian
115
* integration dans Papyrus
118
* integration dans Papyrus
116
*
119
*
117
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
120
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
118
* Import initial de Bazar
121
* Import initial de Bazar
119
*
122
*
120
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
123
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
121
* Import initial
124
* Import initial
122
*
125
*
123
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
126
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
124
* import de la nouvelle version
127
* import de la nouvelle version
125
*
128
*
126
* Revision 1.5  2004/07/08 12:15:32  florian
129
* Revision 1.5  2004/07/08 12:15:32  florian
127
* ajout constantes pour flux RSS
130
* ajout constantes pour flux RSS
128
*
131
*
129
* Revision 1.4  2004/07/06 16:21:54  florian
132
* Revision 1.4  2004/07/06 16:21:54  florian
130
* débuggage modification + MAJ flux RSS
133
* débuggage modification + MAJ flux RSS
131
*
134
*
132
* Revision 1.3  2004/07/02 14:50:47  florian
135
* Revision 1.3  2004/07/02 14:50:47  florian
133
* ajout configuration de l'etat de l'annonce (visible,masquée,...)
136
* ajout configuration de l'etat de l'annonce (visible,masquée,...)
134
*
137
*
135
* Revision 1.2  2004/07/01 10:13:30  florian
138
* Revision 1.2  2004/07/01 10:13:30  florian
136
* modif Florian
139
* modif Florian
137
*
140
*
138
* Revision 1.1  2004/06/23 09:58:32  alex
141
* Revision 1.1  2004/06/23 09:58:32  alex
139
* version initiale
142
* version initiale
140
*
143
*
141
* Revision 1.1  2004/06/18 09:00:41  alex
144
* Revision 1.1  2004/06/18 09:00:41  alex
142
* version initiale
145
* version initiale
143
*
146
*
144
*
147
*
145
* +-- Fin du code ----------------------------------------------------------------------------------------+
148
* +-- Fin du code ----------------------------------------------------------------------------------------+
146
*/
149
*/
147
?>
150
?>