source: spip-zone/_plugins_/gis/trunk/action/supprimer_gis.php @ 48696

Last change on this file since 48696 was 48696, checked in by brunobergot@…, 10 years ago

et hop, voilà GIS 2 (qui comme l'indique son état est encore en dev)

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