Subversion Repositories Applications.papyrus

Rev

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

Rev 433 Rev 434
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.1 2005-08-18 10:19:55 ddelon Exp $
24
// CVS : $Id: iw_config.inc.php,v 1.2 2005-08-25 08:59:12 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.1 $ $Date: 2005-08-18 10:19:55 $
37
*@version       $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
// Définition de la langue
46
// Définition de la langue
47
/** Constante stockant la valeur i18n fournie par Papyrus et pouvant être passée dans l'url.*/
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']);
48
define('IW_I18N', $GLOBALS['_GEN_commun']['i18n']);
49
 
49
 
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
// Définition des chemins de fichiers.
51
// Définition des chemins de fichiers.
52
/** Constante stockant le chemin du dossier racine.*/
52
/** Constante stockant le chemin du dossier racine.*/
53
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
53
define('IW_CHEMIN_RACINE', GEN_CHEMIN_CLIENT.'integrateur_wikini'.GEN_SEP);
54
/** Constante stockant le chemin du dossier contenant les traductions.*/
54
/** Constante stockant le chemin du dossier contenant les traductions.*/
55
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
55
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
56
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
56
/** Constante stockant le chemin du dossier contenant la bibliothèque de code.*/
57
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
57
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
58
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
58
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
59
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);
59
define('IW_CHEMIN_BIBLIO_WIKINI', IW_CHEMIN_BIBLIO.'wikini'.GEN_SEP);
60
 
60
 
61
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) {
61
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) {
62
    $GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost';
62
    $GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost';
63
}
63
}
64
/** Constante stockant le nom de l'hôte MySQL*/
64
/** Constante stockant le nom de l'hôte MySQL*/
65
define('HOTE', $GLOBALS['_GEN_commun']['info_application']->bdd_hote);
65
define('HOTE', $GLOBALS['_GEN_commun']['info_application']->bdd_hote);
66
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur)) {
66
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur)) {
67
    $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur = '';
67
    $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur = '';
68
}
68
}
69
/** Constante stockant le nom de l'utilisateur MySQL*/
69
/** Constante stockant le nom de l'utilisateur MySQL*/
70
define('UTILISATEUR', $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur);
70
define('UTILISATEUR', $GLOBALS['_GEN_commun']['info_application']->bdd_utilisateur);
71
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_mdp)) {
71
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_mdp)) {
72
    $GLOBALS['_GEN_commun']['info_application']->bdd_mdp = '';
72
    $GLOBALS['_GEN_commun']['info_application']->bdd_mdp = '';
73
}
73
}
74
/** Constante stockant le mot de passe de l'utilisateur MySQL*/
74
/** Constante stockant le mot de passe de l'utilisateur MySQL*/
75
define('MDP', $GLOBALS['_GEN_commun']['info_application']->bdd_mdp);
75
define('MDP', $GLOBALS['_GEN_commun']['info_application']->bdd_mdp);
76
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_nom)) {
76
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_nom)) {
77
    $GLOBALS['_GEN_commun']['info_application']->bdd_nom = '';
77
    $GLOBALS['_GEN_commun']['info_application']->bdd_nom = '';
78
}
78
}
79
/** Constante stockant le nom de la base de données MySQL pour le wikini*/
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);
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*/
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)
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)) {
83
if (!isset($GLOBALS['_GEN_commun']['info_application']->page)) {
84
    $GLOBALS['_GEN_commun']['info_application']->page = 'AccueiL';
84
    $GLOBALS['_GEN_commun']['info_application']->page = 'AccueiL';
85
}
85
}
86
if (!isset($GLOBALS['_GEN_commun']['info_application']->table_prefix)) {
86
if (!isset($GLOBALS['_GEN_commun']['info_application']->table_prefix)) {
87
    $GLOBALS['_GEN_commun']['info_application']->table_prefix = 'wikini_';
87
    $GLOBALS['_GEN_commun']['info_application']->table_prefix = 'wikini_';
88
}
88
}
89
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) {
89
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) {
90
    $GLOBALS['_GEN_commun']['info_application']->wikini_nom = '';
90
    $GLOBALS['_GEN_commun']['info_application']->wikini_nom = '';
91
}
91
}
92
/** Constantes de connexion aux bases de données MySQL*/
92
/** Constantes de connexion aux bases de données MySQL*/
93
global $wikini_config_defaut;
93
global $wikini_config_defaut;
94
$wikini_config_defaut = array(
94
$wikini_config_defaut = array(
95
    'wakka_version'         => '',
95
    "wakka_version" => "0.1.1",
-
 
96
	"wikini_version" => "0.4.3",
96
    'debug'                 => 'yes',
97
    'debug'                 => 'yes',
97
    'mysql_host'            => HOTE,
98
    'mysql_host'            => HOTE,
98
    'mysql_database'        => BD_WIKINI,
99
    'mysql_database'        => BD_WIKINI,
99
    'mysql_user'            => UTILISATEUR,
100
    'mysql_user'            => UTILISATEUR,
100
    'mysql_password'        => MDP,
101
    'mysql_password'        => MDP,
101
    'table_prefix'          => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
102
    'table_prefix'          => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
102
    'root_page'             => $GLOBALS['_GEN_commun']['info_application']->page,
103
    'root_page'             => $GLOBALS['_GEN_commun']['info_application']->page,
103
    'wakka_name'            => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
104
    'wakka_name'            => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
104
    'base_url'              => $GLOBALS['_GEN_commun']['url']->getUrl().'&amp;wiki=',
105
    'base_url'              => str_replace('&amp;', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
105
    'rewrite_mode'          => '0',
106
    'rewrite_mode'          => '0',
106
    'meta_keywords'         => '',
107
    'meta_keywords'         => '',
107
    'meta_description'      => '',
108
    'meta_description'      => '',
108
    'action_path'           => IW_CHEMIN_BIBLIO_WIKINI.'actions',
109
    'action_path'           => '/home/david/workspace/papyrus/wikini/wikini_01/actions',
109
    'handler_path'          => IW_CHEMIN_BIBLIO_WIKINI.'handlers',
110
    'handler_path'          => '/home/david/workspace/papyrus/wikini/wikini_01/handlers',
110
    'formatters_path'       => IW_CHEMIN_BIBLIO_WIKINI.'formatters',
111
    'formatters_path'       => '/home/david/workspace/papyrus/wikini/wikini_01/formatters',
111
    'interwiki_path'        => IW_CHEMIN_BIBLIO_WIKINI,
-
 
112
    'header_action'         => 'header',
112
    'header_action'         => 'header',
113
    'footer_action'         => 'footer',
113
    'footer_action'         => 'footer',
114
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
114
    'navigation_links'      => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
115
    'referrers_purge_time'  => 24,
115
    'referrers_purge_time'  => 24,
116
    'pages_purge_time'      => 90,
116
    'pages_purge_time'      => 90,
117
    'default_write_acl'     => '*',
117
    'default_write_acl'     => '*',
118
    'default_read_acl'      => '*',
118
    'default_read_acl'      => '*',
119
    'default_comment_acl'   => '*',
119
    'default_comment_acl'   => '*',
120
    'preview_before_save'   => '0');
120
    'preview_before_save'   => '0');
121
 
121
    
122
// +------------------------------------------------------------------------------------------------------+
122
// +------------------------------------------------------------------------------------------------------+
123
// |                                            PIED du PROGRAMME                                         |
123
// |                                            PIED du PROGRAMME                                         |
124
// +------------------------------------------------------------------------------------------------------+
124
// +------------------------------------------------------------------------------------------------------+
125
 
125
 
126
 
126
 
127
 
127
 
128
/* +--Fin du code ----------------------------------------------------------------------------------------+
128
/* +--Fin du code ----------------------------------------------------------------------------------------+
129
*
129
*
130
* $Log: not supported by cvs2svn $
130
* $Log: not supported by cvs2svn $
131
* Revision 1.1  2005/03/02 17:47:05  jpm
131
* Revision 1.1  2005/03/02 17:47:05  jpm
132
* Ajout des fichiers necessaires à l'intégrateur de wikini.
132
* Ajout des fichiers necessaires à l'intégrateur de wikini.
133
*
133
*
134
*
134
*
135
* +-- Fin du code ----------------------------------------------------------------------------------------+
135
* +-- Fin du code ----------------------------------------------------------------------------------------+
136
*/
136
*/
137
?>
137
?>