[PLUGINS] +acces restreint
[ptitvelo/web/www.git] / www / plugins / accesrestreint_3_5 / action / supprimer_zone.php
1 <?php
2 /**
3 * Plugin Acces Restreint 3.0 pour Spip 2.0
4 * Licence GPL (c) 2006-2008 Cedric Morin
5 *
6 */
7 if (!defined("_ECRIRE_INC_VERSION")) return;
8
9 function action_supprimer_zone_dist(){
10 $securiser_action = charger_fonction('securiser_action','inc');
11 $arg = $securiser_action();
12
13 if ($id_zone = intval($arg)
14 AND autoriser('supprimer','zone',$id_zone)) {
15 include_spip('action/editer_zone');
16 zone_supprimer($id_zone);
17 }
18 }
19
20 ?>