Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 45 → Rev 46

/trunk/serveur/configuration/eflore_config_avancee.inc.php
New file
0,0 → 1,136
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 5.0 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of eFlore-Serveur. |
// | |
// | 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: eflore_config_avancee.inc.php,v 1.1 2004-12-22 13:28:16 jpm Exp $
/**
* Fichier de configuration d'eFlore-Serveur
*
* Ce fichier contient les constantes et éventuellement des variables globales contenant toutes les info
* nécessaire à la configuration du programme eFlore-Serveur.
*
*@package eFlore-Serveur
*@subpackage Configuration
//Auteur original :
*@author Frédéric LEGENS <flegens@free.fr>
//Autres auteurs :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2004-12-22 13:28:16 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
// Constante générale
/** Constante stockant la version du programme.*/
define('EFSE_VERSION', '0.0.1');
/** Constante stockant l'intitulé de version du programme.*/
define('EFSE_VERSION_INTITULE', 'Version '.EFSE_VERSION);
 
// +------------------------------------------------------------------------------------------------------+
// Constante de chemin de dossier et fichier
$separateur = strstr( PHP_OS, "WIN") ? '\\' : '/';
/** Constante stockant le séparateur de dossier qui dépend de l'OS.*/
define('EFSE_SEP', $separateur);
/** Constante stockant la valeur de la racine des chemins.*/
define('EFSE_CHEMIN_RACINE', '/');
/** Constante stockant le chemin vers la configuration.*/
define('EFSE_CHEMIN_CONFIG', 'configuration'.EFSE_SEP);
/** Constante stockant le chemin vers la bibliothèque.*/
define('EFSE_CHEMIN_BIBLIO', 'bibliotheque'.EFSE_SEP);
/** Constante stockant le chemin vers la bibliothèque des classes.*/
define('EFSE_CHEMIN_CLASSE', EFSE_CHEMIN_BIBLIO.'classes'.EFSE_SEP);
/** Constante stockant le chemin vers la bibliothèque des interfaces.*/
define('EFSE_CHEMIN_INTERFACE', EFSE_CHEMIN_BIBLIO.'interfaces'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des définitions.*/
define('EFSE_CHEMIN_DEFINITION', 'definitions'.EFSE_SEP);
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
define('EFSE_CHEMIN_DEF_MACRO', EFSE_CHEMIN_DEFINITION.'macro_elements'.EFSE_SEP);
/** Constante stockant le chemin vers les groupes de macro-éléments.*/
define('EFSE_CHEMIN_DEF_MACRO_GROUPE', EFSE_CHEMIN_DEFINITION.'groupes_macro_elements'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des publications au format xhtml.*/
define('EFSE_CHEMIN_DEF_PUBLI_XHTML', EFSE_CHEMIN_DEFINITION.'publications_html'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des publications au format xml.*/
define('EFSE_CHEMIN_DEF_PUBLI_XML', EFSE_CHEMIN_DEFINITION.'publications_xml'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des fichiers Modèles et Vues pouvant être générés.*/
define('EFSE_CHEMIN_MV', 'eflore_mv'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des Modèles.*/
define('EFSE_CHEMIN_MV_MODELE', EFSE_CHEMIN_MV.'modeles'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier des Vues.*/
define('EFSE_CHEMIN_MV_VUE', EFSE_CHEMIN_MV.'vues'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les groupes de macro-éléments.*/
define('EFSE_CHEMIN_MV_MACRO_GROUPE', EFSE_CHEMIN_MV_MODELE.'groupes_macro_elements'.EFSE_SEP);
/** Constante stockant le chemin vers le dossier permettant d'automatiser la création de PHP pour les macro-éléments.*/
define('EFSE_CHEMIN_MV_MACRO', EFSE_CHEMIN_MV_MODELE.'macro_elements'.EFSE_SEP);
 
/** Constante stockant le chemin vers la carte des services principaux.*/
define('EFSE_FICHIER_MAP', EFSE_CHEMIN_MV.'eflore_services.map');
/** Constante stockant le chemin vers le fichier de configuration principal.*/
define('EFSE_FICHIER_CONFIG', EFSE_CHEMIN_CONFIG.'eflore_config.php');
 
/** Constante stockant la valeur de la racine des chemins.*/
define('EFSE_CHEMIN_GENERATEUR_RACINE', '..'.EFSE_SEP);
 
// Tableau stockant les différentes valeurs permettant de configurer l'appli.
/*
$appConfig = array(
'mysql_host' => 'localhost',
'mysql_database' => 'eflore-test',
'mysql_user' => 'eflorete',
'mysql_password' => 'rcf8wvc',
'app_version' => 'Version 0.0.1',
'service_map' => ,
'def_groupes'=>'definitions\\groupesmacroelements\\',
'def_macro'=>'definitions\\macroelements\\',
'service_map'=>'definitions\\eflore_services.map',
'publi_html'=>'definitions\\publicationshtml\\',
'publi_xml'=>'definitions\\publicationsxml\\',
'auto_groupes'=>'phpautomatique\\groupesmacroelements\\',
'auto_macro'=>'phpautomatique\\macroelements\\'
);
*/
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.4 2004/12/22 13:24:47 jpm
* Modif.
*
* Revision 1.3 2004/12/16 22:07:53 fred
* correction du numéro de version de PHP
*
* Revision 1.2 2004/12/16 16:40:59 jpm
* Ajout de chemin.
*
* Revision 1.1.1.1 2004/12/16 12:24:36 jpm
* Importation initiale eFlore v1.1 et serveur.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>