Line 19... |
Line 19... |
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.2 2005-08-25 08:59:12 ddelon Exp $
|
24 |
// CVS : $Id: iw_config.inc.php,v 1.3 2005-08-31 17:34:52 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 |
*
|
Line 32... |
Line 32... |
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.2 $ $Date: 2005-08-25 08:59:12 $
|
37 |
*@version $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// | ENTETE du PROGRAMME |
|
42 |
// | ENTETE du PROGRAMME |
|
Line -... |
Line 43... |
- |
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
|
44 |
|
45 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// Définition de la langue
|
47 |
// Définition de la langue
|
Line 55... |
Line 56... |
55 |
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
|
56 |
define('IW_CHEMIN_LANGUES', IW_CHEMIN_RACINE.'langues'.GEN_SEP);
|
56 |
/** 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.*/
|
57 |
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
|
58 |
define('IW_CHEMIN_BIBLIO', IW_CHEMIN_RACINE.'bibliotheque'.GEN_SEP);
|
58 |
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
|
59 |
/** Constante stockant le chemin du dossier contenant la bibliothèque Wikini.*/
|
59 |
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.*/
|
- |
|
62 |
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI);
|
Line 60... |
Line -... |
60 |
|
- |
|
61 |
if (!isset($GLOBALS['_GEN_commun']['info_application']->bdd_hote)) {
|
- |
|
62 |
$GLOBALS['_GEN_commun']['info_application']->bdd_hote = 'localhost';
|
63 |
|
63 |
}
|
64 |
|
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 |
}
|
65 |
// TODO : un wiki par défaut pour chaque papyrus
|
89 |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini_nom)) {
|
66 |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) {
|
90 |
$GLOBALS['_GEN_commun']['info_application']->wikini_nom = '';
|
67 |
$GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut';
|
- |
|
68 |
}
|
- |
|
69 |
|
- |
|
70 |
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] );
|
91 |
}
|
71 |
|
- |
|
72 |
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */
|
- |
|
73 |
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP);
|
- |
|
74 |
/** 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);
|
92 |
/** Constantes de connexion aux bases de données MySQL*/
|
76 |
|
- |
|
77 |
global $wikini_config_defaut;
|
93 |
global $wikini_config_defaut;
|
78 |
|
94 |
$wikini_config_defaut = array(
|
79 |
$wikini_config_defaut = array(
|
95 |
"wakka_version" => "0.1.1",
|
80 |
"wakka_version" => "0.1.1",
|
96 |
"wikini_version" => "0.4.3",
|
81 |
"wikini_version" => "0.4.3",
|
97 |
'debug' => 'yes',
|
82 |
'debug' => 'yes',
|
98 |
'mysql_host' => HOTE,
|
83 |
'mysql_host' => $config_wikini['bdd_hote'],
|
99 |
'mysql_database' => BD_WIKINI,
|
84 |
'mysql_database' => $config_wikini['bdd_nom'],
|
100 |
'mysql_user' => UTILISATEUR,
|
85 |
'mysql_user' => $config_wikini['bdd_utilisateur'],
|
101 |
'mysql_password' => MDP,
|
86 |
'mysql_password' => $config_wikini['bdd_mdp'],
|
102 |
'table_prefix' => $GLOBALS['_GEN_commun']['info_application']->table_prefix,
|
87 |
'table_prefix' => $config_wikini['table_prefix'],
|
103 |
'root_page' => $GLOBALS['_GEN_commun']['info_application']->page,
|
88 |
'root_page' => $config_wikini['page'],
|
104 |
'wakka_name' => $GLOBALS['_GEN_commun']['info_application']->wikini_nom,
|
89 |
'wakka_name' => $config_wikini['code_alpha_wikini'],
|
105 |
'base_url' => str_replace('&', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
|
90 |
'base_url' => str_replace('&', '&', $GLOBALS['_GEN_commun']['url']->getUrl()).'&wiki=',
|
106 |
'rewrite_mode' => '0',
|
91 |
'rewrite_mode' => '0',
|
107 |
'meta_keywords' => '',
|
92 |
'meta_keywords' => '',
|
108 |
'meta_description' => '',
|
93 |
'meta_description' => '',
|
109 |
'action_path' => '/home/david/workspace/papyrus/wikini/wikini_01/actions',
|
94 |
'action_path' => IW_CHEMIN_WIKINI_COURANT.'actions',
|
110 |
'handler_path' => '/home/david/workspace/papyrus/wikini/wikini_01/handlers',
|
- |
|
111 |
'formatters_path' => '/home/david/workspace/papyrus/wikini/wikini_01/formatters',
|
95 |
'handler_path' => IW_CHEMIN_WIKINI_COURANT.'handlers',
|
112 |
'header_action' => 'header',
|
96 |
'header_action' => 'header',
|
113 |
'footer_action' => 'footer',
|
97 |
'footer_action' => 'footer',
|
114 |
'navigation_links' => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
|
98 |
'navigation_links' => 'DerniersChangements :: DerniersCommentaires :: ParametresUtilisateur',
|
115 |
'referrers_purge_time' => 24,
|
99 |
'referrers_purge_time' => 24,
|
Line 126... |
Line 110... |
126 |
|
110 |
|
127 |
|
111 |
|
128 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
112 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
113 |
*
|
- |
|
114 |
* $Log: not supported by cvs2svn $
|
- |
|
115 |
* Revision 1.2 2005/08/25 08:59:12 ddelon
|
129 |
*
|
116 |
* Integrateur Wikini et administration des Wikini
|
130 |
* $Log: not supported by cvs2svn $
|
117 |
*
|
131 |
* Revision 1.1 2005/03/02 17:47:05 jpm
|
118 |
* Revision 1.1 2005/03/02 17:47:05 jpm
|
132 |
* Ajout des fichiers necessaires à l'intégrateur de wikini.
|
119 |
* Ajout des fichiers necessaires à l'intégrateur de wikini.
|
133 |
*
|
120 |
*
|