Subversion Repositories Sites.gentiana.org

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
43 jpm 1
<?php
2
// +------------------------------------------------------------------------------------------------------+
3
// | PHP version 4.1                                                                                      |
4
// +------------------------------------------------------------------------------------------------------+
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// +------------------------------------------------------------------------------------------------------+
7
// | This library is free software; you can redistribute it and/or                                        |
8
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | License as published by the Free Software Foundation; either                                         |
10
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// |                                                                                                      |
12
// | This library is distributed in the hope that it will be useful,                                      |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | Lesser General Public License for more details.                                                      |
16
// |                                                                                                      |
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                                  |
19
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// +------------------------------------------------------------------------------------------------------+
21
/**
22
* Fichier de configuration de l'annuaire
23
*
24
* A éditer de façon spécifique à chaque déploiement
25
*
26
*@package inscription
27
//Auteur original :
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
29
//Autres auteurs :
30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
33
// +------------------------------------------------------------------------------------------------------+
34
*/
35
 
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');
38
 
39
/**
40
//=========================DEFINITION DE VARIABLES =================================
41
* Définition des variables globales
42
//==================================================================================
43
*/
44
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
45
$GLOBALS['ann_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
46
 
47
/**
48
//==================================== LES URLS ==================================
49
* Constantes liées à l'utilisation des url
50
//==================================================================================
51
*/
52
$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
define('ANN_URL_ACTUALITE', 'http://www.gentiana.org/page:20') ;
55
/** 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
 
58
/**
59
//==================================== LES CHEMINS =================================
60
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
61
* applications.
62
//==================================================================================
63
*/
64
define('ANN_CHEMIN_APPLI','client/annuaire/');//le chemin vers l'application courrante
65
define('ANN_CHEMIN_LIBRAIRIE', ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
66
 
67
/**
68
//==================================== CONSTANTES ==================================
69
* Constantes des noms de tables et de champs dans l'annuaire
70
//==================================================================================
71
*/
72
define ('ANN_ANNUAIRE', 'annuaire');
73
define ('ANN_CHAMPS_NOM', 'a_nom'); // Nom du champs nom
74
define ('ANN_CHAMPS_MAIL', 'a_mail'); // Nom du champs mail
75
define ('ANN_CHAMPS_PRENOM', 'a_prenom'); // Nom du champs prénom
76
define ('ANN_CHAMPS_ID', 'a_id'); // Nom du champs id
77
define ('ANN_CHAMPS_DATE_INS', 'a_date_inscription');
78
define ('ANN_CHAMPS_CODE_POSTAL', 'a_code_postal');
79
define ('ANN_CHAMPS_VILLE', 'a_ville');
80
define ('ANN_CHAMPS_PAYS', 'a_ce_pays');
81
 
82
define ('ANN_TABLE_PAYS', 'carto_PAYS');
83
define ('ANN_GC_ID', 'CP_ID_Pays');
84
define ('ANN_GC_NOM', 'CP_Intitule_pays');
85
 
86
define ('ANN_TABLE_DEPARTEMENT', 'carto_DEPARTEMENT') ;
87
 
88
/**
89
//==================================== CONSTANTES==================================
90
* Constantes contenant des mails
91
//==================================================================================
92
*/
93
define ('ANN_MAIL_ADMIN', 'Pierre SALEN <p.salen@gentiana.org>, Jean-Pascal MILCENT<jpm@tela-botanica.org>') ;
94
?>