source:
spip-zone/_plugins_/gis/trunk/action/supprimer_gis.php
@
60882
Last change on this file since 60882 was 60882, checked in by , 9 years ago | |
---|---|
File size: 404 bytes |
Line | |
---|---|
1 | <?php |
2 | |
3 | if (!defined("_ECRIRE_INC_VERSION")) return; |
4 | |
5 | |
6 | function 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)){ |
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.