Subversion Repositories Applications.papyrus

Rev

Rev 234 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1                                                                                      |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or                                        |
// | modify it under the terms of the GNU Lesser General Public                                           |
// | License as published by the Free Software Foundation; either                                         |
// | version 2.1 of the License, or (at your option) any later version.                                   |
// |                                                                                                      |
// | This library is distributed in the hope that it will be useful,                                      |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
// | Lesser General Public License for more details.                                                      |
// |                                                                                                      |
// | You should have received a copy of the GNU Lesser General Public                                     |
// | License along with this library; if not, write to the Free Software                                  |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: ins_config.inc.php,v 1.3 2005-03-21 16:57:30 florian Exp $
/**
* Fichier de configuration de l'inscription
*
* A éditer de façon spécifique à chaque déploiement
*
*@package inscription
//Auteur original :
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@author        Aucun
*@copyright     Tela-Botanica 2000-2004
*@version       $Revision: 1.3 $ $Date: 2005-03-21 16:57:30 $
// +------------------------------------------------------------------------------------------------------+
*/


/**
//=========================DEFINITION DE VARIABLES =================================
* Définition des variables globales
//==================================================================================
*/

$GLOBALS['AUTH'] = &$_GEN_commun['pear_auth'] ;

//================================ BASE DE DONNEES =================================
// Constantes et variables globales d'accès à la base de donnée
//==================================================================================
define ('INS_PROTOCOLE', 'mysql') ;
define ('INS_UTILISATEUR', 'testP') ;
define ('INS_MOT_DE_PASSE_DB', 'ecnat') ;
define ('INS_HOTE', 'localhost') ;
define ('INS_BASE', 'testP') ;
define ('INS_TYPE_ENCODAGE','MD5');
define ('INS_NOM_SESSION','Educ-Envir.org'); //Nom de la session PHP
define ('INS_DUREE_SESSION',3600*12); //Durée de la session PHP
// Formation du dsn
$dsn = INS_PROTOCOLE.'://'.INS_UTILISATEUR.':'.INS_MOT_DE_PASSE_DB.'@'.INS_HOTE.'/'.INS_BASE ;
// Connection à la base de donnée
$GLOBALS['ins_db'] = & DB::connect($dsn) ;
//$GLOBALS['ins_db'] = &$_GEN_commun['pear_db'] ;

/**
//==================================== LES URLS ==================================
* Constantes liées à l'utilisation des url
//==================================================================================
*/
$GLOBALS['ins_url'] = &$_GEN_commun['url'];        //l'url de base de l'application, un objet Net_URL
                                                            // Créer cet objet par $GLOBALS['ins_url'] = new Net_URL('http://....') ;

define ("INS_LANGUE_DEFAUT", "fr") ;

/**
//=========================DEFINITION DE VARIABLES =================================
* Définition des variables globales
//==================================================================================
*/

define ("INS_CHEMIN_FICHIER", "client/inscription/") ;

/**
//==================================== CONSTANTES ==================================
* Constantes des noms de tables et de champs dans l'annuaire
//==================================================================================
*/

define ("INS_ANNUAIRE", "annuaire") ;
define ("INS_CHAMPS_ID", "ga_id_utilisateur") ;                   // Nom du champs nom
define ("INS_CHAMPS_MAIL", "ga_mail") ;                  // Nom du champs mail
define ("INS_CHAMPS_NOM", "ga_nom") ;
define ("INS_CHAMPS_PRENOM", "ga_prenom") ;
define ("INS_CHAMPS_PASSE", "ga_motpasse") ;
define ("INS_CHAMPS_PAYS", "ga_ce_pays") ;
define ("INS_CHAMPS_CODE_POSTAL", "ga_code_postal") ;
define ("INS_CHAMPS_DEPARTEMENT", "ga_ce_departement") ;
define ("INS_CHAMPS_ADRESSE_1", "ga_adresse1") ;
define ("INS_CHAMPS_ADRESSE_2", "ga_adresse2") ;
define ("INS_CHAMPS_VILLE", "ga_ville") ;
define ("INS_CHAMPS_DATE_INSCRIPTION", "ga_date_inscription") ;
define ("INS_CHAMPS_EST_STRUCTURE", "ga_est_structure") ;
define ("INS_CHAMPS_SIGLE_STRUCTURE", "ga_sigle_structure") ;

define ("INS_CHAMPS_TELEPHONE", "ga_telephone") ;          // Laisser vide si non voulu
define ("INS_CHAMPS_FAX", "ga_fax") ;          // Laisser vide si non voulu
define ("INS_CHAMPS_STRUCTURE", "ga_ce_structure") ;          // Laisser vide si non voulu

// Les champs suivant concernent la table contenant les pays et les codes iso
// 
define ("INS_TABLE_DPT", "gen_departement") ;           // Nom de la table département
define ("INS_TABLE_PAYS", "gen_pays") ;             // Nom de la table pays
define ("INS_CHAMPS_ID_PAYS", "gp_id_pays") ;
define ("INS_CHAMPS_LABEL_PAYS", "gp_nom") ;

/**
//==================================== PARAMETRAGE =================================
* Pour régler certaines fonctionnalité de l'application
//==================================================================================
*/

define ("INS_FORMULAIRE_STRUCTURE", 1) ;    // Mettre à 1 si on propose un formulaire pour les structures

define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "florian@ecole-et-nature.org") ;
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Ecole et Nature] Inscription") ;

/**
//==================================== PARAMETRAGE =================================
* Réglage des applications externes SPIP, Wikini
//==================================================================================
*/
define ("INS_UTILISE_SPIP", 0) ;    // Mettre à 0, s'il n'y a pas d'incription à SPIP

if (INS_UTILISE_SPIP) {
    define ("INS_CHEMIN_SPIP", "") ;
}

define ("INS_UTILISE_WIKINI", 0) ;  // Mettre à 0, s'il n'y a pas d'inscription à Wikini
if (INS_UTILISE_WIKINI) {
    define ("INS_CHAMPS_NOM_WIKINI", "ga_nom_wikini") ;  // Le nom du champs contenant le nom wikini dans l'annuaire
}
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2  2004/12/17 17:42:43  alex
* ajout du numéro de tel, du fax et de la structure
*
* Revision 1.1  2004/12/15 13:32:38  alex
* version initiale
*
* Revision 1.2  2004/09/01 16:38:17  alex
* modification de la configuration
*
* Revision 1.1  2004/07/06 15:42:17  alex
* en cours
*
* Revision 1.4  2004/07/06 15:31:33  alex
* en cours
*
* Revision 1.3  2004/06/30 10:00:53  alex
* ajout de champs pour gérer les pays
*
* Revision 1.2  2004/06/18 09:20:54  alex
* version initiale
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>