32,7 → 32,7 |
// pris connaissance de la licence CeCILL, et que vous en avez accepté les |
// termes. |
// ---- |
// CVS : $Id: pap_rendu.inc.php,v 1.17 2005-09-20 17:01:22 ddelon Exp $ |
// CVS : $Id: pap_rendu.inc.php,v 1.18 2005-09-22 14:02:49 ddelon Exp $ |
/** |
* Rendu : programme traitant l'url demandée et retournant la page compressé au navigateur. |
* |
48,10 → 48,12 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
*@author Laurent COUDOUNEAU <laurent.coudouneau@ema.fr> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.17 $ $Date: 2005-09-20 17:01:22 $ |
*@version $Revision: 1.18 $ $Date: 2005-09-22 14:02:49 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
// TODO : revoir les initialisation en l'absence de menu par defaut |
|
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
125,14 → 127,21 |
// +------------------------------------------------------------------------------------------------------+ |
// Recherche des informations pour la complétion de l'entête du squelette de la page demandée. |
|
// Construction du titre. |
if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre)) { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre); |
} else if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif)) { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif); |
} else { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_nom); |
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
// Construction du titre. |
if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre)) { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre); |
} else if (! empty($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif)) { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_titre_alternatif); |
} else { |
$GLOBALS['_PAPYRUS_']['page']['titre'] = htmlentities($GLOBALS['_GEN_commun']['info_menu']->gm_nom); |
} |
|
} |
else { |
$GLOBALS['_PAPYRUS_']['page']['titre']=''; |
} |
|
$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = $GLOBALS['_PAPYRUS_']['page']['titre']; |
|
// Construction des infos sur le site |
156,19 → 165,32 |
|
// Construction des Meta "name". |
$_GEN_commun['meta_name'] = array(); |
$GLOBALS['_PAPYRUS_']['page']['robot'] = htmlentities($_GEN_commun['info_menu']->gm_robot); |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur); |
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
$GLOBALS['_PAPYRUS_']['page']['robot'] = htmlentities($_GEN_commun['info_menu']->gm_robot); |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur); |
} |
else { |
$GLOBALS['_PAPYRUS_']['page']['robot'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = ''; |
} |
|
if (empty($GLOBALS['_PAPYRUS_']['page']['auteur'])) { |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_site']->gs_auteur); |
} |
$GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($_GEN_commun['info_menu']->gm_mots_cles); |
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
$GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($_GEN_commun['info_menu']->gm_mots_cles); |
} |
if (empty($GLOBALS['_PAPYRUS_']['page']['mots_cles'])) { |
$GLOBALS['_PAPYRUS_']['page']['mots_cles'] = htmlentities($_GEN_commun['info_site']->gs_mots_cles); |
} |
$GLOBALS['_PAPYRUS_']['page']['description_libre'] = htmlentities($_GEN_commun['info_menu']->gm_description_libre); |
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
$GLOBALS['_PAPYRUS_']['page']['description_libre'] = htmlentities($_GEN_commun['info_menu']->gm_description_libre); |
} |
if (empty($GLOBALS['_PAPYRUS_']['page']['description_libre'])) { |
$GLOBALS['_PAPYRUS_']['page']['description_libre'] = htmlentities($_GEN_commun['info_site']->gs_description); |
} |
|
|
GEN_stockerMetaName('revisit-after', '15 days'); |
GEN_stockerMetaName('robots', $GLOBALS['_PAPYRUS_']['page']['robot']); |
GEN_stockerMetaName('author', $GLOBALS['_PAPYRUS_']['page']['auteur']); |
176,31 → 198,61 |
GEN_stockerMetaName('description', $GLOBALS['_PAPYRUS_']['page']['description_libre']); |
|
// Construction des Meta Meta "name" du Dublin Core. |
$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = htmlentities($_GEN_commun['info_menu']->gm_titre_alternatif); |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur); |
$GLOBALS['_PAPYRUS_']['page']['description_resume'] = htmlentities($_GEN_commun['info_menu']->gm_description_resume); |
$GLOBALS['_PAPYRUS_']['page']['description_table_matieres'] = htmlentities($_GEN_commun['info_menu']->gm_description_table_matieres); |
$GLOBALS['_PAPYRUS_']['page']['publieur'] = htmlentities($_GEN_commun['info_menu']->gm_editeur); |
$GLOBALS['_PAPYRUS_']['page']['contributeur'] = htmlentities($_GEN_commun['info_menu']->gm_contributeur); |
$GLOBALS['_PAPYRUS_']['page']['date_creation'] = htmlentities($_GEN_commun['info_menu']->gm_date_creation); |
$GLOBALS['_PAPYRUS_']['page']['date_soumission'] = htmlentities($_GEN_commun['info_menu']->gm_date_soumission); |
$GLOBALS['_PAPYRUS_']['page']['date_acceptation'] = htmlentities($_GEN_commun['info_menu']->gm_date_acceptation); |
$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = htmlentities($_GEN_commun['info_menu']->gm_date_debut_validite); |
$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = htmlentities($_GEN_commun['info_menu']->gm_date_copyright); |
$GLOBALS['_PAPYRUS_']['page']['source'] = htmlentities($_GEN_commun['info_menu']->gm_source); |
|
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = htmlentities($_GEN_commun['info_menu']->gm_titre_alternatif); |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = htmlentities($_GEN_commun['info_menu']->gm_auteur); |
$GLOBALS['_PAPYRUS_']['page']['description_resume'] = htmlentities($_GEN_commun['info_menu']->gm_description_resume); |
$GLOBALS['_PAPYRUS_']['page']['description_table_matieres'] = htmlentities($_GEN_commun['info_menu']->gm_description_table_matieres); |
$GLOBALS['_PAPYRUS_']['page']['publieur'] = htmlentities($_GEN_commun['info_menu']->gm_editeur); |
$GLOBALS['_PAPYRUS_']['page']['contributeur'] = htmlentities($_GEN_commun['info_menu']->gm_contributeur); |
$GLOBALS['_PAPYRUS_']['page']['date_creation'] = htmlentities($_GEN_commun['info_menu']->gm_date_creation); |
$GLOBALS['_PAPYRUS_']['page']['date_soumission'] = htmlentities($_GEN_commun['info_menu']->gm_date_soumission); |
$GLOBALS['_PAPYRUS_']['page']['date_acceptation'] = htmlentities($_GEN_commun['info_menu']->gm_date_acceptation); |
$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = htmlentities($_GEN_commun['info_menu']->gm_date_debut_validite); |
$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = htmlentities($_GEN_commun['info_menu']->gm_date_copyright); |
$GLOBALS['_PAPYRUS_']['page']['source'] = htmlentities($_GEN_commun['info_menu']->gm_source); |
} |
else { |
$GLOBALS['_PAPYRUS_']['page']['titre_alternatif'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['auteur'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['description_resume'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['description_table_matieres'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['publieur'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['contributeur'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['date_creation'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['date_soumission'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['date_acceptation'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['periode_validite'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['date_copyright'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['source'] = ''; |
} |
|
if ($_GEN_commun['info_i18n_pays']->gip_id_pays != '') { |
$GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue'].'-'.htmlentities($_GEN_commun['info_i18n_pays']->gip_id_pays); |
} else { |
$GLOBALS['_PAPYRUS_']['page']['langue_rfc_3066'] = $GLOBALS['_PAPYRUS_']['page']['langue']; |
} |
$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_spatiale); |
$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_portee_spatiale); |
$GLOBALS['_PAPYRUS_']['page']['type_portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_temporelle); |
$GLOBALS['_PAPYRUS_']['page']['portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_portee_temporelle); |
$GLOBALS['_PAPYRUS_']['page']['licence'] = htmlentities($_GEN_commun['info_menu']->gm_licence); |
$GLOBALS['_PAPYRUS_']['page']['public'] = htmlentities($_GEN_commun['info_menu']->gm_public); |
$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = htmlentities($_GEN_commun['info_menu']->gm_public_niveau); |
if (isset($GLOBALS['_GEN_commun']['info_menu'])) { |
$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_spatiale); |
$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = htmlentities($_GEN_commun['info_menu']->gm_portee_spatiale); |
$GLOBALS['_PAPYRUS_']['page']['type_portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_ce_type_portee_temporelle); |
$GLOBALS['_PAPYRUS_']['page']['portee_temporelle'] = htmlentities($_GEN_commun['info_menu']->gm_portee_temporelle); |
$GLOBALS['_PAPYRUS_']['page']['licence'] = htmlentities($_GEN_commun['info_menu']->gm_licence); |
$GLOBALS['_PAPYRUS_']['page']['public'] = htmlentities($_GEN_commun['info_menu']->gm_public); |
$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = htmlentities($_GEN_commun['info_menu']->gm_public_niveau); |
} |
else { |
$GLOBALS['_PAPYRUS_']['page']['type_portee_spatiale'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['portee_spatiale'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['type_portee_temporelle'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['portee_temporelle'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['licence'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['public'] = ''; |
$GLOBALS['_PAPYRUS_']['page']['public_niveau'] = ''; |
|
} |
|
GEN_stockerMetaNameDC('DC.Title', $GLOBALS['_PAPYRUS_']['page']['titre'], $GLOBALS['_PAPYRUS_']['page']['langue']); |
GEN_stockerMetaNameDC('DC.Title.alternative', $GLOBALS['_PAPYRUS_']['page']['titre_alternatif'], $GLOBALS['_PAPYRUS_']['page']['langue']); |
GEN_stockerMetaNameDC('DC.Creator', $GLOBALS['_PAPYRUS_']['page']['auteur']); |
405,6 → 457,9 |
/* +--Fin du code ---------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.17 2005/09/20 17:01:22 ddelon |
* php5 et bugs divers |
* |
* Revision 1.16 2005/07/12 09:13:15 alexandre_tb |
* déplacement de l'appel de la fonction afficherContenuMenu APRES l'appel de afficherContenuCorps. |
* Le menu d'une application étant calculé après les opérations de l'application. |