Subversion Repositories Sites.tela-botanica.org

Rev

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

<?php
// +------------------------------------------------------------------------------------------------------+
// | 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                            |
// +------------------------------------------------------------------------------------------------------+
/**
* Fichier de configuration de l'annuaire
*
* A éditer de façon spécifique à chaque déploiement
*
*@package inscription
//Auteur original :
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright     Tela-Botanica 2000-2004
*@version       $Id: ann_config.inc.php,v 1.2 2005/03/08 09:43:34 alex Exp $
// +------------------------------------------------------------------------------------------------------+
*/

// Paramêtres indiquant que l'on est en français pourpermettre la mise en majuscule des caractères accentués
setlocale(LC_CTYPE, 'fr_FR');

/**
//=========================DEFINITION DE VARIABLES =================================
* Définition des variables globales
//==================================================================================
*/
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ;
$GLOBALS['ann_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;
$GLOBALS['ins_db'] =& $GLOBALS['_GEN_commun']['pear_db'] ;

/**
//==================================== LES URLS ==================================
* Constantes liées à l'utilisation des url
//==================================================================================
*/
$GLOBALS['ann_url'] =& $GLOBALS['_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('ANN_URL_ACTUALITE', 'http://www.tela-botanica.org/actu/article220.html') ;
/** Variable définissant la lettre par défaut du parcour alphabétique.*/
define('ANN_LETTRE_DEFAUT', 'A') ;// une lettre de l'aphabet ou "tous"
/** Variable définissant si oui ou non on affiche l'entrée "tous" dans le parcour alphabétique.*/
define('ANN_TOUS_BOOL', false) ;// true ou false
/**
//==================================== LES CHEMINS =================================
* Constantes définissant les chemins d'accé au différents fichiers inclus dans les
* applications.
//==================================================================================
*/
define('ANN_CHEMIN_APPLI','client/annuaire/');//le chemin vers l'application courrante
define('ANN_CHEMIN_LIBRAIRIE', ANN_CHEMIN_APPLI.'bibliotheque/');//le chemin de la librairie de fichier php
/**
//==================================== CONSTANTES ==================================
* Constantes des noms de tables et de champs dans l'annuaire
//==================================================================================
*/
define ("ANN_ANNUAIRE", "annuaire_tela");
define ("ANN_CHAMPS_NOM", "U_NAME"); // Nom du champs nom
define ("ANN_CHAMPS_MAIL", "U_MAIL"); // Nom du champs mail
define ("ANN_CHAMPS_PRENOM", "U_SURNAME"); // Nom du champs prénom
define ("ANN_CHAMPS_ID", "U_ID"); // Nom du champs id
define ("ANN_CHAMPS_DATE_INS", "U_DATE");
define ("ANN_CHAMPS_CODE_POSTAL", "U_ZIP_CODE");
define ("ANN_CHAMPS_VILLE", "U_CITY");
define ("ANN_CHAMPS_PAYS", "U_COUNTRY");

define ("ANN_TABLE_PAYS", "gen_COUNTRY");
define ("ANN_GC_ID", "GC_ID");
define ("ANN_GC_NOM", "GC_NAME");

define ("ANN_TABLE_DEPARTEMENT", "gen_FRENCH_DPT") ;

define ('MAIL_MODERATION','moderation@tela-botanica.org') ;

/**
//==================================== CONSTANTES ==================================
* Constantes des applications extérieures
//==================================================================================
*/
define ('INS_UTILISE_LISTE', true);
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org');
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org');

define ('INS_UTILISE_SPIP', 1);
if (INS_UTILISE_SPIP) {
        define ('INS_BDD_SPIP', 'tela_prod_spip_actu');
}

define ('ANNUAIRE_ADMIN', 'gen_annuaire');
define ('ANNUAIRE_ADMIN_ID', 'ga_id_administrateur');

define(INS_CHAMPS_ID, 'U_ID');
define(INS_CHAMPS_MAIL, 'U_MAIL');
define(INS_ANNUAIRE, 'annuaire_tela');
define(INS_CHAMPS_NOM, 'U_NAME');
define(INS_CHAMPS_PRENOM, 'U_SURNAME');


/** Tableau global contenant les mails des administrateurs. */
// Liste des personne recevant le mail après envoie de courriel par l'annuaire
$GLOBALS['mail_admin'] = array ('Accueil <accueil@tela-botanica.org>',
                                                                'Daniel MATHIEU <dmathieu@tela-botanica.org>',
                                                                'Jean-Pascal MILCENT <jpm@tela-botanica.org>',
                                                                'Élise MOUYSSET <elise@tela-botanica.org>');
?>