Subversion Repositories eFlore/Archives.herbiers

Rev

Rev 8 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1                                                                                      |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Herbier.                                                                        |
// |                                                                                                      |
// | Foobar is free software; you can redistribute it and/or modify                                       |
// | it under the terms of the GNU General Public License as published by                                 |
// | the Free Software Foundation; either version 2 of the License, or                                    |
// | (at your option) any later version.                                                                  |
// |                                                                                                      |
// | Foobar 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 General Public License for more details.                                                         |
// |                                                                                                      |
// | You should have received a copy of the GNU General Public License                                    |
// | along with Foobar; if not, write to the Free Software                                                |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: hb_config.inc.php,v 1.5 2006-10-31 15:06:44 jp_milcent Exp $
/**
* Configuration générale des applications de Herbier
*
* Ce fichier permet de stocker les valeurs de configuration communes aux différentes applications 
* constituant Herbier.
*
*@package Herbier
*@subpackage Configuration
//Auteur original :
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@author        Jean-Pascal MILCENT <jpm@clapas.org>
*@copyright     Tela-Botanica 2000-2005
*@version       $Revision: 1.5 $ $Date: 2006-10-31 15:06:44 $
// +------------------------------------------------------------------------------------------------------+
*/

// +------------------------------------------------------------------------------------------------------+
// |                                            ENTETE du PROGRAMME                                       |
// +------------------------------------------------------------------------------------------------------+

// 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 la variable globale de Herbier.*/
$GLOBALS['_HERBIER_'] = array();
/** Variable globale stockant une URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/
$GLOBALS['_HERBIER_']['url'] =& $GLOBALS['_GEN_commun']['url'];
/** Variable globale stockant l'objet Pear d'identification.*/
$GLOBALS['_HERBIER_']['auth'] =& $GLOBALS['_GEN_commun']['pear_auth'];
/** Variable globale stockant l'objet Pear DB.*/
$GLOBALS['_HERBIER_']['bdd'] = null;

// +------------------------------------------------------------------------------------------------------+
// Définition de la langue
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
define('HB_I18N', $GLOBALS['_GEN_commun']['i18n']);

// +------------------------------------------------------------------------------------------------------+
// Définition des arguments de l'appel de l'application
/** Constante stockant la demande d'authentification pour accéder aux applications.*/
define('HB_ARGUMENT_AUTH', 0);
if (!isset($GLOBALS['_GEN_commun']['info_application']->application)) {
    $GLOBALS['_GEN_commun']['info_application']->application = $_REQUEST['appli'];
}
define('HB_ARGUMENT_APPLI', $GLOBALS['_GEN_commun']['info_application']->application);

// +------------------------------------------------------------------------------------------------------+
// Définition des chemins de fichiers.
/** Constante stockant le chemin du dossier contenant l'API partagée.*/
define('HB_CHEMIN_API', GEN_CHEMIN_API);
/** Constante stockant le chemin du dossier contenant l'API JPGraph.*/
define('HB_CHEMIN_API_PEAR', PAP_CHEMIN_API_PEAR);
/** Constante stockant le chemin du dossier contenant l'API Débogage.*/
define('HB_CHEMIN_API_DEBOGAGE', HB_CHEMIN_API.'debogage'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
define('HB_CHEMIN_API_FRAGMENTEUR', HB_CHEMIN_API.'fragmenteur'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant l'API Formulaire.*/
define('HB_CHEMIN_API_FORMULAIRE', HB_CHEMIN_API.'formulaire'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant l'API Date.*/
define('HB_CHEMIN_API_FORM', HB_CHEMIN_API.'formulaire'.GEN_SEP);

/** Constante stockant le chemin du dossier contenant l'API Date.*/
define('HB_CHEMIN_API_DATE', HB_CHEMIN_API.'date'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant l'API Fragmenteur.*/
define('HB_CHEMIN_API_VOIRAUSSI', HB_CHEMIN_API.'voiraussi'.GEN_SEP);

/** Constante stockant le chemin du dossier racine de l'application.*/
define('HB_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);

/** Constante stockant le chemin absolu du dossier racine de l'application.*/
define('HB_CHEMIN_ABSO_RACINE', PAP_CHEMIN_RACINE.GEN_CHEMIN_CLIENT.'herbier'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les applications spécifiques de Herbier.*/
define('HB_CHEMIN_MODULE', HB_CHEMIN_RACINE.'applications'.GEN_SEP);
/** Constante stockant le chemin absolu du dossier contenant les applications spécifiques de Herbier.*/
define('HB_CHEMIN_ABSO_APPLI', HB_CHEMIN_ABSO_RACINE.'applications'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les traductions générales.*/
define('HB_CHEMIN_LANGUES', HB_CHEMIN_RACINE.'langues'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant la présentation générale.*/
define('HB_CHEMIN_PRESENTATION', HB_CHEMIN_RACINE.'presentations'.GEN_SEP);
/** Constante stockant le chemin absolu du dossier contenant la présentation générale.*/
define('HB_CHEMIN_ABSO_PRESENTATION', HB_CHEMIN_ABSO_RACINE.'presentations'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les images de Herbier.*/
define('HB_CHEMIN_IMAGES', HB_CHEMIN_PRESENTATION.'images'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les styles de Herbier.*/
define('HB_CHEMIN_STYLES', HB_CHEMIN_PRESENTATION.'styles'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les scripts côté client de Herbier.*/
define('HB_CHEMIN_SCRIPTS', HB_CHEMIN_PRESENTATION.'scripts'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant la bibliothèque de code générale.*/
define('HB_CHEMIN_BIBLIO', HB_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les documents de Herbier.*/
define('HB_CHEMIN_DOC', HB_CHEMIN_PRESENTATION.'documents'.GEN_SEP);
/** Constante stockant le chemin absolu du dossier contenant les documents de Herbier.*/
define('HB_CHEMIN_ABSO_DOC', HB_CHEMIN_ABSO_PRESENTATION.'documents'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant la bibliothèque de Cartographie.*/
define('HB_CHEMIN_BIBLIO_CARTO', HB_CHEMIN_BIBLIO.'cartographie'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les cartes de la bibliothèque de Cartographie.*/
define('HB_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'cartes'.GEN_SEP);

// +------------------------------------------------------------------------------------------------------+
// Définition de chemin d'accès et de nom de fichier pour la Cartographie
/** Constante stockant le chemin d'accès et le nom du fichier récupérant l'image de la carte et la renvoyant au client.*/
define('CAR_CHEMIN_CARTE', HB_CHEMIN_BIBLIO_CARTO.'carto.php?session='.session_name());
/** Constante stockant le chemin d'accès au dossier stockant les cartes temporaires générées par la carto.*/
define('CAR_CHEMIN_TMP', HB_CHEMIN_ABSO_DOC.'cartes_tmp'.GEN_SEP);
/** Constante stockant le nom du fichier de la carte de France des départements.*/
define('CAR_FICHIER_CARTE_FR_DPT', 'france.png');
/** Constante stockant le nom du fichier de la carte de France des départements.*/
define('CAR_FICHIER_CARTE_FR_DPT_MASQUE', 'france_masque.png');

// +------------------------------------------------------------------------------------------------------+
// Définition des chemins d'accès aux images.
/** Constante stockant le chemin d'accès au fichier ouvrir.png de Herbier.*/
define('HB_IMG_OUVRIR', HB_CHEMIN_IMAGES.'ouvrir.png');
/** Constante stockant le chemin d'accès au fichier fermer.png de Herbier.*/
define('HB_IMG_FERMER', HB_CHEMIN_IMAGES.'fermer.png');
/** Constante stockant le chemin d'accès au fichier arobrescence_trai.png de Herbier.*/
define('HB_IMG_ARBO', HB_CHEMIN_IMAGES.'arborescence_trait.png');
/** Constante stockant le chemin d'accès au fichier arobrescence_trai_fin.png de Herbier.*/
define('HB_IMG_ARBO_FIN', HB_CHEMIN_IMAGES.'arborescence_trait_fin.png');
/** Constante stockant le nom de la classe générique des icones de Herbier.*/
define('HB_CLASS_IMG_ICONE', 'hb_img_icone');
/** Constante stockant le nom de la classe générique de l'image fermer.png de Herbier.*/
define('HB_CLASS_IMG_FERMER', 'hb_img_fermer');


// +------------------------------------------------------------------------------------------------------+
// |                                            CORPS du PROGRAMME                                        |
// +------------------------------------------------------------------------------------------------------+

// ATTENTION : reprise directe des variables de conf de BiblioBota version 0.0

/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.4  2006/10/31 10:31:36  jp_milcent
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus.
*
* Revision 1.3  2006/10/30 18:57:17  jp_milcent
* Début gestion des flux rss.
*
* Revision 1.2  2006/09/22 09:19:14  jp_milcent
* Ajout de constantes de chemin.
*
* Revision 1.1  2005/11/23 10:32:32  jp_milcent
* Ajout au dépot de l'application Herbiers.
* Elle doit à terme migrer dans eFlore.
*
* Revision 1.3  2005/04/06 13:28:51  jpm
* Ajout des constantes de configuration.
*
* Revision 1.2  2005/03/09 15:58:00  jpm
* Ajout et modification de constantes.
*
* Revision 1.1  2005/03/08 14:13:59  jpm
* Ajout des fichiers de configuration de Herbier.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>