Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 2069 → Rev 2070

/trunk/papyrus/applettes/inclure/inclure.php
50,7 → 50,7
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherInclure';
$GLOBALS['_GEN_commun']['info_applette_balise'] = '\{\{[Ii]nclure(?:\s*(?:(page="[^"]+")|(interwiki="[^"]+")|))+\s*\}\}';
$GLOBALS['_GEN_commun']['info_applette_balise'] = '\{\{[Ii]nclure(?:\s*(?:(page="[^"]+")|(interwiki="[^"]+")|(identifie="1")|))+\s*\}\}';
 
// --------------------------------------------------------------------------------------------------------
//Utilisation de la bibliothèque Papyrus pap_meta.fonct.php inclue par Papyrus
113,7 → 113,16
$ok = false;
}
$identifie = false;
if (isset($options['identifie']) && $options['identifie'] == 1) {
$identifie = true;
}
// si l'applette appelle une page réservée au membres identifié et que celui ne l'est pas, on n'affiche rien
if ($identifie && $GLOBALS['_GEN_commun']['info_auth']->gsa_ce_type_auth == 1 && !$GLOBALS['_GEN_commun']['pear_auth']->getUserName()) {
return '';
}
//+----------------------------------------------------------------------------------------------------------------+
// Récupération des données
$GLOBALS['_INCLURE_']['sortie'] = '';
140,7 → 149,7
$GLOBALS['_INCLURE_']['informations'][] = sprintf(CATEG_LG_ERREUR_INCLUSION, $href);
}
}
//+----------------------------------------------------------------------------------------------------------------+
// Extrait les variables et les ajoutes à l'espace de noms local
// Gestion des squelettes