Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 521 Rev 589
1
<?php
1
<?php
2
// +------------------------------------------------------------------------------------------------------+
2
// +------------------------------------------------------------------------------------------------------+
3
// | PHP version 4.1                                                                                      |
3
// | PHP version 4.1                                                                                      |
4
// +------------------------------------------------------------------------------------------------------+
4
// +------------------------------------------------------------------------------------------------------+
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// +------------------------------------------------------------------------------------------------------+
6
// +------------------------------------------------------------------------------------------------------+
7
// | This library is free software; you can redistribute it and/or                                        |
7
// | This library is free software; you can redistribute it and/or                                        |
8
// | modify it under the terms of the GNU Lesser General Public                                           |
8
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | License as published by the Free Software Foundation; either                                         |
9
// | License as published by the Free Software Foundation; either                                         |
10
// | version 2.1 of the License, or (at your option) any later version.                                   |
10
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// |                                                                                                      |
11
// |                                                                                                      |
12
// | This library is distributed in the hope that it will be useful,                                      |
12
// | This library is distributed in the hope that it will be useful,                                      |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | Lesser General Public License for more details.                                                      |
15
// | Lesser General Public License for more details.                                                      |
16
// |                                                                                                      |
16
// |                                                                                                      |
17
// | You should have received a copy of the GNU Lesser General Public                                     |
17
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | License along with this library; if not, write to the Free Software                                  |
18
// | License along with this library; if not, write to the Free Software                                  |
19
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
19
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// +------------------------------------------------------------------------------------------------------+
20
// +------------------------------------------------------------------------------------------------------+
21
/**
21
/**
22
* Fichier de configuration de l'annuaire
22
* Fichier de configuration de l'annuaire
23
*
23
*
24
* A éditer de façon spécifique à chaque déploiement
24
* A éditer de façon spécifique à chaque déploiement
25
*
25
*
26
*@package inscription
26
*@package inscription
27
//Auteur original :
27
//Auteur original :
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
32
*@version       $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués
36
// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués
37
setlocale(LC_CTYPE, 'fr_FR');
37
setlocale(LC_CTYPE, 'fr_FR');
38
 
38
 
39
/**
39
/**
40
//=========================DEFINITION DE VARIABLES =================================
40
//=========================DEFINITION DE VARIABLES =================================
41
* Définition des variables globales
41
* Définition des variables globales
42
//==================================================================================
42
//==================================================================================
43
*/
43
*/
44
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
44
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
45
$GLOBALS['ann_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
45
$GLOBALS['ann_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
-
 
46
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
46
 
47
 
47
/**
48
/**
48
//==================================== LES URLS ==================================
49
//==================================== LES URLS ==================================
49
* Constantes liées à l'utilisation des url
50
* Constantes liées à l'utilisation des url
50
//==================================================================================
51
//==================================================================================
51
*/
52
*/
52
$GLOBALS['ann_url'] =& $GLOBALS['_GEN_commun']['url'];//l'url de base de l'application, un objet Net_URL
53
$GLOBALS['ann_url'] =& $GLOBALS['_GEN_commun']['url'];//l'url de base de l'application, un objet Net_URL
53
                                           // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;
54
                                           // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;
54
define('ANN_URL_ACTUALITE', 'http://www.tela-botanica.org/actu/article220.html') ;
55
define('ANN_URL_ACTUALITE', 'http://www.tela-botanica.org/actu/article220.html') ;
55
/** Variable définissant la lettre par défaut du parcour alphabétique.*/
56
/** Variable définissant la lettre par défaut du parcour alphabétique.*/
56
define('ANN_LETTRE_DEFAUT', 'A') ;// une lettre de l'aphabet ou "tous"
57
define('ANN_LETTRE_DEFAUT', 'A') ;// une lettre de l'aphabet ou "tous"
57
/** Variable définissant si oui ou non on affiche l'entrée "tous" dans le parcour alphabétique.*/
58
/** Variable définissant si oui ou non on affiche l'entrée "tous" dans le parcour alphabétique.*/
58
define('ANN_TOUS_BOOL', false) ;// true ou false
59
define('ANN_TOUS_BOOL', false) ;// true ou false
59
/**
60
/**
60
//==================================== LES CHEMINS =================================
61
//==================================== LES CHEMINS =================================
61
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
62
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
62
* applications.
63
* applications.
63
//==================================================================================
64
//==================================================================================
64
*/
65
*/
65
define('ANN_CHEMIN_APPLI','client/annuaire/');//le chemin vers l'application courrante
66
define('ANN_CHEMIN_APPLI','client/annuaire/');//le chemin vers l'application courrante
66
define('ANN_CHEMIN_LIBRAIRIE', ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
67
define('ANN_CHEMIN_LIBRAIRIE', ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
67
/**
68
/**
68
//==================================== CONSTANTES ==================================
69
//==================================== CONSTANTES ==================================
69
* Constantes des noms de tables et de champs dans l'annuaire
70
* Constantes des noms de tables et de champs dans l'annuaire
70
//==================================================================================
71
//==================================================================================
71
*/
72
*/
72
define ("ANN_ANNUAIRE", "annuaire_tela");
73
define ("ANN_ANNUAIRE", "annuaire_tela");
73
define ("ANN_CHAMPS_NOM", "U_NAME"); // Nom du champs nom
74
define ("ANN_CHAMPS_NOM", "U_NAME"); // Nom du champs nom
74
define ("ANN_CHAMPS_MAIL", "U_MAIL"); // Nom du champs mail
75
define ("ANN_CHAMPS_MAIL", "U_MAIL"); // Nom du champs mail
75
define ("ANN_CHAMPS_PRENOM", "U_SURNAME"); // Nom du champs prénom
76
define ("ANN_CHAMPS_PRENOM", "U_SURNAME"); // Nom du champs prénom
76
define ("ANN_CHAMPS_ID", "U_ID"); // Nom du champs id
77
define ("ANN_CHAMPS_ID", "U_ID"); // Nom du champs id
77
define ("ANN_CHAMPS_DATE_INS", "U_DATE");
78
define ("ANN_CHAMPS_DATE_INS", "U_DATE");
78
define ("ANN_CHAMPS_CODE_POSTAL", "U_ZIP_CODE");
79
define ("ANN_CHAMPS_CODE_POSTAL", "U_ZIP_CODE");
79
define ("ANN_CHAMPS_VILLE", "U_CITY");
80
define ("ANN_CHAMPS_VILLE", "U_CITY");
80
define ("ANN_CHAMPS_PAYS", "U_COUNTRY");
81
define ("ANN_CHAMPS_PAYS", "U_COUNTRY");
81
 
82
 
82
define ("ANN_TABLE_PAYS", "gen_COUNTRY");
83
define ("ANN_TABLE_PAYS", "gen_COUNTRY");
83
define ("ANN_GC_ID", "GC_ID");
84
define ("ANN_GC_ID", "GC_ID");
84
define ("ANN_GC_NOM", "GC_NAME");
85
define ("ANN_GC_NOM", "GC_NAME");
85
 
86
 
86
define ("ANN_TABLE_DEPARTEMENT", "gen_FRENCH_DPT") ;
87
define ("ANN_TABLE_DEPARTEMENT", "gen_FRENCH_DPT") ;
87
 
88
 
88
define ('MAIL_MODERATION','moderation@tela-botanica.org') ;
89
define ('MAIL_MODERATION','moderation@tela-botanica.org') ;
-
 
90
 
-
 
91
/**
-
 
92
//==================================== CONSTANTES ==================================
-
 
93
* Constantes des applications extérieures
-
 
94
//==================================================================================
-
 
95
*/
-
 
96
define ('INS_UTILISE_LISTE', true);
-
 
97
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org');
-
 
98
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org');
-
 
99
 
-
 
100
define ('INS_UTILISE_SPIP', 1);
-
 
101
if (INS_UTILISE_SPIP) {
-
 
102
	define ('INS_BDD_SPIP', 'tela_prod_spip_actu');
-
 
103
}
-
 
104
 
-
 
105
define ('ANNUAIRE_ADMIN', 'gen_annuaire');
-
 
106
define ('ANNUAIRE_ADMIN_ID', 'ga_id_administrateur');
-
 
107
 
-
 
108
define(INS_CHAMPS_ID, 'U_ID');
-
 
109
define(INS_CHAMPS_MAIL, 'U_MAIL');
-
 
110
define(INS_ANNUAIRE, 'annuaire_tela');
-
 
111
define(INS_CHAMPS_NOM, 'U_NAME');
-
 
112
define(INS_CHAMPS_PRENOM, 'U_SURNAME');
-
 
113
 
89
 
114
 
90
/** Tableau global contenant les mails des administrateurs. */
115
/** Tableau global contenant les mails des administrateurs. */
91
// Liste des personne recevant le mail après envoie de courriel par l'annuaire
116
// Liste des personne recevant le mail après envoie de courriel par l'annuaire
92
$GLOBALS['mail_admin'] = array ('Accueil <accueil@tela-botanica.org>', 
117
$GLOBALS['mail_admin'] = array ('Accueil <accueil@tela-botanica.org>',
93
								'Daniel MATHIEU <dmathieu@tela-botanica.org>', 
118
								'Daniel MATHIEU <dmathieu@tela-botanica.org>',
94
								'Jean-Pascal MILCENT <jpm@tela-botanica.org>',
119
								'Jean-Pascal MILCENT <jpm@tela-botanica.org>',
95
								'Élise MOUYSSET <elise@tela-botanica.org>');  
120
								'Élise MOUYSSET <elise@tela-botanica.org>');
96
?>
121
?>