Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 4 Rev 375
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
22
// CVS : $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
23
/**
23
/**
24
* Fichier de configuration de l'inscription
24
* Fichier de configuration de l'inscription
25
*
25
*
26
* A éditer de façon spécifique à chaque déploiement
26
* A éditer de façon spécifique à chaque déploiement
27
*
27
*
28
*@package inscription
28
*@package inscription
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $ $Date: 2005/05/13 13:49:15 $
34
*@version       $Revision: 1.3 $ $Date: 2005/05/13 13:49:15 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
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
 
44
 
45
$GLOBALS['AUTH'] = &$_GEN_commun['pear_auth'] ;
45
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
46
 
46
 
47
/**
47
/**
48
//==================================== LES URLS ==================================
48
//==================================== LES URLS ==================================
49
* Constantes liées à l'utilisation des url
49
* Constantes liées à l'utilisation des url
50
//==================================================================================
50
//==================================================================================
51
*/
51
*/
52
$GLOBALS['ins_url'] = & $_GEN_commun['url'] ;
52
$GLOBALS['ins_url'] =& $GLOBALS['_GEN_commun']['url'] ;
53
$GLOBALS['ins_db'] = & $_GEN_commun['pear_db'] ;
53
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
54
define ("INS_CHEMIN_FICHIER", "client/inscription/") ;
54
define('INS_CHEMIN_FICHIER', 'client/inscription/') ;
55
 
55
 
56
/**
56
/**
57
//==================================== CONSTANTES ==================================
57
//==================================== CONSTANTES ==================================
58
* Constantes des noms de tables et de champs dans l'annuaire
58
* Constantes des noms de tables et de champs dans l'annuaire
59
//==================================================================================
59
//==================================================================================
60
*/
60
*/
61
 
-
 
62
define ("INS_ANNUAIRE", "annuaire_tela") ;
61
define ("INS_ANNUAIRE", "annuaire_tela") ;
63
define ("INS_CHAMPS_ID", "U_ID") ;                   // Nom du champs nom
62
define ("INS_CHAMPS_ID", "U_ID") ;                   // Nom du champs nom
64
define ("INS_CHAMPS_MAIL", "U_MAIL") ;                  // Nom du champs mail
63
define ("INS_CHAMPS_MAIL", "U_MAIL") ;                  // Nom du champs mail
65
define ("INS_CHAMPS_LOGIN", "at_nom_wiki") ;
64
define ("INS_CHAMPS_LOGIN", "at_nom_wiki") ;
66
define ("INS_CHAMPS_NOM", "U_NAME") ;
65
define ("INS_CHAMPS_NOM", "U_NAME") ;
67
define ("INS_CHAMPS_PRENOM", "U_SURNAME") ;
66
define ("INS_CHAMPS_PRENOM", "U_SURNAME") ;
68
define ("INS_CHAMPS_PASSE", "U_PASSWD") ;
67
define ("INS_CHAMPS_PASSE", "U_PASSWD") ;
69
define ("INS_CHAMPS_PAYS", "U_COUNTRY") ;
68
define ("INS_CHAMPS_PAYS", "U_COUNTRY") ;
70
define ("PROJET_PRENOM", "U_SURNAME") ;             // Nom du champs prénom
69
define ("PROJET_PRENOM", "U_SURNAME") ;             // Nom du champs prénom
71
define ("PROJET_DPT", "gen_FRENCH_DPT") ;           // Nom de la table département
70
define ("PROJET_DPT", "gen_FRENCH_DPT") ;           // Nom de la table département
72
define ("INS_TABLE_PAYS", "gen_COUNTRY") ;             // Nom de la table pays
71
define ("INS_TABLE_PAYS", "gen_COUNTRY") ;             // Nom de la table pays
73
define ("INS_CHAMPS_ID_PAYS", "GC_ID") ;
72
define ("INS_CHAMPS_ID_PAYS", "GC_ID") ;
74
define ("INS_CHAMPS_LABEL_PAYS", "GC_NAME") ;
73
define ("INS_CHAMPS_LABEL_PAYS", "GC_NAME") ;
75
define ("INS_CHAMPS_CODE_POSTAL", "U_ZIP_CODE") ;
74
define ("INS_CHAMPS_CODE_POSTAL", "U_ZIP_CODE") ;
76
define ("INS_CHAMPS_VILLE", "U_CITY") ;
75
define ("INS_CHAMPS_VILLE", "U_CITY") ;
77
define ("INS_CHAMPS_ADRESSE_1", "U_ADDR1") ;
76
define ("INS_CHAMPS_ADRESSE_1", "U_ADDR1") ;
78
define ("INS_CHAMPS_ADRESSE_2", "U_ADDR2") ;
77
define ("INS_CHAMPS_ADRESSE_2", "U_ADDR2") ;
79
define ("INS_CHAMPS_REGION", "U_STATE") ;
78
define ("INS_CHAMPS_REGION", "U_STATE") ;
80
define ("INS_CHAMPS_SITE_WEB", "U_WEB") ;
79
define ("INS_CHAMPS_SITE_WEB", "U_WEB") ;
81
define ("INS_CHAMPS_TELEPHONE", "U_PHONE") ;
80
define ("INS_CHAMPS_TELEPHONE", "U_PHONE") ;
82
define ("INS_CHAMPS_FAX", "U_FAX") ;
81
define ("INS_CHAMPS_FAX", "U_FAX") ;
83
define ("INS_CHAMPS_STRUCTURE", "U_TITLE") ;
82
define ("INS_CHAMPS_STRUCTURE", "U_TITLE") ;
84
define ("INS_CHAMPS_DATE", "U_DATE") ;
83
define ("INS_CHAMPS_DATE", "U_DATE") ;
85
define ("INS_CHAMPS_LETTRE", "U_LETTRE") ;  // Le champs qui indique si l'usager est inscrit à la lettre d'inscription
84
define ("INS_CHAMPS_LETTRE", "U_LETTRE") ;  // Le champs qui indique si l'usager est inscrit à la lettre d'inscription
-
 
85
 
86
/**
86
/**
87
//==================================== PARAMETRAGE =================================
87
//==================================== PARAMETRAGE =================================
88
* Pour régler certaines fonctionnalité de l'application
88
* Pour régler certaines fonctionnalité de l'application
89
//==================================================================================
89
//==================================================================================
90
*/
90
*/
91
 
-
 
92
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "Reseau Tela Botanica <accueil@tela-botanica.org>") ;
91
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "Reseau Tela Botanica <accueil@tela-botanica.org>") ;
93
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Tela Botanica]Inscription") ;
92
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Tela Botanica]Inscription") ;
94
define ("INS_MAIL_INSCRIPTION_LISTE", 'actu-subscribe@tela-botanica.org') ;
93
define ("INS_MAIL_INSCRIPTION_LISTE", 'actu-subscribe@tela-botanica.org') ;
95
define ("INS_MAIL_DESINSCRIPTION_LISTE", 'actu-unsubscribe@tela-botanica.org') ;
94
define ("INS_MAIL_DESINSCRIPTION_LISTE", 'actu-unsubscribe@tela-botanica.org') ;
-
 
95
 
96
 
96
// Liste des personne recevant le mail après inscription
97
$GLOBALS['mail_admin'] = array ('accueil@tela-botanica.org', 'dmathieu@tela-botanica.org') ;   // Liste des personne recevant le mail
-
 
98
                                                                                    // après inscription
97
$GLOBALS['mail_admin'] = array ('accueil@tela-botanica.org', 'dmathieu@tela-botanica.org') ;   
99
 
98
 
100
define ("INS_UTILISE_SPIP", 1) ;
99
define ("INS_UTILISE_SPIP", 1) ;
101
 
100
 
102
define ("INS_UTILISE_WIKINI", 1) ;
101
define ("INS_UTILISE_WIKINI", 1) ;
103
 
102
 
104
if (INS_UTILISE_WIKINI) {
103
if (INS_UTILISE_WIKINI) {
105
    define ('INS_CHAMPS_WIKINI', 'at_nom_wiki') ;
104
    define ('INS_CHAMPS_WIKINI', 'at_nom_wiki') ;
106
    define ('INS_DSN_WIKINI', 'mysql://telabotap:@localhost/tela_prod_wikini') ;
105
    define ('INS_BDD_WIKINI', 'tela_prod_wikini') ;
107
}
106
}
108
 
107
 
109
if (INS_UTILISE_SPIP) {
108
if (INS_UTILISE_SPIP) {
110
    define ('INS_DSN_SPIP', 'mysql://telabotap:@localhost/tela_prod_spip_actu') ;
109
    define ('INS_BDD_SPIP', 'tela_prod_spip_actu') ;
111
}
110
}
112
 
111
 
113
/**
112
/**
114
//==================================== PARAMETRAGE =================================
113
//==================================== PARAMETRAGE =================================
115
* Pour gérer la réécriture d'url de l'inscription
114
* Pour gérer la réécriture d'url de l'inscription
116
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
115
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
117
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
116
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
118
* Cela sert à racourcir l'URL de confirmation d'inscription
117
* Cela sert à racourcir l'URL de confirmation d'inscription
119
//==================================================================================
118
//==================================================================================
120
*/
119
*/
121
 
120
 
122
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
121
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
123
 
122
 
124
if (INS_UTILISE_REECRITURE_URL) {
123
if (INS_UTILISE_REECRITURE_URL) {
125
    define ('INS_URL_PREFIXE', '_ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
124
    define ('INS_URL_PREFIXE', '_ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
126
}
125
}
127
 
126
 
128
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ;
127
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ;
129
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ;
128
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ;
130
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ;
129
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ;
131
 
130
 
132
/* +--Fin du code ----------------------------------------------------------------------------------------+
131
/* +--Fin du code ----------------------------------------------------------------------------------------+
133
*
132
*
134
* $Log: ins_config.inc.php,v $
133
* $Log: ins_config.inc.php,v $
135
* Revision 1.3  2005/05/13 13:49:15  alex
134
* Revision 1.3  2005/05/13 13:49:15  alex
136
* ajout de la réécriture d'url et des statistiques
135
* ajout de la réécriture d'url et des statistiques
137
*
136
*
138
* Revision 1.2  2005/03/21 16:50:31  alex
137
* Revision 1.2  2005/03/21 16:50:31  alex
139
* mille et une corrction
138
* mille et une corrction
140
*
139
*
141
* Revision 1.1  2005/03/04 10:39:41  tam
140
* Revision 1.1  2005/03/04 10:39:41  tam
142
* installation
141
* installation
143
*
142
*
144
* Revision 1.1  2004/07/06 15:42:17  alex
143
* Revision 1.1  2004/07/06 15:42:17  alex
145
* en cours
144
* en cours
146
*
145
*
147
* Revision 1.4  2004/07/06 15:31:33  alex
146
* Revision 1.4  2004/07/06 15:31:33  alex
148
* en cours
147
* en cours
149
*
148
*
150
* Revision 1.3  2004/06/30 10:00:53  alex
149
* Revision 1.3  2004/06/30 10:00:53  alex
151
* ajout de champs pour gérer les pays
150
* ajout de champs pour gérer les pays
152
*
151
*
153
* Revision 1.2  2004/06/18 09:20:54  alex
152
* Revision 1.2  2004/06/18 09:20:54  alex
154
* version initiale
153
* version initiale
155
*
154
*
156
*
155
*
157
* +-- Fin du code ----------------------------------------------------------------------------------------+
156
* +-- Fin du code ----------------------------------------------------------------------------------------+
158
*/
157
*/
159
?>
158
?>