Subversion Repositories Sites.tela-botanica.org

Rev

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

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