Subversion Repositories Applications.papyrus

Rev

Rev 436 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 436 Rev 437
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Integrateur Wikini.                                                             |
8
// | This file is part of Integrateur Wikini.                                                             |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
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                                 |
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                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: iw_config.inc.php,v 1.3 2005-08-31 17:34:52 ddelon Exp $
24
// CVS : $Id: iw_config.inc.php,v 1.4 2005-09-02 11:29:25 ddelon Exp $
25
/**
25
/**
26
* Configuration de l'intégrateur de page Wikini
26
* Configuration de l'intégrateur de page Wikini
27
*
27
*
28
* Fichier de configuration de l'intégrateur de page Wikini
28
* Fichier de configuration de l'intégrateur de page Wikini
29
*
29
*
30
*@package IntegrateurWikini
30
*@package IntegrateurWikini
31
*@subpackage Configuration
31
*@subpackage Configuration
32
//Auteur original :
32
//Auteur original :
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Aucun
35
*@author        Aucun
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $
37
*@version       $Revision: 1.4 $ $Date: 2005-09-02 11:29:25 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
 
44
 
45
 
45
 
46
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
47
// Définition de la langue
47
// Définition de la langue
48
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
48
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
49
define('IW_I18N', $GLOBALS['_GEN_commun']['i18n']);
49
define('IW_I18N', $GLOBALS['_GEN_commun']['i18n']);
50
 
50
 
51
// +------------------------------------------------------------------------------------------------------+
51
// +------------------------------------------------------------------------------------------------------+
52
// Définition des chemins de fichiers.
52
// Définition des chemins de fichiers.
53
/** Constante stockant le chemin du dossier racine.*/
53
/** Constante stockant le chemin du dossier racine.*/
54
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
54
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
55
/** Constante stockant le chemin du dossier contenant les traductions.*/
55
/** Constante stockant le chemin du dossier contenant les traductions.*/
56
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
56
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
57
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
57
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
58
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
58
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
59
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
59
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
60
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);
60
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);
61
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/
61
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/
62
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);
62
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);
63
 
63
 
64
 
64
 
65
// TODO : un wiki par défaut pour chaque papyrus 
65
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
66
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
66
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
67
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
67
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
68
}
68
}
-
 
69
 
-
 
70
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
-
 
71
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
-
 
72
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
-
 
73
}
-
 
74
 
69
    
75
    
70
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );
76
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );
-
 
77
 
-
 
78
// Parametres de base de donnée de Papyrus par défaut  
-
 
79
 
-
 
80
 
-
 
81
if ((!isset($config_wikini['bdd_hote'])) || (empty($config_wikini['bdd_hote']))) {
-
 
82
   $config_wikini['bdd_hote'] = PAP_BDD_SERVEUR;
-
 
83
}
-
 
84
 
-
 
85
if ((!isset($config_wikini['bdd_nom'])) || (empty($config_wikini['bdd_nom'])))  {
-
 
86
   $config_wikini['bdd_nom'] = PAP_BDD_NOM;
-
 
87
}
-
 
88
 
-
 
89
if ((!isset($config_wikini['bdd_utilisateur'])) || (empty($config_wikini['bdd_utilisateur'])))  {
-
 
90
   $config_wikini['bdd_utilisateur'] = PAP_BDD_UTILISATEUR;
-
 
91
}
-
 
92
 
-
 
93
if ((!isset($config_wikini['bdd_mdp'])) || (empty($config_wikini['bdd_mdp'])))  {
-
 
94
   $config_wikini['bdd_mdp'] = PAP_BDD_MOT_DE_PASSE;
-
 
95
}
-
 
96
 
-
 
97
 
-
 
98
// Ordre de selection de la page de demmarage :
-
 
99
// Page Specifiee dans le menu
-
 
100
// Page par defaut du Wiki
-
 
101
// PagePrincipale
-
 
102
 
-
 
103
if ((!isset($GLOBALS['_GEN_commun']['info_application']->page))  ||  (empty($GLOBALS['_GEN_commun']['info_application']->page))) {
-
 
104
	$config_wikini['table_prefix'] = $GLOBALS['_GEN_commun']['info_application']->wikini.'_';
-
 
105
	if ((!isset($config_wikini['page']))  || (empty($config_wikini['page']))) {
-
 
106
   		$config_wikini['page'] = 'PagePrincipale';
-
 
107
	}
-
 
108
}
-
 
109
else {
-
 
110
	$config_wikini['page'] = $GLOBALS['_GEN_commun']['info_application']->page;
-
 
111
}
-
 
112
 
-
 
113
if ((!isset($config_wikini['code_alpha_wikini'])) || (empty($config_wikini['code_alpha_wikini'])))  {
-
 
114
   $config_wikini['code_alpha_wikini'] = $GLOBALS['_GEN_commun']['info_application']->wikini;
-
 
115
}
71
 
116
 
-
 
117
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
72
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
118
if ((!isset($config_wikini['chemin'])) || (empty($config_wikini['chemin'])))  {
-
 
119
	define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
-
 
120
}
-
 
121
else {
-
 
122
	define('IW_CHEMIN_WIKINI_COURANT',$config_wikini['chemin'].GEN_SEP);
-
 
123
}
73
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
124
 
74
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
125
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
75
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP);
126
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP);
76
  
127
  
77
global $wikini_config_defaut;
128
global $wikini_config_defaut;
78
 
129
 
79
$wikini_config_defaut = array(
130
$wikini_config_defaut = array(
80
    "wakka_version" => "0.1.1",
131
    "wakka_version" => "0.1.1",
81
	"wikini_version" => "0.4.3",
132
	"wikini_version" => "0.4.3",
82
    'debug'                 => 'yes',
133
    'debug'                 => 'yes',
83
    'mysql_host'            => $config_wikini['bdd_hote'],
134
    'mysql_host'            => $config_wikini['bdd_hote'],
84
    'mysql_database'        => $config_wikini['bdd_nom'],
135
    'mysql_database'        => $config_wikini['bdd_nom'],
85
    'mysql_user'            => $config_wikini['bdd_utilisateur'],
136
    'mysql_user'            => $config_wikini['bdd_utilisateur'],
86
    'mysql_password'        => $config_wikini['bdd_mdp'],
137
    'mysql_password'        => $config_wikini['bdd_mdp'],
87
    'table_prefix'          => $config_wikini['table_prefix'],
138
    'table_prefix'          => $config_wikini['table_prefix'],
88
    'root_page'             => $config_wikini['page'],
139
    'root_page'             => $config_wikini['page'],
89
    'wakka_name'            => $config_wikini['code_alpha_wikini'],
140
    'wakka_name'            => $config_wikini['code_alpha_wikini'],
90
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
141
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
91
    'rewrite_mode'          => '0',
142
    'rewrite_mode'          => '0',
92
    'meta_keywords'         => '',
143
    'meta_keywords'         => '',
93
    'meta_description'      => '',
144
    'meta_description'      => '',
94
    'action_path'           => IW_CHEMIN_WIKINI_COURANT.'actions',
145
    'action_path'           => IW_CHEMIN_WIKINI_COURANT.'actions',
95
    'handler_path'          => IW_CHEMIN_WIKINI_COURANT.'handlers',
146
    'handler_path'          => IW_CHEMIN_WIKINI_COURANT.'handlers',
96
    'header_action'         => 'header',
147
    'header_action'         => 'header',
97
    'footer_action'         => 'footer',
148
    'footer_action'         => 'footer',
98
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
149
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
99
    'referrers_purge_time'  => 24,
150
    'referrers_purge_time'  => 24,
100
    'pages_purge_time'      => 90,
151
    'pages_purge_time'      => 90,
101
    'default_write_acl'     => '*',
152
    'default_write_acl'     => '*',
102
    'default_read_acl'      => '*',
153
    'default_read_acl'      => '*',
103
    'default_comment_acl'   => '*',
154
    'default_comment_acl'   => '*',
104
    'preview_before_save'   => '0');
155
    'preview_before_save'   => '0');
105
    
156
    
106
// +------------------------------------------------------------------------------------------------------+
157
// +------------------------------------------------------------------------------------------------------+
107
// |                                            PIED du PROGRAMME                                         |
158
// |                                            PIED du PROGRAMME                                         |
108
// +------------------------------------------------------------------------------------------------------+
159
// +------------------------------------------------------------------------------------------------------+
109
 
160
 
110
 
161
 
111
 
162
 
112
/* +--Fin du code ----------------------------------------------------------------------------------------+
163
/* +--Fin du code ----------------------------------------------------------------------------------------+
113
*
164
*
114
* $Log: not supported by cvs2svn $
165
* $Log: not supported by cvs2svn $
-
 
166
* Revision 1.3  2005/08/31 17:34:52  ddelon
-
 
167
* Integrateur Wikini et administration des Wikini
-
 
168
*
115
* Revision 1.2  2005/08/25 08:59:12  ddelon
169
* Revision 1.2  2005/08/25 08:59:12  ddelon
116
* Integrateur Wikini et administration des Wikini
170
* Integrateur Wikini et administration des Wikini
117
*
171
*
118
* Revision 1.1  2005/03/02 17:47:05  jpm
172
* Revision 1.1  2005/03/02 17:47:05  jpm
119
* Ajout des fichiers necessaires à l'intégrateur de wikini.
173
* Ajout des fichiers necessaires à l'intégrateur de wikini.
120
*
174
*
121
*
175
*
122
* +-- Fin du code ----------------------------------------------------------------------------------------+
176
* +-- Fin du code ----------------------------------------------------------------------------------------+
123
*/
177
*/
124
?>
178
?>