Subversion Repositories Applications.papyrus

Rev

Rev 433 | 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) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur Wikini.                                                             |
// |                                                                                                      |
// | 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: iw_config.inc.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
/**
* Configuration de l'intégrateur de page Wikini
*
* Fichier de configuration de l'intégrateur de page Wikini
*
*@package IntegrateurWikini
*@subpackage Configuration
//Auteur original :
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author        Aucun
*@copyright     Tela-Botanica 2000-2004
*@version       $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
// +------------------------------------------------------------------------------------------------------+
*/

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

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

// +------------------------------------------------------------------------------------------------------+
// Définition des chemins de fichiers.
/** Constante stockant le chemin du dossier racine.*/
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant les traductions.*/
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);

if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) {
    $GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost';
}
/** Constante stockant le nom de l'hôte MySQL*/
define('HOTE', $GLOBALS['_GEN_commun']['info_application']->bdd_hote);
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur)) {
    $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur = '';
}
/** Constante stockant le nom de l'utilisateur MySQL*/
define('UTILISATEUR', $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur);
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_mdp)) {
    $GLOBALS['_GEN_commun']['info_application']->bdd_mdp = '';
}
/** Constante stockant le mot de passe de l'utilisateur MySQL*/
define('MDP', $GLOBALS['_GEN_commun']['info_application']->bdd_mdp);
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_nom)) {
    $GLOBALS['_GEN_commun']['info_application']->bdd_nom = '';
}
/** Constante stockant le nom de la base de données MySQL pour le wikini*/
define('BD_WIKINI', $GLOBALS['_GEN_commun']['info_application']->bdd_nom);
/** Constante stockant le nom de la base de données MySQL générale*/
define('BD_GENERALE', PAP_BDD_NOM);//Nom de la base des tables de la carto (et éventuellement de chorologie)
if (!isset($GLOBALS['_GEN_commun']['info_application']->page)) {
    $GLOBALS['_GEN_commun']['info_application']->page = 'AccueiL';
}
if (!isset($GLOBALS['_GEN_commun']['info_application']->table_prefix)) {
    $GLOBALS['_GEN_commun']['info_application']->table_prefix = 'wikini_';
}
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) {
    $GLOBALS['_GEN_commun']['info_application']->wikini_nom = '';
}
/** Constantes de connexion aux bases de données MySQL*/
global $wikini_config_defaut;
$wikini_config_defaut = array(
    "wakka_version" => "0.1.1",
        "wikini_version" => "0.4.3",
    'debug'                 => 'yes',
    'mysql_host'            => HOTE,
    'mysql_database'        => BD_WIKINI,
    'mysql_user'            => UTILISATEUR,
    'mysql_password'        => MDP,
    'table_prefix'          => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
    'root_page'             => $GLOBALS['_GEN_commun']['info_application']->page,
    'wakka_name'            => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
    'rewrite_mode'          => '0',
    'meta_keywords'         => '',
    'meta_description'      => '',
    'action_path'           => '/home/david/workspace/papyrus/wikini/wikini_01/actions',
    'handler_path'          => '/home/david/workspace/papyrus/wikini/wikini_01/handlers',
    'formatters_path'       => '/home/david/workspace/papyrus/wikini/wikini_01/formatters',
    'header_action'         => 'header',
    'footer_action'         => 'footer',
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
    'referrers_purge_time'  => 24,
    'pages_purge_time'      => 90,
    'default_write_acl'     => '*',
    'default_read_acl'      => '*',
    'default_comment_acl'   => '*',
    'preview_before_save'   => '0');
    
// +------------------------------------------------------------------------------------------------------+
// |                                            PIED du PROGRAMME                                         |
// +------------------------------------------------------------------------------------------------------+



/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1  2005/03/02 17:47:05  jpm
* Ajout des fichiers necessaires à l'intégrateur de wikini.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>