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/jobs/ecrire/action/ |
<?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. * \***************************************************************************/ /** * Gestion de l'action debloquer_edition * * @package SPIP\Core\Edition */ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Lever les blocages d'édition pour l'utilisateur courant * * @uses debloquer_tous() * @uses debloquer_edition() * * @global array visiteur_session * @return void */ function action_debloquer_edition_dist() { $securiser_action = charger_fonction('securiser_action', 'inc'); $arg = $securiser_action(); if ($arg) { include_spip('inc/drapeau_edition'); if ($arg == 'tous') { debloquer_tous($GLOBALS['visiteur_session']['id_auteur']); } else { $arg = explode('-', $arg); [$objet, $id_objet] = $arg; debloquer_edition($GLOBALS['visiteur_session']['id_auteur'], $id_objet, $objet); } } }