Subversion Repositories Sites.tela-botanica.org

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 david 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/05/13 13:49:15 alex 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/05/13 13:49:15 $
35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
 
39
/**
40
//=========================DEFINITION DE VARIABLES =================================
41
* Définition des variables globales
42
//==================================================================================
43
*/
44
 
375 jpm 45
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
4 david 46
 
47
/**
48
//==================================== LES URLS ==================================
49
* Constantes liées à l'utilisation des url
50
//==================================================================================
51
*/
375 jpm 52
$GLOBALS['ins_url'] =& $GLOBALS['_GEN_commun']['url'] ;
53
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
54
define('INS_CHEMIN_FICHIER', 'client/inscription/') ;
4 david 55
 
56
/**
57
//==================================== CONSTANTES ==================================
58
* Constantes des noms de tables et de champs dans l'annuaire
59
//==================================================================================
60
*/
61
define ("INS_ANNUAIRE", "annuaire_tela") ;
62
define ("INS_CHAMPS_ID", "U_ID") ;                   // Nom du champs nom
63
define ("INS_CHAMPS_MAIL", "U_MAIL") ;                  // Nom du champs mail
64
define ("INS_CHAMPS_LOGIN", "at_nom_wiki") ;
65
define ("INS_CHAMPS_NOM", "U_NAME") ;
66
define ("INS_CHAMPS_PRENOM", "U_SURNAME") ;
67
define ("INS_CHAMPS_PASSE", "U_PASSWD") ;
68
define ("INS_CHAMPS_PAYS", "U_COUNTRY") ;
69
define ("PROJET_PRENOM", "U_SURNAME") ;             // Nom du champs prénom
70
define ("PROJET_DPT", "gen_FRENCH_DPT") ;           // Nom de la table département
71
define ("INS_TABLE_PAYS", "gen_COUNTRY") ;             // Nom de la table pays
72
define ("INS_CHAMPS_ID_PAYS", "GC_ID") ;
73
define ("INS_CHAMPS_LABEL_PAYS", "GC_NAME") ;
74
define ("INS_CHAMPS_CODE_POSTAL", "U_ZIP_CODE") ;
75
define ("INS_CHAMPS_VILLE", "U_CITY") ;
76
define ("INS_CHAMPS_ADRESSE_1", "U_ADDR1") ;
77
define ("INS_CHAMPS_ADRESSE_2", "U_ADDR2") ;
78
define ("INS_CHAMPS_REGION", "U_STATE") ;
79
define ("INS_CHAMPS_SITE_WEB", "U_WEB") ;
80
define ("INS_CHAMPS_TELEPHONE", "U_PHONE") ;
81
define ("INS_CHAMPS_FAX", "U_FAX") ;
82
define ("INS_CHAMPS_STRUCTURE", "U_TITLE") ;
83
define ("INS_CHAMPS_DATE", "U_DATE") ;
84
define ("INS_CHAMPS_LETTRE", "U_LETTRE") ;  // Le champs qui indique si l'usager est inscrit à la lettre d'inscription
375 jpm 85
 
4 david 86
/**
87
//==================================== PARAMETRAGE =================================
88
* Pour régler certaines fonctionnalité de l'application
89
//==================================================================================
90
*/
91
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "Reseau Tela Botanica <accueil@tela-botanica.org>") ;
92
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Tela Botanica]Inscription") ;
93
define ("INS_MAIL_INSCRIPTION_LISTE", 'actu-subscribe@tela-botanica.org') ;
94
define ("INS_MAIL_DESINSCRIPTION_LISTE", 'actu-unsubscribe@tela-botanica.org') ;
95
 
375 jpm 96
// Liste des personne recevant le mail après inscription
97
$GLOBALS['mail_admin'] = array ('accueil@tela-botanica.org', 'dmathieu@tela-botanica.org') ;
4 david 98
 
99
define ("INS_UTILISE_SPIP", 1) ;
100
 
101
define ("INS_UTILISE_WIKINI", 1) ;
102
 
103
if (INS_UTILISE_WIKINI) {
104
    define ('INS_CHAMPS_WIKINI', 'at_nom_wiki') ;
375 jpm 105
    define ('INS_BDD_WIKINI', 'tela_prod_wikini') ;
4 david 106
}
107
 
108
if (INS_UTILISE_SPIP) {
375 jpm 109
    define ('INS_BDD_SPIP', 'tela_prod_spip_actu') ;
4 david 110
}
111
 
112
/**
113
//==================================== PARAMETRAGE =================================
114
* Pour gérer la réécriture d'url de l'inscription
115
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
116
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
117
* Cela sert à racourcir l'URL de confirmation d'inscription
118
//==================================================================================
119
*/
120
 
121
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
122
 
123
if (INS_UTILISE_REECRITURE_URL) {
124
    define ('INS_URL_PREFIXE', '_ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
125
}
126
 
127
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ;
128
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ;
129
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ;
130
 
131
/* +--Fin du code ----------------------------------------------------------------------------------------+
132
*
133
* $Log: ins_config.inc.php,v $
134
* Revision 1.3  2005/05/13 13:49:15  alex
135
* ajout de la réécriture d'url et des statistiques
136
*
137
* Revision 1.2  2005/03/21 16:50:31  alex
138
* mille et une corrction
139
*
140
* Revision 1.1  2005/03/04 10:39:41  tam
141
* installation
142
*
143
* Revision 1.1  2004/07/06 15:42:17  alex
144
* en cours
145
*
146
* Revision 1.4  2004/07/06 15:31:33  alex
147
* en cours
148
*
149
* Revision 1.3  2004/06/30 10:00:53  alex
150
* ajout de champs pour gérer les pays
151
*
152
* Revision 1.2  2004/06/18 09:20:54  alex
153
* version initiale
154
*
155
*
156
* +-- Fin du code ----------------------------------------------------------------------------------------+
157
*/
158
?>