source: spip-zone/_plugins_/legendes/trunk/action/supprimer_legende.php @ 114710

Last change on this file since 114710 was 114710, checked in by bruno@…, 5 months ago

pas de fermeture php + simple quotes sur le test _ECRIRE_INC_VERSION

File size: 458 bytes
Line 
1<?php
2
3if (!defined('_ECRIRE_INC_VERSION')) return;
4
5
6function action_supprimer_legende_dist(){
7       
8        $securiser_action = charger_fonction('securiser_action', 'inc');
9        $arg = $securiser_action();
10       
11        list($id_legende) = preg_split(',[^0-9],',$arg);
12        include_spip('inc/autoriser');
13        if (intval($id_legende) AND autoriser('supprimer','legende',$id_legende,null,null)){
14                include_spip("action/editer_legende");
15                legendes_action_supprime_legende($id_legende);
16        }
17}
Note: See TracBrowser for help on using the repository browser.