Subversion Repositories Applications.papyrus

Rev

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

Rev Author Line No. Line
433 ddelon 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Integrateur Wikini.                                                             |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
434 ddelon 24
// CVS : $Id: iw_config.inc.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
433 ddelon 25
/**
26
* Configuration de l'intégrateur de page Wikini
27
*
28
* Fichier de configuration de l'intégrateur de page Wikini
29
*
30
*@package IntegrateurWikini
31
*@subpackage Configuration
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
35
*@author        Aucun
36
*@copyright     Tela-Botanica 2000-2004
434 ddelon 37
*@version       $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
433 ddelon 38
// +------------------------------------------------------------------------------------------------------+
39
*/
40
 
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
44
 
45
// +------------------------------------------------------------------------------------------------------+
46
// Définition de la langue
47
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
48
define('IW_I18N', $GLOBALS['_GEN_commun']['i18n']);
49
 
50
// +------------------------------------------------------------------------------------------------------+
51
// Définition des chemins de fichiers.
52
/** Constante stockant le chemin du dossier racine.*/
53
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
54
/** Constante stockant le chemin du dossier contenant les traductions.*/
55
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
56
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
57
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
58
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
59
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);
60
 
61
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) {
62
    $GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost';
63
}
64
/** Constante stockant le nom de l'hôte MySQL*/
65
define('HOTE', $GLOBALS['_GEN_commun']['info_application']->bdd_hote);
66
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur)) {
67
    $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur = '';
68
}
69
/** Constante stockant le nom de l'utilisateur MySQL*/
70
define('UTILISATEUR', $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur);
71
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_mdp)) {
72
    $GLOBALS['_GEN_commun']['info_application']->bdd_mdp = '';
73
}
74
/** Constante stockant le mot de passe de l'utilisateur MySQL*/
75
define('MDP', $GLOBALS['_GEN_commun']['info_application']->bdd_mdp);
76
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_nom)) {
77
    $GLOBALS['_GEN_commun']['info_application']->bdd_nom = '';
78
}
79
/** Constante stockant le nom de la base de données MySQL pour le wikini*/
80
define('BD_WIKINI', $GLOBALS['_GEN_commun']['info_application']->bdd_nom);
81
/** Constante stockant le nom de la base de données MySQL générale*/
82
define('BD_GENERALE', PAP_BDD_NOM);//Nom de la base des tables de la carto (et éventuellement de chorologie)
83
if (!isset($GLOBALS['_GEN_commun']['info_application']->page)) {
84
    $GLOBALS['_GEN_commun']['info_application']->page = 'AccueiL';
85
}
86
if (!isset($GLOBALS['_GEN_commun']['info_application']->table_prefix)) {
87
    $GLOBALS['_GEN_commun']['info_application']->table_prefix = 'wikini_';
88
}
89
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) {
90
    $GLOBALS['_GEN_commun']['info_application']->wikini_nom = '';
91
}
92
/** Constantes de connexion aux bases de données MySQL*/
93
global $wikini_config_defaut;
94
$wikini_config_defaut = array(
434 ddelon 95
    "wakka_version" => "0.1.1",
96
	"wikini_version" => "0.4.3",
433 ddelon 97
    'debug'                 => 'yes',
98
    'mysql_host'            => HOTE,
99
    'mysql_database'        => BD_WIKINI,
100
    'mysql_user'            => UTILISATEUR,
101
    'mysql_password'        => MDP,
102
    'table_prefix'          => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
103
    'root_page'             => $GLOBALS['_GEN_commun']['info_application']->page,
104
    'wakka_name'            => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
434 ddelon 105
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
433 ddelon 106
    'rewrite_mode'          => '0',
107
    'meta_keywords'         => '',
108
    'meta_description'      => '',
434 ddelon 109
    'action_path'           => '/home/david/workspace/papyrus/wikini/wikini_01/actions',
110
    'handler_path'          => '/home/david/workspace/papyrus/wikini/wikini_01/handlers',
111
    'formatters_path'       => '/home/david/workspace/papyrus/wikini/wikini_01/formatters',
433 ddelon 112
    'header_action'         => 'header',
113
    'footer_action'         => 'footer',
114
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
115
    'referrers_purge_time'  => 24,
116
    'pages_purge_time'      => 90,
117
    'default_write_acl'     => '*',
118
    'default_read_acl'      => '*',
119
    'default_comment_acl'   => '*',
120
    'preview_before_save'   => '0');
434 ddelon 121
 
433 ddelon 122
// +------------------------------------------------------------------------------------------------------+
123
// |                                            PIED du PROGRAMME                                         |
124
// +------------------------------------------------------------------------------------------------------+
125
 
126
 
127
 
128
/* +--Fin du code ----------------------------------------------------------------------------------------+
129
*
130
* $Log: not supported by cvs2svn $
131
* Revision 1.1  2005/03/02 17:47:05  jpm
132
* Ajout des fichiers necessaires à l'intégrateur de wikini.
133
*
134
*
135
* +-- Fin du code ----------------------------------------------------------------------------------------+
136
*/
137
?>