Subversion Repositories Applications.papyrus

Rev

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

Rev 1293 Rev 1298
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.9 2007-04-06 08:40:13 neiluj Exp $
24
// CVS : $Id: iw_config.inc.php,v 1.10 2007-04-11 08:30:12 neiluj 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.9 $ $Date: 2007-04-06 08:40:13 $
37
*@version       $Revision: 1.10 $ $Date: 2007-04-11 08:30:12 $
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 la bibliothèque Wikini.*/
61
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
62
define('IW_CHEMIN_BIBLIO_ACEDITOR', IW_CHEMIN_BIBLIO.'ACeditor'.GEN_SEP);
62
define('IW_CHEMIN_BIBLIO_ACEDITOR', IW_CHEMIN_BIBLIO.'ACeditor'.GEN_SEP);
63
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/
63
/** Constante stockant le chemin du dossier contenant les sites Wikini.*/
64
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);
64
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);
65
/** Chemin vers la bibliothèque API.*/
65
/** Chemin vers la bibliothèque API.*/
66
define('IW_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
66
define('IW_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
67
/** Chemin vers la bibliothèque API : fckeditor.*/
67
/** Chemin vers la bibliothèque API : fckeditor.*/
68
 
68
 
69
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
69
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
70
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
70
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
71
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
71
   $GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
72
}
72
}
73
 
73
 
74
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );
74
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );
75
 
75
 
76
// Parametres de base de donnée de Papyrus par défaut  
76
// Parametres de base de donnée de Papyrus par défaut  
77
 
77
 
78
 
78
 
79
if ((!isset($config_wikini['bdd_hote'])) || (empty($config_wikini['bdd_hote']))) {
79
if ((!isset($config_wikini['bdd_hote'])) || (empty($config_wikini['bdd_hote']))) {
80
   $config_wikini['bdd_hote'] = PAP_BDD_SERVEUR;
80
   $config_wikini['bdd_hote'] = PAP_BDD_SERVEUR;
81
}
81
}
82
 
82
 
83
if ((!isset($config_wikini['bdd_nom'])) || (empty($config_wikini['bdd_nom'])))  {
83
if ((!isset($config_wikini['bdd_nom'])) || (empty($config_wikini['bdd_nom'])))  {
84
   $config_wikini['bdd_nom'] = PAP_BDD_NOM;
84
   $config_wikini['bdd_nom'] = PAP_BDD_NOM;
85
}
85
}
86
 
86
 
87
if ((!isset($config_wikini['bdd_utilisateur'])) || (empty($config_wikini['bdd_utilisateur'])))  {
87
if ((!isset($config_wikini['bdd_utilisateur'])) || (empty($config_wikini['bdd_utilisateur'])))  {
88
   $config_wikini['bdd_utilisateur'] = PAP_BDD_UTILISATEUR;
88
   $config_wikini['bdd_utilisateur'] = PAP_BDD_UTILISATEUR;
89
}
89
}
90
 
90
 
91
if ((!isset($config_wikini['bdd_mdp'])) || (empty($config_wikini['bdd_mdp'])))  {
91
if ((!isset($config_wikini['bdd_mdp'])) || (empty($config_wikini['bdd_mdp'])))  {
92
   $config_wikini['bdd_mdp'] = PAP_BDD_MOT_DE_PASSE;
92
   $config_wikini['bdd_mdp'] = PAP_BDD_MOT_DE_PASSE;
93
}
93
}
94
 
94
 
95
if ((!isset($config_wikini['table_prefix'])) || (empty($config_wikini['table_prefix'])))  {
95
if ((!isset($config_wikini['table_prefix'])) || (empty($config_wikini['table_prefix'])))  {
96
	$config_wikini['table_prefix'] = $GLOBALS['_GEN_commun']['info_application']->wikini.'_';
96
	$config_wikini['table_prefix'] = $GLOBALS['_GEN_commun']['info_application']->wikini.'_';
97
}
97
}
98
	
98
	
99
 
99
 
100
// Ordre de selection de la page de demarrage :
100
// Ordre de selection de la page de demarrage :
101
// Page Specifiee dans le menu 
101
// Page Specifiee dans le menu 
102
// Page par defaut du Wiki enregistré
102
// Page par defaut du Wiki enregistré
103
// PagePrincipale
103
// PagePrincipale
104
 
104
 
105
if ((!isset($GLOBALS['_GEN_commun']['info_application']->page))  ||  (empty($GLOBALS['_GEN_commun']['info_application']->page))) {
105
if ((!isset($GLOBALS['_GEN_commun']['info_application']->page))  ||  (empty($GLOBALS['_GEN_commun']['info_application']->page))) {
106
	if ((!isset($config_wikini['page']))  || (empty($config_wikini['page']))) {
106
	if ((!isset($config_wikini['page']))  || (empty($config_wikini['page']))) {
107
   		$config_wikini['page'] = 'PagePrincipale';
107
   		$config_wikini['page'] = 'PagePrincipale';
108
	}
108
	}
109
}
109
}
110
else {
110
else {
111
	$config_wikini['page'] = $GLOBALS['_GEN_commun']['info_application']->page;
111
	$config_wikini['page'] = $GLOBALS['_GEN_commun']['info_application']->page;
112
}
112
}
113
 
113
 
114
if ((!isset($config_wikini['code_alpha_wikini'])) || (empty($config_wikini['code_alpha_wikini'])))  {
114
if ((!isset($config_wikini['code_alpha_wikini'])) || (empty($config_wikini['code_alpha_wikini'])))  {
115
   $config_wikini['code_alpha_wikini'] = $GLOBALS['_GEN_commun']['info_application']->wikini;
115
   $config_wikini['code_alpha_wikini'] = $GLOBALS['_GEN_commun']['info_application']->wikini;
116
}
116
}
117
 
117
 
118
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
118
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
119
 
119
 
120
/** Utilité ? **/ 
120
/** Utilité ? **/ 
121
if ((!isset($config_wikini['chemin'])) || (empty($config_wikini['chemin'])))  {
121
if ((!isset($config_wikini['chemin'])) || (empty($config_wikini['chemin'])))  {
122
	define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
122
	define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
123
}
123
}
124
else {
124
else {
125
	define('IW_CHEMIN_WIKINI_COURANT',$config_wikini['chemin'].GEN_SEP);
125
	define('IW_CHEMIN_WIKINI_COURANT',$config_wikini['chemin'].GEN_SEP);
126
}
126
}
127
 
127
 
128
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
128
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
129
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP);
129
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP);
130
  
130
  
131
global $wikini_config_defaut;
131
global $wikini_config_defaut;
132
 
-
 
-
 
132
// Ajout dans l'URL générale du Query String wiki spécifique à l'intégrateur
-
 
133
$GLOBALS['_GEN_commun']['url']->addQueryString('wiki', '');
133
$wikini_config_defaut = array(
134
$wikini_config_defaut = array(
134
    "wakka_version" => "0.1.1",
135
    "wakka_version" => "0.1.1",
135
	"wikini_version" => "0.4.3",
136
	"wikini_version" => "0.4.3",
136
    'mysql_host'            => $config_wikini['bdd_hote'],
137
    'mysql_host'            => $config_wikini['bdd_hote'],
137
    'mysql_database'        => $config_wikini['bdd_nom'],
138
    'mysql_database'        => $config_wikini['bdd_nom'],
138
    'mysql_user'            => $config_wikini['bdd_utilisateur'],
139
    'mysql_user'            => $config_wikini['bdd_utilisateur'],
139
    'mysql_password'        => $config_wikini['bdd_mdp'],
140
    'mysql_password'        => $config_wikini['bdd_mdp'],
140
    'table_prefix'          => $config_wikini['table_prefix'],
141
    'table_prefix'          => $config_wikini['table_prefix'],
141
    'root_page'             => $config_wikini['page'],
142
    'root_page'             => $config_wikini['page'],
142
    'wakka_name'            => $config_wikini['code_alpha_wikini'],
143
    'wakka_name'            => $config_wikini['code_alpha_wikini'],
143
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
144
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()),
144
    'rewrite_mode'          => '0',
145
    'rewrite_mode'          => '0',
145
    'meta_keywords'         => '',
146
    'meta_keywords'         => '',
146
    'meta_description'      => '',
147
    'meta_description'      => '',
147
    'action_path'           => IW_CHEMIN_WIKINI_COURANT.'actions',
148
    'action_path'           => IW_CHEMIN_WIKINI_COURANT.'actions',
148
    'handler_path'          => IW_CHEMIN_WIKINI_COURANT.'handlers',
149
    'handler_path'          => IW_CHEMIN_WIKINI_COURANT.'handlers',
149
    'header_action'         => 'header',
150
    'header_action'         => 'header',
150
    'footer_action'         => 'footer',
151
    'footer_action'         => 'footer',
151
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
152
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
152
    'referrers_purge_time'  => 24,
153
    'referrers_purge_time'  => 24,
153
    'pages_purge_time'      => 90,
154
    'pages_purge_time'      => 90,
154
    'default_write_acl'     => '*',
155
    'default_write_acl'     => '*',
155
    'default_read_acl'      => '*',
156
    'default_read_acl'      => '*',
156
    'default_comment_acl'   => '*',
157
    'default_comment_acl'   => '*',
157
    'preview_before_save'   => '0');
158
    'preview_before_save'   => '0');
158
    
-
 
-
 
159
// Suppression de l'URL générale du Query String wiki spécifique à l'intégrateur
-
 
160
$GLOBALS['_GEN_commun']['url']->removeQueryString('wiki', '');
159
// +------------------------------------------------------------------------------------------------------+
161
// +------------------------------------------------------------------------------------------------------+
160
// |                                            PIED du PROGRAMME                                         |
162
// |                                            PIED du PROGRAMME                                         |
161
// +------------------------------------------------------------------------------------------------------+
163
// +------------------------------------------------------------------------------------------------------+
162
 
164
 
163
 
165
 
164
 
166
 
165
/* +--Fin du code ----------------------------------------------------------------------------------------+
167
/* +--Fin du code ----------------------------------------------------------------------------------------+
166
*
168
*
167
* $Log: not supported by cvs2svn $
169
* $Log: not supported by cvs2svn $
-
 
170
* Revision 1.8  2006/11/09 17:50:41  jp_milcent
-
 
171
* Compatibilité avec les nouveaux permaliens de Papyrus.
-
 
172
*
168
* Revision 1.7  2005/09/14 09:12:15  ddelon
173
* Revision 1.7  2005/09/14 09:12:15  ddelon
169
* Integrateur Wikini et administration des Wikini
174
* Integrateur Wikini et administration des Wikini
170
*
175
*
171
* Revision 1.6  2005/09/09 09:37:17  ddelon
176
* Revision 1.6  2005/09/09 09:37:17  ddelon
172
* Integrateur Wikini et administration des Wikini
177
* Integrateur Wikini et administration des Wikini
173
*
178
*
174
* Revision 1.5  2005/09/06 08:35:36  ddelon
179
* Revision 1.5  2005/09/06 08:35:36  ddelon
175
* Integrateur Wikini et administration des Wikini
180
* Integrateur Wikini et administration des Wikini
176
*
181
*
177
* Revision 1.4  2005/09/02 11:29:25  ddelon
182
* Revision 1.4  2005/09/02 11:29:25  ddelon
178
* Integrateur Wikini et administration des Wikini
183
* Integrateur Wikini et administration des Wikini
179
*
184
*
180
* Revision 1.3  2005/08/31 17:34:52  ddelon
185
* Revision 1.3  2005/08/31 17:34:52  ddelon
181
* Integrateur Wikini et administration des Wikini
186
* Integrateur Wikini et administration des Wikini
182
*
187
*
183
* Revision 1.2  2005/08/25 08:59:12  ddelon
188
* Revision 1.2  2005/08/25 08:59:12  ddelon
184
* Integrateur Wikini et administration des Wikini
189
* Integrateur Wikini et administration des Wikini
185
*
190
*
186
* Revision 1.1  2005/03/02 17:47:05  jpm
191
* Revision 1.1  2005/03/02 17:47:05  jpm
187
* Ajout des fichiers necessaires à l'intégrateur de wikini.
192
* Ajout des fichiers necessaires à l'intégrateur de wikini.
188
*
193
*
189
*
194
*
190
* +-- Fin du code ----------------------------------------------------------------------------------------+
195
* +-- Fin du code ----------------------------------------------------------------------------------------+
191
*/
196
*/
192
?>
197
?>