Subversion Repositories Applications.papyrus

Rev

Rev 1568 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1568 Rev 1569
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.18 2007-08-29 12:46:59 alexandre_tb Exp $
22
// CVS : $Id: bottin.config.inc.php,v 1.19 2007-09-06 08:26:05 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.18 $ $Date: 2007-08-29 12:46:59 $
35
*@version       $Revision: 1.19 $ $Date: 2007-09-06 08:26:05 $
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 100... Line 100...
100
define ('INS_CHAMPS_NUM_AGREMENT', 'a_num_agrement_fpc');
100
define ('INS_CHAMPS_NUM_AGREMENT', 'a_num_agrement_fpc');
101
/** Champs pour le logo*/
101
/** Champs pour le logo*/
102
define ('INS_CHAMPS_LOGO', 'a_logo');
102
define ('INS_CHAMPS_LOGO', 'a_logo');
Line 103... Line -...
103
 
-
 
104
 
-
 
105
if (INS_CHAMPS_LETTRE != '') {
-
 
106
	/** adresse d'inscription à la newsletter */
-
 
107
	define ('INS_MAIL_INSCRIPTION_LISTE', 'newsletter-subscribe@domaine.org');
-
 
108
	/** adresse de désinscription à la newsletter */
-
 
Line 109... Line 103...
109
	define ('INS_MAIL_DESINSCRIPTION_LISTE', 'newsletter-unsubscribe@domaine.org');
103
 
110
}
104
 
111
 
105
 
112
//teste si l'on est dans l'application Papyrus
106
//teste si l'on est dans l'application Papyrus
Line 120... Line 114...
120
	define ('INS_TYPE_ENCODAGE','MD5');
114
	define ('INS_TYPE_ENCODAGE','MD5');
Line 121... Line 115...
121
	
115
	
122
	// Formation du dsn
116
	// Formation du dsn
Line -... Line 117...
-
 
117
	$dsn = INS_PROTOCOLE.'://'.INS_UTILISATEUR.':'.INS_MOT_DE_PASSE_DB.'@'.INS_HOTE.'/'.INS_BASE;
-
 
118
 
-
 
119
	/** Pour les inclusions de bibliotheques PEAR, mieux vaux
-
 
120
	 * utiliser celle sur le serveur, sinon utiliser la fonction set_init_path
-
 
121
	 */
123
	$dsn = INS_PROTOCOLE.'://'.INS_UTILISATEUR.':'.INS_MOT_DE_PASSE_DB.'@'.INS_HOTE.'/'.INS_BASE;
122
 
124
 
123
 
125
	include_once PAP_CHEMIN_RACINE.'api/pear/DB.php'; //appel de la librairie DB de PEAR
124
	include_once 'DB.php'; //appel de la librairie DB de PEAR
Line 126... Line 125...
126
	/** Variable globale contenant l'objet d'accès à la base de donnée */
125
	/** Variable globale contenant l'objet d'accès à la base de donnée */
127
	$GLOBALS['ins_db'] =& DB::connect($dsn);
126
	$GLOBALS['ins_db'] =& DB::connect($dsn);
128
	
127
	
129
	//=============================== AUTHENTIFICATION =================================
128
	//=============================== AUTHENTIFICATION =================================
130
	include_once PAP_CHEMIN_RACINE.'api/pear/Auth.php'; //appel de la librairie Auth de PEAR
129
	include_once 'Auth.php'; //appel de la librairie Auth de PEAR
131
	/** Nom de la session PHP */
130
	/** Nom de la session PHP */
132
	define ('INS_NOM_SESSION','Educ-Envir.org'); 
131
	define ('INS_NOM_SESSION','Educ-Envir.org'); 
Line 144... Line 143...
144
	$GLOBALS['AUTH']->setSessionname(INS_NOM_SESSION);
143
	$GLOBALS['AUTH']->setSessionname(INS_NOM_SESSION);
145
	$GLOBALS['AUTH']->setExpire(INS_DUREE_SESSION);
144
	$GLOBALS['AUTH']->setExpire(INS_DUREE_SESSION);
146
	$GLOBALS['AUTH']->setShowLogin(false);
145
	$GLOBALS['AUTH']->setShowLogin(false);
Line 147... Line 146...
147
	
146
	
148
	//==================================== LES URLS ====================================
147
	//==================================== LES URLS ====================================
149
	include_once PAP_CHEMIN_RACINE.'api/pear/Net_URL.php'; //appel de la librairie Net_URL de PEAR
148
	include_once 'Net/URL.php'; //appel de la librairie Net_URL de PEAR
150
	/** Variable globale contenant l'objet d'accès à l'URL de base de l'application, un objet Net_URL*/
149
	/** Variable globale contenant l'objet d'accès à l'URL de base de l'application, un objet Net_URL*/
Line 151... Line 150...
151
	$GLOBALS['ins_url'] = new Net_URL('http://localhost/');
150
	$GLOBALS['ins_url'] = new Net_URL('http://localhost/');
152
 
151
 
Line 230... Line 229...
230
 
229
 
231
if (INS_UTILISE_REECRITURE_URL) {
230
if (INS_UTILISE_REECRITURE_URL) {
232
    define ('INS_URL_PREFIXE', 'ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
231
    define ('INS_URL_PREFIXE', 'ins_') ;         // Indique le préfixe de l'url http://www.mondomaine.org/prefix____
Line -... Line 232...
-
 
232
}
-
 
233
 
-
 
234
/** Constante concernant la carte google */
-
 
235
define ('INS_GOOGLE_KEY', '');
-
 
236
 
-
 
237
if (defined ('INS_GOOGLE_KEY')) {
-
 
238
	define ('INS_GOOGLE_CENTRE_LAT', '');
-
 
239
	define ('INS_GOOGLE_CENTRE_LON', '');
-
 
240
	define ('INS_GOOGLE_ALTITUDE', ''); // de 1 a 15
233
}
241
}
234
 
242
 
235
/* +--Fin du code ----------------------------------------------------------------------------------------+
243
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
244
*
-
 
245
* $Log: not supported by cvs2svn $
-
 
246
* Revision 1.18  2007-08-29 12:46:59  alexandre_tb
236
*
247
* dans la config "hors papyrus", appel du fichier bottin.langues.... a la place de ins_annuaire.lang....
237
* $Log: not supported by cvs2svn $
248
*
238
* Revision 1.17  2007-06-25 12:46:59  florian
249
* Revision 1.17  2007-06-25 12:46:59  florian
239
* suppression des constantes en double
250
* suppression des constantes en double
240
*
251
*