Line 17... |
Line 17... |
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: bottin.config.inc.php,v 1.3 2005-11-17 18:48:02 florian Exp $
|
22 |
// CVS : $Id: bottin.config.inc.php,v 1.4 2005-12-19 11:06:01 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Fichier de configuration de l'application d'inscription/annuaire
|
24 |
* Fichier de configuration de l'application d'inscription/annuaire
|
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 |
*
|
Line 30... |
Line 30... |
30 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
31 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
31 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@author Aucun
|
33 |
*@author Aucun
|
34 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@version $Revision: 1.3 $ $Date: 2005-11-17 18:48:02 $
|
35 |
*@version $Revision: 1.4 $ $Date: 2005-12-19 11:06:01 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
38 |
//================================= CONSTANTES DB ==================================
|
38 |
//================================= CONSTANTES DB ==================================
|
39 |
/** Nom de la table Annuaire */
|
39 |
/** Nom de la table Annuaire */
|
40 |
define ('INS_ANNUAIRE', 'annuaire');
|
40 |
define ('INS_ANNUAIRE', 'annuaire');
|
Line 77... |
Line 77... |
77 |
/** Champs d'appartenance à une structure */
|
77 |
/** Champs d'appartenance à une structure */
|
78 |
define ('INS_CHAMPS_STRUCTURE', 'a_ce_structure');
|
78 |
define ('INS_CHAMPS_STRUCTURE', 'a_ce_structure');
|
79 |
/** Champs identifiant du pays de la table des pays*/
|
79 |
/** Champs identifiant du pays de la table des pays*/
|
80 |
define ('INS_CHAMPS_ID_PAYS', 'gip_id_pays');
|
80 |
define ('INS_CHAMPS_ID_PAYS', 'gip_id_pays');
|
81 |
/** Champs nom du pays de la table des pays*/
|
81 |
/** Champs nom du pays de la table des pays*/
|
82 |
define ('INS_CHAMPS_LABEL_PAYS', 'gip_nom');
|
82 |
define ('INS_CHAMPS_LABEL_PAYS', 'gip_nom_pays_traduit');
|
- |
|
83 |
/** Champs qui contient la localisation */
|
- |
|
84 |
define ('INS_CHAMPS_I18N_PAYS', 'gip_id_i18n') ;
|
83 |
/** Champs identifiant du département de la table des departement*/
|
85 |
/** Champs identifiant du département de la table des departement*/
|
84 |
define ('INS_CHAMPS_ID_DEPARTEMENT','gd_id_departement');
|
86 |
define ('INS_CHAMPS_ID_DEPARTEMENT','gd_id_departement');
|
85 |
/** Champs nom du département de la table des departement*/
|
87 |
/** Champs nom du département de la table des departement*/
|
86 |
define ('INS_CHAMPS_NOM_DEPARTEMENT','gd_nom');
|
88 |
define ('INS_CHAMPS_NOM_DEPARTEMENT','gd_nom');
|
87 |
/** Champs pour l'abonnement à une liste, laisser vide si vous ne souhaitez pas d'inscription' */
|
89 |
/** Champs pour l'abonnement à une liste, laisser vide si vous ne souhaitez pas d'inscription' */
|
Line 126... |
Line 128... |
126 |
/** Durée de la session PHP */
|
128 |
/** Durée de la session PHP */
|
127 |
define ('INS_DUREE_SESSION',3600*12);
|
129 |
define ('INS_DUREE_SESSION',3600*12);
|
128 |
/** Tableau des parametres de l'authentification */
|
130 |
/** Tableau des parametres de l'authentification */
|
129 |
$params = array(
|
131 |
$params = array(
|
130 |
'dsn' => $dsn,
|
132 |
'dsn' => $dsn,
|
131 |
'table' => INS_ANNUAIRE,
|
133 |
'table' => INS_ANNUAIRE,
|
132 |
'usernamecol' => INS_CHAMPS_MAIL,
|
134 |
'usernamecol' => INS_CHAMPS_MAIL,
|
133 |
'passwordcol' => INS_CHAMPS_MOT_DE_PASSE
|
135 |
'passwordcol' => INS_CHAMPS_MOT_DE_PASSE
|
134 |
);
|
136 |
);
|
135 |
/** Variable globale contenant l'objet d'authentification de l'application, un objet AUTH*/
|
137 |
/** Variable globale contenant l'objet d'authentification de l'application, un objet AUTH*/
|
136 |
$GLOBALS['AUTH']= &new Auth($GLOBALS['ins_db'], $params );
|
138 |
$GLOBALS['AUTH']= &new Auth($GLOBALS['ins_db'], $params );
|
Line 225... |
Line 227... |
225 |
}
|
227 |
}
|
Line 226... |
Line 228... |
226 |
|
228 |
|
227 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
229 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
228 |
*
|
230 |
*
|
- |
|
231 |
* $Log: not supported by cvs2svn $
|
- |
|
232 |
* Revision 1.3 2005/11/17 18:48:02 florian
|
- |
|
233 |
* corrections bugs + amélioration de l'application d'inscription
|
229 |
* $Log: not supported by cvs2svn $
|
234 |
*
|
230 |
* Revision 1.2 2005/09/29 13:56:48 alexandre_tb
|
235 |
* Revision 1.2 2005/09/29 13:56:48 alexandre_tb
|
231 |
* En cours de production. Reste à gérer les news letters et d'autres choses.
|
236 |
* En cours de production. Reste à gérer les news letters et d'autres choses.
|
232 |
*
|
237 |
*
|
233 |
* Revision 1.1 2005/09/27 13:56:18 alexandre_tb
|
238 |
* Revision 1.1 2005/09/27 13:56:18 alexandre_tb
|