Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/dieuenfant/plugins-dist/sites/balise/ |
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * \***************************************************************************/ if (!defined('_ECRIRE_INC_VERSION')) { return; } #securite // Le contexte indique dans quelle rubrique le visiteur peut proposer le site function balise_FORMULAIRE_SITE($p) { return calculer_balise_dynamique($p, 'FORMULAIRE_SITE', ['id_rubrique']); } function balise_FORMULAIRE_SITE_stat($args, $context_compil) { // Pas d'id_rubrique ? Erreur de contexte if (!$args[0]) { $msg = [ 'zbug_champ_hors_motif', [ 'champ' => 'FORMULAIRE_SITE', 'motif' => 'RUBRIQUES' ] ]; erreur_squelette($msg, $context_compil); return ''; } // Verifier que les visisteurs sont autorises a proposer un site return (($GLOBALS['meta']['proposer_sites'] != 2) ? '' : $args); }