Subversion Repositories Applications.papyrus

Rev

Rev 1087 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1087 Rev 1198
Line 30... Line 30...
30
 
30
 
31
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
31
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
32
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
32
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
33
// termes.
33
// termes.
34
// ----
34
// ----
35
// CVS : $Id: pap_rendu.inc.php,v 1.29 2006-04-20 09:45:30 alexandre_tb Exp $
35
// CVS : $Id: pap_rendu.inc.php,v 1.29.2.1 2007-01-11 18:22:35 ddelon Exp $
36
/**
36
/**
37
* Rendu : programme traitant l'url demandée et retournant la page compressé au navigateur.
37
* Rendu : programme traitant l'url demandée et retournant la page compressé au navigateur.
38
*
38
*
39
* Ce programme contient la partie collectant les informations sur la page demandée par le navigateur client.
39
* Ce programme contient la partie collectant les informations sur la page demandée par le navigateur client.
Line 46... Line 46...
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
47
//Autres auteurs :
47
//Autres auteurs :
48
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
48
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
49
*@author        Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
49
*@author        Laurent COUDOUNEAU <laurent.coudouneau@ema.fr>
50
*@copyright     Tela-Botanica 2000-2004
50
*@copyright     Tela-Botanica 2000-2004
51
*@version       $Revision: 1.29 $ $Date: 2006-04-20 09:45:30 $
51
*@version       $Revision: 1.29.2.1 $ $Date: 2007-01-11 18:22:35 $
52
// +------------------------------------------------------------------------------------------------------+
52
// +------------------------------------------------------------------------------------------------------+
53
*/
53
*/
Line 54... Line 54...
54
 
54
 
Line 123... Line 123...
123
*/
123
*/
124
// Lecture du fichier de squelette XHTML en PHP 4.3
124
// Lecture du fichier de squelette XHTML en PHP 4.3
125
$GLOBALS['_PAPYRUS_']['general']['contenu_squelette'] = file_get_contents($GLOBALS['_PAPYRUS_']['general']['chemin_squelette']);
125
$GLOBALS['_PAPYRUS_']['general']['contenu_squelette'] = file_get_contents($GLOBALS['_PAPYRUS_']['general']['chemin_squelette']);
Line -... Line 126...
-
 
126
 
-
 
127
 
-
 
128
if (isset($GLOBALS['_GEN_commun']['traduction_info_site'])) {
-
 
129
	$type_site='traduction_info_site';
-
 
130
}
-
 
131
else {
-
 
132
	$type_site='info_site';
-
 
133
}
-
 
134
 
-
 
135
if (isset($GLOBALS['_GEN_commun']['traduction_info_menu'])) {
-
 
136
	$type_menu='traduction_info_menu';
-
 
137
}
-
 
138
else {
-
 
139
	$type_menu='info_menu';
-
 
140
}
Line 126... Line 141...
126
 
141
 
127
 
142
 
Line 128... Line 143...
128
 
143
 
129
// +------------------------------------------------------------------------------------------------------+
144
// +------------------------------------------------------------------------------------------------------+
130
// Recherche des informations pour la complétion de l'entête du squelette de la page demandée.
145
// Recherche des informations pour la complétion de l'entête du squelette de la page demandée.
131
 
146
 
132
if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
147
if (isset($GLOBALS['_GEN_commun'][$type_menu])) {
133
	// Construction du titre.
148
	// Construction du titre.
134
	if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre)) {
149
	if (! empty($GLOBALS['_GEN_commun'][$type_menu]->gm_titre)) {
135
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre);
150
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_titre);
136
	} else if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif)) {
151
	} else if (! empty($GLOBALS['_GEN_commun'][$type_menu]->gm_titre_alternatif)) {
Line 137... Line 152...
137
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif);
152
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_titre_alternatif);
138
	} else {
153
	} else {
139
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_nom);
154
	    $GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_nom);
Line 146... Line 161...
146
 
161
 
Line 147... Line 162...
147
 
162
 
148
$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = $GLOBALS['_PAPYRUS_']['page']['titre'];
163
$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = $GLOBALS['_PAPYRUS_']['page']['titre'];
149
 
164
 
150
// Construction des infos sur le site
165
// Construction des infos sur le site
151
$GLOBALS['_PAPYRUS_']['page']['nom_site'] = htmlentities($GLOBALS['_GEN_commun']['info_site']->gs_nom);
166
$GLOBALS['_PAPYRUS_']['page']['nom_site'] = htmlentities($GLOBALS['_GEN_commun'][$type_site]->gs_nom);
152
$GLOBALS['_PAPYRUS_']['rendu']['SITE_NOM'] = $GLOBALS['_PAPYRUS_']['page']['nom_site'];
167
$GLOBALS['_PAPYRUS_']['rendu']['SITE_NOM'] = $GLOBALS['_PAPYRUS_']['page']['nom_site'];
153
$GLOBALS['_PAPYRUS_']['page']['langue_site'] = htmlentities($GLOBALS['_GEN_commun']['i18n']);
168
$GLOBALS['_PAPYRUS_']['page']['langue_site'] = htmlentities($GLOBALS['_GEN_commun']['i18n']);
Line 154... Line 169...
154
$GLOBALS['_PAPYRUS_']['rendu']['SITE_LANGUE'] = $GLOBALS['_PAPYRUS_']['page']['langue_site'];
169
$GLOBALS['_PAPYRUS_']['rendu']['SITE_LANGUE'] = $GLOBALS['_PAPYRUS_']['page']['langue_site'];
155
$GLOBALS['_PAPYRUS_']['page']['code_alpha_site'] = htmlentities($GLOBALS['_GEN_commun']['info_site']->gs_code_alpha);
170
$GLOBALS['_PAPYRUS_']['page']['code_alpha_site'] = htmlentities($GLOBALS['_GEN_commun'][$type_site]->gs_code_alpha);
156
$GLOBALS['_PAPYRUS_']['rendu']['SITE_CODE_ALPHA'] = $GLOBALS['_PAPYRUS_']['page']['code_alpha_site'];
171
$GLOBALS['_PAPYRUS_']['rendu']['SITE_CODE_ALPHA'] = $GLOBALS['_PAPYRUS_']['page']['code_alpha_site'];
157
 
172
 
158
//Construction des infos sur le contexte d'affichage de la page
173
//Construction des infos sur le contexte d'affichage de la page
Line 159... Line 174...
159
$une_url =new Net_URL();
174
$une_url =new Net_URL();
160
$une_url->addQueryString("site",$_GEN_commun['url_site']);
175
$une_url->addQueryString("site",$GLOBALS['_GEN_commun']['url_site']);
161
$une_url->removeQueryString("langue");
176
$une_url->removeQueryString("langue");
162
$GLOBALS['_PAPYRUS_']['rendu']['PAGE_URL'] = $une_url->getUrl();
177
$GLOBALS['_PAPYRUS_']['rendu']['PAGE_URL'] = $une_url->getUrl();
163
 
178
 
164
 
179
 
165
// Construction des Meta "http-equiv".
180
// Construction des Meta "http-equiv".
166
$_GEN_commun['meta_http_equiv'] = array();
181
$GLOBALS['_GEN_commun']['meta_http_equiv'] = array();
167
$GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'] = htmlentities(strtoupper($_GEN_commun['info_i18n']->gi_jeu_de_caracteres));
182
$GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'] = htmlentities(strtoupper($GLOBALS['_GEN_commun']['info_i18n']->gi_jeu_de_caracteres));
168
$GLOBALS['_PAPYRUS_']['rendu']['SITE_JEU_DE_CARACTERES'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
183
$GLOBALS['_PAPYRUS_']['rendu']['SITE_JEU_DE_CARACTERES'] = $GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres'];
Line 169... Line 184...
169
$GLOBALS['_PAPYRUS_']['page']['langue'] = htmlentities($_GEN_commun['info_i18n_langue']->gil_id_langue);
184
$GLOBALS['_PAPYRUS_']['page']['langue'] = htmlentities($GLOBALS['_GEN_commun']['info_i18n_langue']->gil_id_langue);
170
$GLOBALS['_PAPYRUS_']['rendu']['SITE_LANGUE'] = $GLOBALS['_PAPYRUS_']['page']['langue'];
185
$GLOBALS['_PAPYRUS_']['rendu']['SITE_LANGUE'] = $GLOBALS['_PAPYRUS_']['page']['langue'];
171
GEN_stockerMetaHttpEquiv('Content-Type', 'text/html; charset='.$GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres']);
186
GEN_stockerMetaHttpEquiv('Content-Type', 'text/html; charset='.$GLOBALS['_PAPYRUS_']['page']['jeu_de_caracteres']);
172
GEN_stockerMetaHttpEquiv('Content-style-type', 'text/css');
187
GEN_stockerMetaHttpEquiv('Content-style-type', 'text/css');
173
GEN_stockerMetaHttpEquiv('Content-script-type', 'text/javascript');
188
GEN_stockerMetaHttpEquiv('Content-script-type', 'text/javascript');
174
GEN_stockerMetaHttpEquiv('Content-language', $GLOBALS['_PAPYRUS_']['page']['langue']);
189
GEN_stockerMetaHttpEquiv('Content-language', $GLOBALS['_PAPYRUS_']['page']['langue']);
175
 
190
 
176
// Construction des Meta "name".
191
// Construction des Meta "name".
177
$_GEN_commun['meta_name'] = array();
192
$GLOBALS['_GEN_commun']['meta_name'] = array();
178
if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
193
if (isset($GLOBALS['_GEN_commun'][$type_menu])) {
Line 179... Line 194...
179
	$GLOBALS['_PAPYRUS_']['page']['robot'] = htmlentities($_GEN_commun['info_menu']->gm_robot);
194
	$GLOBALS['_PAPYRUS_']['page']['robot'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_robot);
180
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur);
195
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_auteur);
-
 
196
}
181
}
197
else {
182
else {
198
	$GLOBALS['_PAPYRUS_']['page']['robot'] = '';
183
	$GLOBALS['_PAPYRUS_']['page']['robot'] = '';
199
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = '';
184
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = '';
200
}
185
}
201
		
186
		
202
if (empty($GLOBALS['_PAPYRUS_']['page']['auteur'])) {
187
if (empty($GLOBALS['_PAPYRUS_']['page']['auteur'])) {
203
    $GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($GLOBALS['_GEN_commun'][$type_site]->gs_auteur);
188
    $GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_site']->gs_auteur);
204
    
189
}
205
}
190
if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
206
if (isset($GLOBALS['_GEN_commun'][$type_menu])) {
191
	$GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($_GEN_commun['info_menu']->gm_mots_cles);
207
	$GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_mots_cles);
192
}
208
}
193
if (empty($GLOBALS['_PAPYRUS_']['page']['mots_cles'])) {
209
if (empty($GLOBALS['_PAPYRUS_']['page']['mots_cles'])) {
Line 194... Line 210...
194
    $GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($_GEN_commun['info_site']->gs_mots_cles);
210
    $GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($GLOBALS['_GEN_commun'][$type_site]->gs_mots_cles);
195
}
211
}
Line 207... Line 223...
207
GEN_stockerMetaName('keywords', $GLOBALS['_PAPYRUS_']['page']['mots_cles']);
223
GEN_stockerMetaName('keywords', $GLOBALS['_PAPYRUS_']['page']['mots_cles']);
208
GEN_stockerMetaName('description', $GLOBALS['_PAPYRUS_']['page']['description_libre']);
224
GEN_stockerMetaName('description', $GLOBALS['_PAPYRUS_']['page']['description_libre']);
Line 209... Line 225...
209
 
225
 
Line 210... Line 226...
210
// Construction des Meta Meta "name" du Dublin Core.
226
// Construction des Meta Meta "name" du Dublin Core.
211
 
227
 
212
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { 
228
if (isset($GLOBALS['_GEN_commun'][$type_menu])) { 
213
	$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = htmlentities($_GEN_commun['info_menu']->gm_titre_alternatif);
229
	$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_titre_alternatif);
214
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur);
230
	$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_auteur);
215
	$GLOBALS['_PAPYRUS_']['page']['description_resume'] = htmlentities($_GEN_commun['info_menu']->gm_description_resume);
231
	$GLOBALS['_PAPYRUS_']['page']['description_resume'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_description_resume);
216
	$GLOBALS['_PAPYRUS_']['page']['description_table_matieres'] = htmlentities($_GEN_commun['info_menu']->gm_description_table_matieres);
232
	$GLOBALS['_PAPYRUS_']['page']['description_table_matieres'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_description_table_matieres);
217
	$GLOBALS['_PAPYRUS_']['page']['publieur'] = htmlentities($_GEN_commun['info_menu']->gm_editeur);
233
	$GLOBALS['_PAPYRUS_']['page']['publieur'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_editeur);
218
	$GLOBALS['_PAPYRUS_']['page']['contributeur'] = htmlentities($_GEN_commun['info_menu']->gm_contributeur);
234
	$GLOBALS['_PAPYRUS_']['page']['contributeur'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_contributeur);
219
	$GLOBALS['_PAPYRUS_']['page']['date_creation'] = htmlentities($_GEN_commun['info_menu']->gm_date_creation);
235
	$GLOBALS['_PAPYRUS_']['page']['date_creation'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_date_creation);
220
	$GLOBALS['_PAPYRUS_']['page']['date_soumission'] = htmlentities($_GEN_commun['info_menu']->gm_date_soumission);
236
	$GLOBALS['_PAPYRUS_']['page']['date_soumission'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_date_soumission);
221
	$GLOBALS['_PAPYRUS_']['page']['date_acceptation'] = htmlentities($_GEN_commun['info_menu']->gm_date_acceptation);
237
	$GLOBALS['_PAPYRUS_']['page']['date_acceptation'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_date_acceptation);
222
	$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = htmlentities($_GEN_commun['info_menu']->gm_date_debut_validite);
238
	$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_date_debut_validite);
223
	$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = htmlentities($_GEN_commun['info_menu']->gm_date_copyright);
239
	$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_date_copyright);
224
	$GLOBALS['_PAPYRUS_']['page']['source'] = htmlentities($_GEN_commun['info_menu']->gm_source);
240
	$GLOBALS['_PAPYRUS_']['page']['source'] = htmlentities($GLOBALS['_GEN_commun'][$type_menu]->gm_source);
225
}
241
}
226
else {
242
else {
227
	$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = '';
243
	$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = '';
Line 236... Line 252...
236
	$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = '';
252
	$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = '';
237
	$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = '';
253
	$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = '';
238
	$GLOBALS['_PAPYRUS_']['page']['source'] = '';
254
	$GLOBALS['_PAPYRUS_']['page']['source'] = '';
239
}
255
}
Line 240... Line 256...
240
 
256
 
241
if ((isset($_GEN_commun['info_i18n_pays'])) && ($_GEN_commun['info_i18n_pays']->gip_id_pays != '')) {
257
if ((isset($GLOBALS['_GEN_commun']['info_i18n_pays'])) && ($GLOBALS['_GEN_commun']['info_i18n_pays']->gip_id_pays != '')) {
242
    $GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue'].'-'.htmlentities($_GEN_commun['info_i18n_pays']->gip_id_pays);
258
    $GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue'].'-'.htmlentities($GLOBALS['_GEN_commun']['info_i18n_pays']->gip_id_pays);
243
} else {
259
} else {
244
    $GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue'];
260
    $GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue'];
245
}
261
}
246
if (isset($GLOBALS['_GEN_commun']['info_menu'])) {
262
if (isset($GLOBALS['_GEN_commun']['$type_menu'])) {
247
	$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_spatiale);
263
	$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_ce_type_portee_spatiale);
248
	$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_portee_spatiale);
264
	$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_portee_spatiale);
249
	$GLOBALS['_PAPYRUS_']['page']['type_portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_temporelle);
265
	$GLOBALS['_PAPYRUS_']['page']['type_portee_temporelle'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_ce_type_portee_temporelle);
250
	$GLOBALS['_PAPYRUS_']['page']['portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_portee_temporelle);
266
	$GLOBALS['_PAPYRUS_']['page']['portee_temporelle'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_portee_temporelle);
251
	$GLOBALS['_PAPYRUS_']['page']['licence'] = htmlentities($_GEN_commun['info_menu']->gm_licence);
267
	$GLOBALS['_PAPYRUS_']['page']['licence'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_licence);
252
	$GLOBALS['_PAPYRUS_']['page']['public'] = htmlentities($_GEN_commun['info_menu']->gm_public);
268
	$GLOBALS['_PAPYRUS_']['page']['public'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_public);
253
	$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = htmlentities($_GEN_commun['info_menu']->gm_public_niveau);
269
	$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = htmlentities($GLOBALS['_GEN_commun']['$type_menu']->gm_public_niveau);
254
}
270
}
255
else {
271
else {
256
	$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = '';
272
	$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = '';
257
	$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = '';
273
	$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = '';
Line 261... Line 277...
261
	$GLOBALS['_PAPYRUS_']['page']['public'] = '';
277
	$GLOBALS['_PAPYRUS_']['page']['public'] = '';
262
	$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = '';
278
	$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = '';
Line 263... Line 279...
263
	
279
	
Line -... Line 280...
-
 
280
}
264
}
281
 
265
 
282
 
266
GEN_stockerMetaNameDC('DC.Title', $GLOBALS['_PAPYRUS_']['page']['titre'], $GLOBALS['_PAPYRUS_']['page']['langue']);
283
GEN_stockerMetaNameDC('DC.Title', $GLOBALS['_PAPYRUS_']['page']['titre'], $GLOBALS['_PAPYRUS_']['page']['langue']);
267
GEN_stockerMetaNameDC('DC.Title.alternative', $GLOBALS['_PAPYRUS_']['page']['titre_alternatif'], $GLOBALS['_PAPYRUS_']['page']['langue']);
284
GEN_stockerMetaNameDC('DC.Title.alternative', $GLOBALS['_PAPYRUS_']['page']['titre_alternatif'], $GLOBALS['_PAPYRUS_']['page']['langue']);
268
GEN_stockerMetaNameDC('DC.Creator', $GLOBALS['_PAPYRUS_']['page']['auteur']);
285
GEN_stockerMetaNameDC('DC.Creator', $GLOBALS['_PAPYRUS_']['page']['auteur']);
Line 302... Line 319...
302
// +------------------------------------------------------------------------------------------------------+
319
// +------------------------------------------------------------------------------------------------------+
303
// Gestion des inclusions des fichiers d'applettes
320
// Gestion des inclusions des fichiers d'applettes
304
// PERF : on inclus des applettes meme s'il elle ne sont pas utilisées, les initialisations peuvent etre
321
// PERF : on inclus des applettes meme s'il elle ne sont pas utilisées, les initialisations peuvent etre
305
// longue et c'est source de bug ...
322
// longue et c'est source de bug ...
Line 306... Line 323...
306
 
323
 
307
for ($i = 0; $i < count($_GEN_commun['info_applette']); $i++) {
324
for ($i = 0; $i < count($GLOBALS['_GEN_commun']['info_applette']); $i++) {
308
    // Nous vérifions que le chemin vers l'applette existe.
325
    // Nous vérifions que le chemin vers l'applette existe.
309
    if (file_exists($_GEN_commun['info_applette'][$i]->gap_chemin)) {
326
    if (file_exists($GLOBALS['_GEN_commun']['info_applette'][$i]->gap_chemin)) {
310
        include_once($_GEN_commun['info_applette'][$i]->gap_chemin);
327
        include_once($GLOBALS['_GEN_commun']['info_applette'][$i]->gap_chemin);
311
        // Nous récupérons l'expression régulière de la balise pour l'utiliser lors de l'appel
328
        // Nous récupérons l'expression régulière de la balise pour l'utiliser lors de l'appel
312
        // de la fonction de l'applette. L'appel des fonctions des applettes à lieu aprés l'appel
329
        // de la fonction de l'applette. L'appel des fonctions des applettes à lieu aprés l'appel
313
        // de l'application pour permettre à l'appli de modifier certains paramêtres (identification, ordre des menus).
330
        // de l'application pour permettre à l'appli de modifier certains paramêtres (identification, ordre des menus).
314
        $GLOBALS['_GEN_commun']['info_applette'][$i]->applette_balise = $GLOBALS['_GEN_commun']['info_applette_balise'];
331
        $GLOBALS['_GEN_commun']['info_applette'][$i]->applette_balise = $GLOBALS['_GEN_commun']['info_applette_balise'];
Line 513... Line 530...
513
 
530
 
514
// +------------------------------------------------------------------------------------------------------+
531
// +------------------------------------------------------------------------------------------------------+
515
// Remplacement des balises Papyrus dans le squelette
532
// Remplacement des balises Papyrus dans le squelette
516
foreach ($GLOBALS['_PAPYRUS_']['rendu'] as $GLOBALS['_PAPYRUS_']['tmp']['cle'] => $GLOBALS['_PAPYRUS_']['tmp']['val']) {
533
foreach ($GLOBALS['_PAPYRUS_']['rendu'] as $GLOBALS['_PAPYRUS_']['tmp']['cle'] => $GLOBALS['_PAPYRUS_']['tmp']['val']) {
517
    $GLOBALS['_PAPYRUS_']['general']['contenu_squelette'] = 
534
    $GLOBALS['_PAPYRUS_']['general']['contenu_squelette'] = 
518
                    str_replace(   '<!-- '.$_GEN_commun['balise_prefixe'].$GLOBALS['_PAPYRUS_']['tmp']['cle'].' -->',
535
                    str_replace(   '<!-- '.$GLOBALS['_GEN_commun']['balise_prefixe'].$GLOBALS['_PAPYRUS_']['tmp']['cle'].' -->',
519
                                    $GLOBALS['_PAPYRUS_']['tmp']['val'], 
536
                                    $GLOBALS['_PAPYRUS_']['tmp']['val'], 
520
                                    $GLOBALS['_PAPYRUS_']['general']['contenu_squelette']);
537
                                    $GLOBALS['_PAPYRUS_']['general']['contenu_squelette']);
521
}
538
}
522
// +------------------------------------------------------------------------------------------------------+
539
// +------------------------------------------------------------------------------------------------------+
Line 537... Line 554...
537
$GLOBALS['_GEN_commun']['sortie'] = $GLOBALS['_PAPYRUS_']['general']['contenu_squelette'];
554
$GLOBALS['_GEN_commun']['sortie'] = $GLOBALS['_PAPYRUS_']['general']['contenu_squelette'];
Line 538... Line 555...
538
 
555
 
539
/* +--Fin du code ---------------------------------------------------------------------------------------+
556
/* +--Fin du code ---------------------------------------------------------------------------------------+
540
*
557
*
-
 
558
* $Log: not supported by cvs2svn $
-
 
559
* Revision 1.29  2006/04/20 09:45:30  alexandre_tb
-
 
560
* ligne 92, remplacement de gs_fichier_squelette par gm_fichier_squelette, car on appelle le squelette du menu (s'il existe) et non du site.
-
 
561
* Posait un pb lors de l'affichage de squelettes (de menu) des traductions de menu
541
* $Log: not supported by cvs2svn $
562
*
542
* Revision 1.28  2006/03/13 21:00:20  ddelon
563
* Revision 1.28  2006/03/13 21:00:20  ddelon
543
* Suppression messages d'erreur multilinguisme
564
* Suppression messages d'erreur multilinguisme
544
*
565
*
545
* Revision 1.27  2006/03/02 13:45:27  ddelon
566
* Revision 1.27  2006/03/02 13:45:27  ddelon
Line 672... Line 693...
672
*
693
*
673
* Revision 1.24  2004/04/28 12:04:31  jpm
694
* Revision 1.24  2004/04/28 12:04:31  jpm
674
* Changement du modèle de la base de données.
695
* Changement du modèle de la base de données.
675
*
696
*
676
* Revision 1.23  2004/04/22 08:30:47  jpm
697
* Revision 1.23  2004/04/22 08:30:47  jpm
677
* Transformation de $GS_GLOBAL en $_GEN_commun.
698
* Transformation de $GS_GLOBAL en $GLOBALS['_GEN_commun'].
678
*
699
*
679
* Revision 1.22  2004/04/21 07:55:02  jpm
700
* Revision 1.22  2004/04/21 07:55:02  jpm
680
* Ajout de la feuille de style de débogage si le débogage de Génésia est activé.
701
* Ajout de la feuille de style de débogage si le débogage de Génésia est activé.
681
*
702
*
682
* Revision 1.19  2004/04/09 16:20:54  jpm
703
* Revision 1.19  2004/04/09 16:20:54  jpm