Subversion Repositories Sites.gentiana.org

Rev

Rev 44 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 44 Rev 63
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'inscription
22
* Fichier de configuration de l'inscription
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: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
32
*@version       $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
 
36
 
37
/**
37
/**
38
//=========================DEFINITION DE VARIABLES =================================
38
//=========================DEFINITION DE VARIABLES =================================
39
* Définition des variables globales
39
* Définition des variables globales
40
//==================================================================================
40
//==================================================================================
41
*/
41
*/
42
 
42
 
43
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
43
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
44
 
44
 
45
/**
45
/**
46
//==================================== LES URLS ==================================
46
//==================================== LES URLS ==================================
47
* Constantes liées à l'utilisation des url
47
* Constantes liées à l'utilisation des url
48
//==================================================================================
48
//==================================================================================
49
*/
49
*/
50
$GLOBALS['ins_url'] =& $GLOBALS['_GEN_commun']['url'] ;
50
$GLOBALS['ins_url'] =& $GLOBALS['_GEN_commun']['url'] ;
51
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
51
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
52
define('INS_CHEMIN_FICHIER', 'client/inscription/') ;
52
define('INS_CHEMIN_FICHIER', 'client/inscription/') ;
53
 
53
 
54
/**
54
/**
55
//==================================== CONSTANTES ==================================
55
//==================================== CONSTANTES ==================================
56
* Constantes des noms de tables et de champs dans l'annuaire
56
* Constantes des noms de tables et de champs dans l'annuaire
57
//==================================================================================
57
//==================================================================================
58
*/
58
*/
59
define ('INS_ANNUAIRE', 'annuaire') ;
59
define('INS_ANNUAIRE', 'annuaire') ;
60
define ('INS_CHAMPS_ID', 'a_id') ;
60
define ('INS_CHAMPS_ID', 'a_id') ;
61
define ('INS_CHAMPS_MAIL', 'a_mail');// Nom du champs mail
61
define ('INS_CHAMPS_MAIL', 'a_mail');// Nom du champs mail
62
define ('INS_CHAMPS_LOGIN', 'a_nom_wikini') ;
62
define ('INS_CHAMPS_LOGIN', 'a_nom_wikini') ;
63
define ('INS_CHAMPS_NOM', 'a_nom') ;
63
define ('INS_CHAMPS_NOM', 'a_nom') ;
64
define ('INS_CHAMPS_PRENOM', 'a_prenom') ;
64
define ('INS_CHAMPS_PRENOM', 'a_prenom') ;
65
define ('INS_CHAMPS_PASSE', 'a_mot_de_passe') ;
65
define ('INS_CHAMPS_PASSE', 'a_mot_de_passe') ;
66
define ('INS_CHAMPS_PAYS', 'a_ce_pays') ;
66
define ('INS_CHAMPS_PAYS', 'a_ce_pays') ;
-
 
67
define ('PROJET_PRENOM', 'a_prenom') ;             // Nom du champs prénom
-
 
68
define ('PROJET_DPT', 'carto_DEPARTEMENT') ;       // Nom de la table département
-
 
69
define ('INS_TABLE_PAYS', 'carto_PAYS') ;          // Nom de la table pays
-
 
70
define ('INS_CHAMPS_ID_PAYS', 'CP_ID_Pays') ;
-
 
71
define ('INS_CHAMPS_LABEL_PAYS', 'CP_Intitule_pays') ;
-
 
72
define ('INS_CHAMPS_PAYS_LG', 'CP_Langue_intitule') ;// Langue de l'intitule du pays
67
define ('INS_CHAMPS_CODE_POSTAL', 'a_code_postal') ;
73
define ('INS_CHAMPS_CODE_POSTAL', 'a_code_postal') ;
68
define ('INS_CHAMPS_VILLE', 'a_ville') ;
74
define ('INS_CHAMPS_VILLE', 'a_ville') ;
69
define ('INS_CHAMPS_ADRESSE_1', 'a_adresse1') ;
75
define ('INS_CHAMPS_ADRESSE_1', 'a_adresse1') ;
70
define ('INS_CHAMPS_ADRESSE_2', 'a_adresse2') ;
76
define ('INS_CHAMPS_ADRESSE_2', 'a_adresse2') ;
71
define ('INS_CHAMPS_REGION', 'a_region') ;
77
define ('INS_CHAMPS_REGION', 'a_region') ;
72
define ('INS_CHAMPS_DPT', 'a_numero_dpt') ;
78
define ('INS_CHAMPS_DPT', 'a_numero_dpt') ;
73
define ('INS_CHAMPS_SITE_WEB', 'a_site_internet') ;
79
define ('INS_CHAMPS_SITE_WEB', 'a_site_internet') ;
74
define ('INS_CHAMPS_TELEPHONE', 'a_telephone') ;
80
define ('INS_CHAMPS_TELEPHONE', 'a_telephone') ;
75
define ('INS_CHAMPS_FAX', 'a_fax') ;
81
define ('INS_CHAMPS_FAX', 'a_fax') ;
76
define ('INS_CHAMPS_STRUCTURE', 'a_structure') ;
82
define ('INS_CHAMPS_STRUCTURE', 'a_structure') ;
77
define ('INS_CHAMPS_DATE', 'a_date_inscription') ;
83
define ('INS_CHAMPS_DATE', 'a_date_inscription') ;
78
define ('INS_CHAMPS_LETTRE', 'a_lettre') ;  // Le champs qui indique si l'usager est inscrit à la lettre d'inscription
84
define ('INS_CHAMPS_LETTRE', 'a_lettre') ;  // Le champs qui indique si l'usager est inscrit à la lettre d'inscription
79
 
-
 
80
define ('PROJET_PRENOM', 'a_prenom') ;             // Nom du champs prénom
-
 
81
define ('PROJET_DPT', 'carto_DEPARTEMENT') ;       // Nom de la table département
-
 
82
define ('INS_TABLE_PAYS', 'carto_PAYS') ;          // Nom de la table pays
-
 
83
define ('INS_CHAMPS_ID_PAYS', 'CP_ID_Pays') ;
-
 
84
define ('INS_CHAMPS_LABEL_PAYS', 'CP_Intitule_pays') ;
-
 
85
define ('INS_CHAMPS_PAYS_LG', 'CP_Langue_intitule') ;// Langue de l'intitule du pays
-
 
86
 
85
 
87
/**
86
/**
88
//==================================== PARAMETRAGE =================================
87
//==================================== PARAMETRAGE =================================
89
* Pour régler certaines fonctionnalité de l'application
88
* Pour régler certaines fonctionnalité de l'application
90
//==================================================================================
89
//==================================================================================
91
*/
90
*/
92
// Indique le type de cryptage du mot de passe à appliquer (doit être identique à PEAR_AUTH)
91
// Indique le type de cryptage du mot de passe à appliquer (doit être identique à PEAR_AUTH)
93
define ('INS_MDP_CRYPTYPE', 'md5');// Choix : md5 seulement
92
define ('INS_MDP_CRYPTYPE', 'md5');// Choix : md5 seulement
94
 
93
 
95
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION', 'Association Gentiana <accueil@gentiana.org>') ;
94
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION', 'Association Gentiana <gentiana@gentiana.org>') ;
96
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET', '[Gentiana] Inscription') ;
95
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET', '[Gentiana] Inscription') ;
97
 
96
 
98
define ('INS_UTILISE_LISTE', false);// Mettre à false si pas de liste d'actu
97
define ('INS_UTILISE_LISTE', false);// Mettre à false si pas de liste d'actu
99
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org') ;
98
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org') ;
100
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org') ;
99
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org') ;
101
 
100
 
102
// Liste des personne recevant le mail après inscription
101
// Liste des personne recevant le mail après inscription
103
$GLOBALS['mail_admin'] = array ('Pierre SALEN <p.salen@gentiana.org>', 'Jean-Pascal MILCENT <jpm@tela-botanica.org>') ;   
102
$GLOBALS['mail_admin'] = array ('Pierre SALEN <p.salen@gentiana.org>', 'Jean-Pascal MILCENT <jpm@tela-botanica.org>') ;   
104
 
103
 
105
/**
104
/**
106
//==================================== PARAMETRAGE =================================
105
//==================================== PARAMETRAGE =================================
107
* Pour gérer la réécriture d'url de l'inscription
106
* Pour gérer la réécriture d'url de l'inscription
108
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
107
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
109
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
108
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
110
* Cela sert à racourcir l'URL de confirmation d'inscription
109
* Cela sert à racourcir l'URL de confirmation d'inscription
111
//==================================================================================
110
//==================================================================================
112
*/
111
*/
113
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
112
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
114
if (INS_UTILISE_REECRITURE_URL) {
113
if (INS_UTILISE_REECRITURE_URL) {
115
    define ('INS_URL_PREFIXE', '_ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
114
    define ('INS_URL_PREFIXE', '_ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
116
}
115
}
117
 
116
 
118
define ('INS_UTILISE_STAT', false);
117
define ('INS_UTILISE_STAT', false);
119
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ;
118
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ;
120
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ;
119
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ;
121
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ;
120
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ;
122
 
121
 
123
/* +--Fin du code ----------------------------------------------------------------------------------------+
122
/* +--Fin du code ----------------------------------------------------------------------------------------+
124
*
123
*
125
* $Log: ins_config.inc.php,v $
124
* $Log: ins_config.inc.php,v $
126
* Revision 1.3  2005/05/13 13:49:15  alex
125
* Revision 1.3  2005/05/13 13:49:15  alex
127
* ajout de la réécriture d'url et des statistiques
126
* ajout de la réécriture d'url et des statistiques
128
*
127
*
129
* Revision 1.2  2005/03/21 16:50:31  alex
128
* Revision 1.2  2005/03/21 16:50:31  alex
130
* mille et une corrction
129
* mille et une corrction
131
*
130
*
132
* Revision 1.1  2005/03/04 10:39:41  tam
131
* Revision 1.1  2005/03/04 10:39:41  tam
133
* installation
132
* installation
134
*
133
*
135
* Revision 1.1  2004/07/06 15:42:17  alex
134
* Revision 1.1  2004/07/06 15:42:17  alex
136
* en cours
135
* en cours
137
*
136
*
138
* Revision 1.4  2004/07/06 15:31:33  alex
137
* Revision 1.4  2004/07/06 15:31:33  alex
139
* en cours
138
* en cours
140
*
139
*
141
* Revision 1.3  2004/06/30 10:00:53  alex
140
* Revision 1.3  2004/06/30 10:00:53  alex
142
* ajout de champs pour gérer les pays
141
* ajout de champs pour gérer les pays
143
*
142
*
144
* Revision 1.2  2004/06/18 09:20:54  alex
143
* Revision 1.2  2004/06/18 09:20:54  alex
145
* version initiale
144
* version initiale
146
*
145
*
147
*
146
*
148
* +-- Fin du code ----------------------------------------------------------------------------------------+
147
* +-- Fin du code ----------------------------------------------------------------------------------------+
149
*/
148
*/
150
?>
149
?>