Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 365 Rev 406
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
-
 
3
// +------------------------------------------------------------------------------------------------------+
2
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
3
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
4
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
6
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
7
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
8
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
9
// | License as published by the Free Software Foundation; either                                         |
11
// | 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.                                   |
12
// |                                                                                                      |
11
// |                                                                                                      |
13
// | 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,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
15
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
16
// |                                                                                                      |
18
// | 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                                     |
19
// | 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                                  |
20
// | 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                            |
21
// +------------------------------------------------------------------------------------------------------+
20
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
-
 
23
/**
21
/**
24
* Fichier de configuration de l'annuaire
22
* Fichier de configuration de l'annuaire
25
*
23
*
26
* A éditer de façon spécifique à chaque déploiement
24
* A éditer de façon spécifique à chaque déploiement
27
*
25
*
28
*@package inscription
26
*@package inscription
29
//Auteur original :
27
//Auteur original :
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
//Autres auteurs :
29
//Autres auteurs :
32
*@author        Aucun
30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.2 $
32
*@version       $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
35
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
36
*/
34
*/
37
 
35
 
38
// 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
39
setlocale(LC_CTYPE, "fr_FR");
37
setlocale(LC_CTYPE, 'fr_FR');
40
 
38
 
41
/**
39
/**
42
//=========================DEFINITION DE VARIABLES =================================
40
//=========================DEFINITION DE VARIABLES =================================
43
* Définition des variables globales
41
* Définition des variables globales
44
//==================================================================================
42
//==================================================================================
45
*/
43
*/
46
$GLOBALS['AUTH'] =& $_GEN_commun['pear_auth'] ;
44
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
47
$GLOBALS['ann_db'] =& $_GEN_commun['pear_db'] ;
45
$GLOBALS['ann_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
48
 
46
 
49
/**
47
/**
50
//==================================== LES URLS ==================================
48
//==================================== LES URLS ==================================
51
* Constantes liées à l'utilisation des url
49
* Constantes liées à l'utilisation des url
52
//==================================================================================
50
//==================================================================================
53
*/
51
*/
54
$GLOBALS['ann_url'] =& $_GEN_commun['url'];//l'url de base de l'application, un objet Net_URL
52
$GLOBALS['ann_url'] =& $GLOBALS['_GEN_commun']['url'];//l'url de base de l'application, un objet Net_URL
55
                                           // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;
53
                                           // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;
56
define("ANN_URL_ACTUALITE", 'http://www.tela-botanica.org/actu/article220.html') ;
54
define('ANN_URL_ACTUALITE', 'http://www.tela-botanica.org/actu/article220.html') ;
57
/**
-
 
58
//=========================DEFINITION DE VARIABLES =================================
55
/** Variable définissant la lettre par défaut du parcour alphabétique.*/
59
* Définition des variables globales
56
define('ANN_LETTRE_DEFAUT', 'A') ;// une lettre de l'aphabet ou "tous"
60
//==================================================================================
57
/** Variable définissant si oui ou non on affiche l'entrée "tous" dans le parcour alphabétique.*/
61
*/
-
 
62
 
-
 
-
 
58
define('ANN_TOUS_BOOL', false) ;// true ou false
63
/**
59
/**
64
//==================================== LES CHEMINS =================================
60
//==================================== LES CHEMINS =================================
65
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
61
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
66
* applications.
62
* applications.
67
//==================================================================================
63
//==================================================================================
68
*/
64
*/
69
define("ANN_CHEMIN_APPLI",'client/annuaire/');//le chemin vers l'application courrante
65
define('ANN_CHEMIN_APPLI','client/annuaire/');//le chemin vers l'application courrante
70
define("ANN_CHEMIN_LIBRAIRIE", ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
66
define('ANN_CHEMIN_LIBRAIRIE', ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
71
 
67
 
72
/**
68
/**
73
//==================================== CONSTANTES ==================================
69
//==================================== CONSTANTES ==================================
74
* Constantes des noms de tables et de champs dans l'annuaire
70
* Constantes des noms de tables et de champs dans l'annuaire
75
//==================================================================================
71
//==================================================================================
76
*/
72
*/
77
define ("ANN_ANNUAIRE", "annuaire_tela");
73
define ("ANN_ANNUAIRE", "annuaire_tela");
78
define ("ANN_CHAMPS_NOM", "U_NAME"); // Nom du champs nom
74
define ("ANN_CHAMPS_NOM", "U_NAME"); // Nom du champs nom
79
define ("ANN_CHAMPS_MAIL", "U_MAIL"); // Nom du champs mail
75
define ("ANN_CHAMPS_MAIL", "U_MAIL"); // Nom du champs mail
80
define ("ANN_CHAMPS_PRENOM", "U_SURNAME"); // Nom du champs prénom
76
define ("ANN_CHAMPS_PRENOM", "U_SURNAME"); // Nom du champs prénom
81
define ("ANN_CHAMPS_ID", "U_ID"); // Nom du champs id
77
define ("ANN_CHAMPS_ID", "U_ID"); // Nom du champs id
82
define ("ANN_CHAMPS_DATE_INS", "U_DATE");
78
define ("ANN_CHAMPS_DATE_INS", "U_DATE");
83
define ("ANN_CHAMPS_CODE_POSTAL", "U_ZIP_CODE");
79
define ("ANN_CHAMPS_CODE_POSTAL", "U_ZIP_CODE");
84
define ("ANN_CHAMPS_VILLE", "U_CITY");
80
define ("ANN_CHAMPS_VILLE", "U_CITY");
85
define ("ANN_CHAMPS_PAYS", "U_COUNTRY");
81
define ("ANN_CHAMPS_PAYS", "U_COUNTRY");
86
 
82
 
87
define ("ANN_TABLE_PAYS", "gen_COUNTRY");
83
define ("ANN_TABLE_PAYS", "gen_COUNTRY");
88
define ("ANN_GC_ID", "GC_ID");
84
define ("ANN_GC_ID", "GC_ID");
89
define ("ANN_GC_NOM", "GC_NAME");
85
define ("ANN_GC_NOM", "GC_NAME");
90
 
86
 
91
define ("ANN_TABLE_DEPARTEMENT", "gen_FRENCH_DPT") ;
87
define ("ANN_TABLE_DEPARTEMENT", "gen_FRENCH_DPT") ;
92
 
88
 
93
/**
89
/**
94
//==================================== CONSTANTES==================================
90
//==================================== CONSTANTES==================================
95
* Constantes contenant des mails
91
* Constantes contenant des mails
96
//==================================================================================
92
//==================================================================================
97
*/
93
*/
98
define ("ANN_MAIL_ADMIN", "carto@tela-botanica.org") ;
94
define ('ANN_MAIL_ADMIN', 'Jean-Pascal MILCENT<jpm@tela-botanica.org>') ;
99
 
-
 
100
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
101
*
-
 
102
* $Log: ann_config.inc.php,v $
-
 
103
* Revision 1.2  2005/03/08 09:43:34  alex
-
 
104
* --
-
 
105
*
-
 
106
* Revision 1.1.1.1  2005/01/03 17:27:49  alex
-
 
107
* Import initial
-
 
108
*
-
 
109
* Revision 1.1  2005/01/03 17:19:20  alex
-
 
110
* version initiale
-
 
111
*
-
 
112
*
-
 
113
* +-- Fin du code ----------------------------------------------------------------------------------------+
-
 
114
*/
-
 
115
?>
95
?>
116
96