Subversion Repositories Applications.papyrus

Rev

Rev 1496 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1496 Rev 2150
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.3                                                                                      |
4
// | PHP version 4.3                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of Papyrus.                                                                        |
8
// | This file is part of Papyrus.                                                                        |
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: affi_configuration.inc.php,v 1.14 2007-06-26 13:30:48 jp_milcent Exp $
24
// CVS : $Id: affi_configuration.inc.php,v 1.14 2007-06-26 13:30:48 jp_milcent Exp $
25
/**
25
/**
26
* Application réalisant l'affichage du contenu stocké dans Papyrus.
26
* Application réalisant l'affichage du contenu stocké dans Papyrus.
27
*
27
*
28
* Les constantes et variables de configuration de l'application Afficheur.
28
* Les constantes et variables de configuration de l'application Afficheur.
29
*
29
*
30
*@package Afficheur
30
*@package Afficheur
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.14 $ $Date: 2007-06-26 13:30:48 $
37
*@version       $Revision: 1.14 $ $Date: 2007-06-26 13:30:48 $
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
// |                                            CORPS du PROGRAMME                                        |
47
// |                                            CORPS du PROGRAMME                                        |
48
// +------------------------------------------------------------------------------------------------------+
48
// +------------------------------------------------------------------------------------------------------+
49
// Chemin des fichiers à inclure.
49
// Chemin des fichiers à inclure.
50
/** Chemin vers la bibliothèque PEAR.*/
50
/** Chemin vers la bibliothèque PEAR.*/
51
define('AFFI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
51
define('AFFI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
52
/** Chemin vers la bibliothèque API.*/
52
/** Chemin vers la bibliothèque API.*/
53
define('AFFI_CHEMIN_BIBLIOTHEQUE_API', 'api'.GEN_SEP);
53
define('AFFI_CHEMIN_BIBLIOTHEQUE_API', 'api'.GEN_SEP);
54
/** Chemin vers la bibliothèque API : fckeditor.*/
54
/** Chemin vers la bibliothèque API : fckeditor.*/
55
define('AFFI_CHEMIN_FCKEDITOR', AFFI_CHEMIN_BIBLIOTHEQUE_API.'fckeditor'.GEN_SEP);
55
define('AFFI_CHEMIN_FCKEDITOR', AFFI_CHEMIN_BIBLIOTHEQUE_API.'fckeditor'.GEN_SEP);
56
/** Chemin vers l'application Admin de l'afficheur de Papyrus.*/
56
/** Chemin vers l'application Admin de l'afficheur de Papyrus.*/
57
define('AFFI_CHEMIN_APPLICATION', GEN_CHEMIN_APPLICATION.'afficheur'.GEN_SEP);
57
define('AFFI_CHEMIN_APPLICATION', GEN_CHEMIN_APPLICATION.'afficheur'.GEN_SEP);
58
/** Chemin vers le dossier des squelettes de l'application.*/
58
/** Chemin vers le dossier des squelettes de l'application.*/
59
define('AFFI_CHEMIN_SQUELETTE', AFFI_CHEMIN_APPLICATION.'squelettes'.GEN_SEP);
59
define('AFFI_CHEMIN_SQUELETTE', AFFI_CHEMIN_APPLICATION.'squelettes'.GEN_SEP);
60
/** Chemin vers le dossier des styles de l'application.*/
60
/** Chemin vers le dossier des styles de l'application.*/
61
define('AFFI_CHEMIN_STYLE', AFFI_CHEMIN_SQUELETTE);
61
define('AFFI_CHEMIN_STYLE', AFFI_CHEMIN_SQUELETTE);
62
/** Chaine à utiliser pour l'URL de la règle Freelink.*/
62
/** Chaine à utiliser pour l'URL de la règle Freelink.*/
63
define('AFFI_URL_PAPYRUS', PAP_URL.'?menu=%s');
63
define('AFFI_URL_PAPYRUS', PAP_URL.'?menu=%s');
64
 
64
 
65
/** Utilisation de fckeditor (true).*/
65
/** Utilisation de fckeditor (true).*/
66
$GLOBALS['_AFFI_']['fckeditor']['utilisation'] = true;
66
$GLOBALS['_AFFI_']['fckeditor']['utilisation'] = true;
67
/** Hauteur de fckeditor.*/
67
/** Hauteur de fckeditor.*/
68
$GLOBALS['_AFFI_']['fckeditor']['hauteur'] = '400';
68
$GLOBALS['_AFFI_']['fckeditor']['hauteur'] = '400';
69
/** Type de barre d'outil de fckeditor.*/
69
/** Type de barre d'outil de fckeditor.*/
70
$GLOBALS['_AFFI_']['fckeditor']['barre'] = 'Papyrus';
70
$GLOBALS['_AFFI_']['fckeditor']['barre'] = 'Papyrus';
71
/** Langue de fckeditor.*/
71
/** Langue de fckeditor.*/
72
$GLOBALS['_AFFI_']['fckeditor']['langue'] = $GLOBALS['_GEN_commun']['i18n'];
72
$GLOBALS['_AFFI_']['fckeditor']['langue'] = $GLOBALS['_GEN_commun']['i18n'];
73
/** Fichier de config personnalisé de fckeditor.*/
73
/** Fichier de config personnalisé de fckeditor.*/
74
$base_url = parse_url(PAP_URL);
74
$base_url = parse_url(PAP_URL);
75
$dirname_base_url = dirname($base_url['path']);
75
$dirname_base_url = dirname($base_url['path']);
76
// Suppression double slash pour site interdisant ce type d'url (a confirmer ...)
76
// Suppression double slash pour site interdisant ce type d'url (a confirmer ...)
77
// Probleme également avec des sous-domaines (~ree05/papyrus etc.) ....  
77
// Probleme également avec des sous-domaines (~ree05/papyrus etc.) ....  
78
$GLOBALS['_AFFI_']['fckeditor']['CustomConfigurationsPath'] = str_replace('//', '/', $dirname_base_url.GEN_SEP.AFFI_CHEMIN_APPLICATION.'configuration'.GEN_SEP.'affi_fckconfig.js');
78
$GLOBALS['_AFFI_']['fckeditor']['CustomConfigurationsPath'] = str_replace('//', '/', $dirname_base_url.GEN_SEP.AFFI_CHEMIN_APPLICATION.'configuration'.GEN_SEP.'affi_fckconfig.js');
79
 
79
 
80
// L'objet PEAR::DB à utiliser pour l'afficheur :
80
// L'objet PEAR::DB à utiliser pour l'afficheur :
81
$GLOBALS['_AFFICHEUR']['objet_pear_db'] =& $GLOBALS['_GEN_commun']['pear_db'];
81
$GLOBALS['_AFFICHEUR']['objet_pear_db'] =& $GLOBALS['_GEN_commun']['pear_db'];
82
 
82
 
83
// L'identifiant du menu courant :
83
// L'identifiant du menu courant :
84
if (isset($GLOBALS['_GEN_commun']['traduction_info_menu'])) {
84
if (isset($GLOBALS['_GEN_commun']['traduction_info_menu'])) {
85
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['traduction_info_menu']->gm_id_menu;
85
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['traduction_info_menu']->gm_id_menu;
86
} else if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
86
} else if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
87
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu;
87
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu;
88
} else {
88
} else {
89
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['url_menu'];
89
    $GLOBALS['_AFFICHEUR']['menu_courant_id'] = $GLOBALS['_GEN_commun']['url_menu'];
90
}
90
}
91
 
91
 
92
// Le jeu de caractère à utiliser pour la page courante :
92
// Le jeu de caractère à utiliser pour la page courante :
93
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
93
$GLOBALS['_AFFICHEUR']['jeu_de_caracteres'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
94
 
94
 
95
// Les sites correspodant aux liens interwiki:
95
// Les sites correspodant aux liens interwiki:
96
$GLOBALS['_AFFICHEUR']['interwiki_sites'] =& $GLOBALS['_PAPYRUS_']['interwiki_sites'];
96
$GLOBALS['_AFFICHEUR']['interwiki_sites'] =& $GLOBALS['_PAPYRUS_']['interwiki_sites'];
97
 
97
 
98
// Les sites correspodant à l'action inclure:
98
// Les sites correspodant à l'action inclure:
99
$GLOBALS['_AFFICHEUR']['inclure_sites'] =& $GLOBALS['_PAPYRUS_']['inclure_sites'];
99
$GLOBALS['_AFFICHEUR']['inclure_sites'] =& $GLOBALS['_PAPYRUS_']['inclure_sites'];
100
 
100
 
101
// +------------------------------------------------------------------------------------------------------+
101
// +------------------------------------------------------------------------------------------------------+
102
// |                                            PIED du PROGRAMME                                         |
102
// |                                            PIED du PROGRAMME                                         |
103
// +------------------------------------------------------------------------------------------------------+
103
// +------------------------------------------------------------------------------------------------------+
104
 
104
 
105
 
105
 
106
 
106
 
107
/* +--Fin du code ----------------------------------------------------------------------------------------+
107
/* +--Fin du code ----------------------------------------------------------------------------------------+
108
*
108
*
109
* $Log: not supported by cvs2svn $
109
* $Log: affi_configuration.inc.php,v $
-
 
110
* Revision 1.14  2007-06-26 13:30:48  jp_milcent
-
 
111
* Suppression de l'utilisation de Quickform.
-
 
112
* Utilisation de squellette PHP.
-
 
113
*
110
* Revision 1.13  2006-04-28 12:41:49  florian
114
* Revision 1.13  2006-04-28 12:41:49  florian
111
* corrections erreurs chemin
115
* corrections erreurs chemin
112
*
116
*
113
* Revision 1.12  2005/08/25 08:59:12  ddelon
117
* Revision 1.12  2005/08/25 08:59:12  ddelon
114
* Integrateur Wikini et administration des Wikini
118
* Integrateur Wikini et administration des Wikini
115
*
119
*
116
* Revision 1.11  2005/08/18 10:20:04  ddelon
120
* Revision 1.11  2005/08/18 10:20:04  ddelon
117
* Integrateur Wikini et Acces PEAR
121
* Integrateur Wikini et Acces PEAR
118
*
122
*
119
* Revision 1.10  2005/07/21 18:11:43  ddelon
123
* Revision 1.10  2005/07/21 18:11:43  ddelon
120
* configuration barre outil fcke
124
* configuration barre outil fcke
121
*
125
*
122
* Revision 1.9  2005/07/18 08:53:14  ddelon
126
* Revision 1.9  2005/07/18 08:53:14  ddelon
123
* Configuration Fcsk et menage
127
* Configuration Fcsk et menage
124
*
128
*
125
* Revision 1.8  2005/07/15 17:10:08  ddelon
129
* Revision 1.8  2005/07/15 17:10:08  ddelon
126
* Configuration Fcsk et menage
130
* Configuration Fcsk et menage
127
*
131
*
128
* Revision 1.7  2005/06/03 18:39:30  jpm
132
* Revision 1.7  2005/06/03 18:39:30  jpm
129
* Ajout de la barre d'outil Papyrus FCKeditor.
133
* Ajout de la barre d'outil Papyrus FCKeditor.
130
*
134
*
131
* Revision 1.6  2005/04/25 13:56:19  jpm
135
* Revision 1.6  2005/04/25 13:56:19  jpm
132
* Ajout de chemin vers les styles.
136
* Ajout de chemin vers les styles.
133
*
137
*
134
* Revision 1.5  2005/04/21 16:46:21  jpm
138
* Revision 1.5  2005/04/21 16:46:21  jpm
135
* Gestion via Papyrus du XHTML.
139
* Gestion via Papyrus du XHTML.
136
*
140
*
137
* Revision 1.4  2005/02/23 18:16:49  jpm
141
* Revision 1.4  2005/02/23 18:16:49  jpm
138
* Changement de l'url de Papyrus pour qu'elle corresponde à l'url courante de Papyrus.
142
* Changement de l'url de Papyrus pour qu'elle corresponde à l'url courante de Papyrus.
139
*
143
*
140
* Revision 1.3  2005/02/23 17:41:21  jpm
144
* Revision 1.3  2005/02/23 17:41:21  jpm
141
* Modification de l'initialisation d'une variable.
145
* Modification de l'initialisation d'une variable.
142
*
146
*
143
* Revision 1.2  2005/02/22 17:55:38  jpm
147
* Revision 1.2  2005/02/22 17:55:38  jpm
144
* Changement de variable pour la récupération de l'identifiant du menu courant.
148
* Changement de variable pour la récupération de l'identifiant du menu courant.
145
*
149
*
146
* Revision 1.1  2004/11/26 13:10:20  jpm
150
* Revision 1.1  2004/11/26 13:10:20  jpm
147
* Utilisation des actions Papyrus et implémentation de la syntaxe Wikini.
151
* Utilisation des actions Papyrus et implémentation de la syntaxe Wikini.
148
*
152
*
149
*
153
*
150
* +-- Fin du code ----------------------------------------------------------------------------------------+
154
* +-- Fin du code ----------------------------------------------------------------------------------------+
151
*/
155
*/
152
?>
156
?>