Subversion Repositories Applications.papyrus

Rev

Rev 234 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
310 florian 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
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                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: ins_config.inc.php,v 1.3 2005-03-21 16:57:30 florian Exp $
23
/**
24
* Fichier de configuration de l'inscription
25
*
26
* A éditer de façon spécifique à chaque déploiement
27
*
28
*@package inscription
29
//Auteur original :
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
//Autres auteurs :
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $ $Date: 2005-03-21 16:57:30 $
35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
 
39
/**
40
//=========================DEFINITION DE VARIABLES =================================
41
* Définition des variables globales
42
//==================================================================================
43
*/
44
 
45
$GLOBALS['AUTH'] = &$_GEN_commun['pear_auth'] ;
46
 
47
//================================ BASE DE DONNEES =================================
48
// Constantes et variables globales d'accès à la base de donnée
49
//==================================================================================
50
define ('INS_PROTOCOLE', 'mysql') ;
51
define ('INS_UTILISATEUR', 'testP') ;
52
define ('INS_MOT_DE_PASSE_DB', 'ecnat') ;
53
define ('INS_HOTE', 'localhost') ;
54
define ('INS_BASE', 'testP') ;
55
define ('INS_TYPE_ENCODAGE','MD5');
56
define ('INS_NOM_SESSION','Educ-Envir.org'); //Nom de la session PHP
57
define ('INS_DUREE_SESSION',3600*12); //Durée de la session PHP
58
// Formation du dsn
59
$dsn = INS_PROTOCOLE.'://'.INS_UTILISATEUR.':'.INS_MOT_DE_PASSE_DB.'@'.INS_HOTE.'/'.INS_BASE ;
60
// Connection à la base de donnée
61
$GLOBALS['ins_db'] = & DB::connect($dsn) ;
62
//$GLOBALS['ins_db'] = &$_GEN_commun['pear_db'] ;
63
 
64
/**
65
//==================================== LES URLS ==================================
66
* Constantes liées à l'utilisation des url
67
//==================================================================================
68
*/
69
$GLOBALS['ins_url'] = &$_GEN_commun['url'];        //l'url de base de l'application, un objet Net_URL
70
                                                            // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;
71
 
72
define ("INS_LANGUE_DEFAUT", "fr") ;
73
 
74
/**
75
//=========================DEFINITION DE VARIABLES =================================
76
* Définition des variables globales
77
//==================================================================================
78
*/
79
 
80
define ("INS_CHEMIN_FICHIER", "client/inscription/") ;
81
 
82
/**
83
//==================================== CONSTANTES ==================================
84
* Constantes des noms de tables et de champs dans l'annuaire
85
//==================================================================================
86
*/
87
 
88
define ("INS_ANNUAIRE", "annuaire") ;
89
define ("INS_CHAMPS_ID", "ga_id_utilisateur") ;                   // Nom du champs nom
90
define ("INS_CHAMPS_MAIL", "ga_mail") ;                  // Nom du champs mail
91
define ("INS_CHAMPS_NOM", "ga_nom") ;
92
define ("INS_CHAMPS_PRENOM", "ga_prenom") ;
93
define ("INS_CHAMPS_PASSE", "ga_motpasse") ;
94
define ("INS_CHAMPS_PAYS", "ga_ce_pays") ;
95
define ("INS_CHAMPS_CODE_POSTAL", "ga_code_postal") ;
96
define ("INS_CHAMPS_DEPARTEMENT", "ga_ce_departement") ;
97
define ("INS_CHAMPS_ADRESSE_1", "ga_adresse1") ;
98
define ("INS_CHAMPS_ADRESSE_2", "ga_adresse2") ;
99
define ("INS_CHAMPS_VILLE", "ga_ville") ;
100
define ("INS_CHAMPS_DATE_INSCRIPTION", "ga_date_inscription") ;
101
define ("INS_CHAMPS_EST_STRUCTURE", "ga_est_structure") ;
102
define ("INS_CHAMPS_SIGLE_STRUCTURE", "ga_sigle_structure") ;
103
 
104
define ("INS_CHAMPS_TELEPHONE", "ga_telephone") ;          // Laisser vide si non voulu
105
define ("INS_CHAMPS_FAX", "ga_fax") ;          // Laisser vide si non voulu
106
define ("INS_CHAMPS_STRUCTURE", "ga_ce_structure") ;          // Laisser vide si non voulu
107
 
108
// Les champs suivant concernent la table contenant les pays et les codes iso
109
//
110
define ("INS_TABLE_DPT", "gen_departement") ;           // Nom de la table département
111
define ("INS_TABLE_PAYS", "gen_pays") ;             // Nom de la table pays
112
define ("INS_CHAMPS_ID_PAYS", "gp_id_pays") ;
113
define ("INS_CHAMPS_LABEL_PAYS", "gp_nom") ;
114
 
115
/**
116
//==================================== PARAMETRAGE =================================
117
* Pour régler certaines fonctionnalité de l'application
118
//==================================================================================
119
*/
120
 
121
define ("INS_FORMULAIRE_STRUCTURE", 1) ;    // Mettre à 1 si on propose un formulaire pour les structures
122
 
123
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "florian@ecole-et-nature.org") ;
124
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Ecole et Nature] Inscription") ;
125
 
126
/**
127
//==================================== PARAMETRAGE =================================
128
* Réglage des applications externes SPIP, Wikini
129
//==================================================================================
130
*/
131
define ("INS_UTILISE_SPIP", 0) ;    // Mettre à 0, s'il n'y a pas d'incription à SPIP
132
 
133
if (INS_UTILISE_SPIP) {
134
    define ("INS_CHEMIN_SPIP", "") ;
135
}
136
 
137
define ("INS_UTILISE_WIKINI", 0) ;  // Mettre à 0, s'il n'y a pas d'inscription à Wikini
138
if (INS_UTILISE_WIKINI) {
139
    define ("INS_CHAMPS_NOM_WIKINI", "ga_nom_wikini") ;  // Le nom du champs contenant le nom wikini dans l'annuaire
140
}
141
/* +--Fin du code ----------------------------------------------------------------------------------------+
142
*
143
* $Log: not supported by cvs2svn $
144
* Revision 1.2  2004/12/17 17:42:43  alex
145
* ajout du numéro de tel, du fax et de la structure
146
*
147
* Revision 1.1  2004/12/15 13:32:38  alex
148
* version initiale
149
*
150
* Revision 1.2  2004/09/01 16:38:17  alex
151
* modification de la configuration
152
*
153
* Revision 1.1  2004/07/06 15:42:17  alex
154
* en cours
155
*
156
* Revision 1.4  2004/07/06 15:31:33  alex
157
* en cours
158
*
159
* Revision 1.3  2004/06/30 10:00:53  alex
160
* ajout de champs pour gérer les pays
161
*
162
* Revision 1.2  2004/06/18 09:20:54  alex
163
* version initiale
164
*
165
*
166
* +-- Fin du code ----------------------------------------------------------------------------------------+
167
*/
231 alex 168
?>