Subversion Repositories Applications.papyrus

Rev

Rev 434 | 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.3 2005-08-31 17:34:52 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.3 $ $Date: 2005-08-31 17:34:52 $
// +------------------------------------------------------------------------------------------------------+
*/

// +------------------------------------------------------------------------------------------------------+
// |                                            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);
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);


// TODO : un wiki par défaut pour chaque papyrus 
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
}
    
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );

/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP);
  
global $wikini_config_defaut;

$wikini_config_defaut = array(
    "wakka_version" => "0.1.1",
        "wikini_version" => "0.4.3",
    'debug'                 => 'yes',
    'mysql_host'            => $config_wikini['bdd_hote'],
    'mysql_database'        => $config_wikini['bdd_nom'],
    'mysql_user'            => $config_wikini['bdd_utilisateur'],
    'mysql_password'        => $config_wikini['bdd_mdp'],
    'table_prefix'          => $config_wikini['table_prefix'],
    'root_page'             => $config_wikini['page'],
    'wakka_name'            => $config_wikini['code_alpha_wikini'],
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
    'rewrite_mode'          => '0',
    'meta_keywords'         => '',
    'meta_description'      => '',
    'action_path'           => IW_CHEMIN_WIKINI_COURANT.'actions',
    'handler_path'          => IW_CHEMIN_WIKINI_COURANT.'handlers',
    '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.2  2005/08/25 08:59:12  ddelon
* Integrateur Wikini et administration des Wikini
*
* Revision 1.1  2005/03/02 17:47:05  jpm
* Ajout des fichiers necessaires à l'intégrateur de wikini.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>