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/petits/plugins-dist/plan/action/ |
<?php /** * Action retournant un morceau du plan du site (en ajax) * * @plugin Plan du site dans l’espace privé * @copyright 2015 * @author Matthieu Marcillaud * @licence GNU/GPL * @package SPIP\Plan\Action */ if (!defined('_ECRIRE_INC_VERSION')) { return; } function action_plan_dist() { include_spip('inc/autoriser'); if (!autoriser('ecrire')) { return false; } include_spip('base/objets'); include_spip('inc/utils'); $objet = table_objet(_request('objet')); $env = [ 'id_rubrique' => intval(_request('id_rubrique')), // pour le dépliement d'une rubrique, ne pas lister le contenu récursivement 'lister' => ($objet == 'rubriques') ? 'rubrique' : 'tout', 'conteneur' => 'non' ]; if ($filtre_objet_enfant = _request('filtre_objet_enfant')) { $env['filtre_objet_enfant'] = $filtre_objet_enfant; } if ($statut = _request('statut')) { $env['statut'] = $statut; } $fond = "prive/squelettes/inclure/plan-$objet"; header('Content-Type: text/html; charset=' . $GLOBALS['meta']['charset']); if (trouver_fond($fond)) { echo recuperer_fond($fond, $env); } else { echo ''; } }