Subversion Repositories Sites.tela-botanica.org

Rev

Rev 375 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 375 Rev 409
Line 1... Line 1...
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
-
 
3
// +------------------------------------------------------------------------------------------------------+
2
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
3
// | PHP version 4.1																					  |
5
// +------------------------------------------------------------------------------------------------------+
4
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
5
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)							   	          |
7
// +------------------------------------------------------------------------------------------------------+
6
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
7
// | This library is free software; you can redistribute it and/or										  |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
8
// | modify it under the terms of the GNU Lesser General Public										      |
10
// | License as published by the Free Software Foundation; either                                         |
9
// | License as published by the Free Software Foundation; either										  |
11
// | 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.								      |
12
// |                                                                                                      |
11
// |																									  |
13
// | 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,									  |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
13
// | but WITHOUT ANY WARRANTY; without even the implied warranty of									      |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
14
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU									  |
16
// | Lesser General Public License for more details.                                                      |
15
// | Lesser General Public License for more details.													  |
17
// |                                                                                                      |
16
// |																									  |
18
// | 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									  |
19
// | 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								  |
20
// | 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							  |
21
// +------------------------------------------------------------------------------------------------------+
20
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
-
 
23
/**
21
/**
24
* Fichier de configuration de l'inscription
22
* Fichier de configuration de l'inscription
25
*
23
*
26
* A éditer de façon spécifique à chaque déploiement
24
* A éditer de façon spécifique à chaque déploiement
27
*
25
*
28
*@package inscription
26
*@package inscription
29
//Auteur original :
27
//Auteur original :
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
//Autres auteurs :
29
//Autres auteurs :
32
*@author        Aucun
30
*@author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $ $Date: 2005/05/13 13:49:15 $
32
*@version       $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $
35
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
36
*/
34
*/
Line 37... Line 35...
37
 
35
 
38
 
36
 
39
/**
37
/**
40
//=========================DEFINITION DE VARIABLES =================================
38
//=========================DEFINITION DE VARIABLES =================================
41
* Définition des variables globales
39
* Définition des variables globales
42
//==================================================================================
-
 
43
*/
40
//==================================================================================
Line 44... Line 41...
44
 
41
*/
45
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
42
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
46
 
43
 
Line 56... Line 53...
56
/**
53
/**
57
//==================================== CONSTANTES ==================================
54
//==================================== CONSTANTES ==================================
58
* Constantes des noms de tables et de champs dans l'annuaire
55
* Constantes des noms de tables et de champs dans l'annuaire
59
//==================================================================================
56
//==================================================================================
60
*/
57
*/
61
define ("INS_ANNUAIRE", "annuaire_tela") ;
58
define ('INS_ANNUAIRE', 'annuaire_tela');
62
define ("INS_CHAMPS_ID", "U_ID") ;                   // Nom du champs nom
59
define ('INS_CHAMPS_ID', 'U_ID');// Nom du champs nom
63
define ("INS_CHAMPS_MAIL", "U_MAIL") ;                  // Nom du champs mail
60
define ('INS_CHAMPS_MAIL', 'U_MAIL');// Nom du champs mail
64
define ("INS_CHAMPS_LOGIN", "at_nom_wiki") ;
61
define ('INS_CHAMPS_LOGIN', 'at_nom_wiki');
65
define ("INS_CHAMPS_NOM", "U_NAME") ;
62
define ('INS_CHAMPS_NOM', 'U_NAME');
66
define ("INS_CHAMPS_PRENOM", "U_SURNAME") ;
63
define ('INS_CHAMPS_PRENOM', 'U_SURNAME');
67
define ("INS_CHAMPS_PASSE", "U_PASSWD") ;
64
define ('INS_CHAMPS_PASSE', 'U_PASSWD');
68
define ("INS_CHAMPS_PAYS", "U_COUNTRY") ;
65
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") ;
66
define ('INS_CHAMPS_CODE_POSTAL', 'U_ZIP_CODE');
75
define ("INS_CHAMPS_VILLE", "U_CITY") ;
67
define ('INS_CHAMPS_VILLE', 'U_CITY');
76
define ("INS_CHAMPS_ADRESSE_1", "U_ADDR1") ;
68
define ('INS_CHAMPS_ADRESSE_1', 'U_ADDR1');
77
define ("INS_CHAMPS_ADRESSE_2", "U_ADDR2") ;
69
define ('INS_CHAMPS_ADRESSE_2', 'U_ADDR2');
78
define ("INS_CHAMPS_REGION", "U_STATE") ;
70
define ('INS_CHAMPS_REGION', 'U_STATE');
79
define ("INS_CHAMPS_SITE_WEB", "U_WEB") ;
71
define ('INS_CHAMPS_SITE_WEB', 'U_WEB');
80
define ("INS_CHAMPS_TELEPHONE", "U_PHONE") ;
72
define ('INS_CHAMPS_TELEPHONE', 'U_PHONE');
81
define ("INS_CHAMPS_FAX", "U_FAX") ;
73
define ('INS_CHAMPS_FAX', 'U_FAX');
82
define ("INS_CHAMPS_STRUCTURE", "U_TITLE") ;
74
define ('INS_CHAMPS_STRUCTURE', 'U_TITLE');
83
define ("INS_CHAMPS_DATE", "U_DATE") ;
75
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
76
define ('INS_CHAMPS_LETTRE', 'U_LETTRE');// Le champs qui indique si l'usager est inscrit à la lettre d'inscription
-
 
77
define ('INS_CHAMPS_DPT', 'U_FRENCH_DPT');
-
 
78
define ('PROJET_DPT', 'carto_DEPARTEMENT');// Nom de la table département
-
 
79
define ('INS_TABLE_PAYS', 'carto_PAYS');// Nom de la table pays
-
 
80
define ('INS_CHAMPS_ID_PAYS', 'CP_ID_Pays');
-
 
81
define ('INS_CHAMPS_LABEL_PAYS', 'CP_Intitule_pays');
-
 
82
define ('INS_CHAMPS_PAYS_LG', 'CP_Langue_intitule');// Langue de l'intitule du pays
Line 85... Line 83...
85
 
83
 
86
/**
84
/**
87
//==================================== PARAMETRAGE =================================
85
//==================================== PARAMETRAGE =================================
88
* Pour régler certaines fonctionnalité de l'application
86
* Pour régler certaines fonctionnalité de l'application
89
//==================================================================================
87
//==================================================================================
90
*/
88
*/
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") ;
89
// Indique le type de cryptage du mot de passe à appliquer (doit être identique à PEAR_AUTH)
93
define ("INS_MAIL_INSCRIPTION_LISTE", 'actu-subscribe@tela-botanica.org') ;
-
 
94
define ("INS_MAIL_DESINSCRIPTION_LISTE", 'actu-unsubscribe@tela-botanica.org') ;
-
 
95
 
-
 
96
// Liste des personne recevant le mail après inscription
-
 
Line -... Line 90...
-
 
90
define ('INS_MDP_CRYPTYPE', 'md5');// Choix : md5 seulement
97
$GLOBALS['mail_admin'] = array ('accueil@tela-botanica.org', 'dmathieu@tela-botanica.org') ;   
91
 
Line 98... Line 92...
98
 
92
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION', 'Accueil Tela Botanica <accueil@tela-botanica.org>');
-
 
93
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET', '[Tela Botanica] Inscription');
-
 
94
 
Line 99... Line 95...
99
define ("INS_UTILISE_SPIP", 1) ;
95
define ('INS_UTILISE_LISTE', true);// Mettre à false si pas de liste d'actu
-
 
96
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org');
100
 
97
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org');
101
define ("INS_UTILISE_WIKINI", 1) ;
98
 
102
 
-
 
Line -... Line 99...
-
 
99
// Liste des personne recevant le mail après inscription
103
if (INS_UTILISE_WIKINI) {
100
$GLOBALS['mail_admin'] = array ('Accueil <accueil@tela-botanica.org>', 
104
    define ('INS_CHAMPS_WIKINI', 'at_nom_wiki') ;
101
								'Daniel MATHIEU <dmathieu@tela-botanica.org>', 
105
    define ('INS_BDD_WIKINI', 'tela_prod_wikini') ;
102
								'Jean-Pascal MILCENT <jpm@tela-botanica.org>');   
Line 106... Line 103...
106
}
103
 
107
 
104
define ('INS_UTILISE_SPIP', 1);
108
if (INS_UTILISE_SPIP) {
105
if (INS_UTILISE_SPIP) {
109
    define ('INS_BDD_SPIP', 'tela_prod_spip_actu') ;
106
	define ('INS_BDD_SPIP', 'tela_prod_spip_actu');
110
}
107
}
111
 
108
 
112
/**
109
/**
113
//==================================== PARAMETRAGE =================================
110
//==================================== 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
111
* Pour gérer la réécriture d'url de l'inscription
116
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L]
-
 
117
* Cela sert à racourcir l'URL de confirmation d'inscription
112
* Cela nécessite une ligne dans le fichier .htaccess, par exemple
118
//==================================================================================
113
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&action=ajouter&id=$1 [L]
119
*/
114
* Cela sert à racourcir l'URL de confirmation d'inscription
Line -... Line 115...
-
 
115
//==================================================================================
120
 
116
*/
121
define ('INS_UTILISE_REECRITURE_URL', 1) ;      // mettre à 1 si on souhaite utiliser la réécriture
117
define ('INS_UTILISE_REECRITURE_URL', 1);// mettre à 1 si on souhaite utiliser la réécriture
122
 
118
if (INS_UTILISE_REECRITURE_URL) {
Line 123... Line 119...
123
if (INS_UTILISE_REECRITURE_URL) {
119
    define ('INS_URL_PREFIXE', '_ins_');// Indique le préfixe de l'url http://www.mondomaine.org/prefix____