3 * Plugin Acces Restreint 3.0 pour Spip 2.0
4 * Licence GPL (c) 2006-2008 Cedric Morin
7 if (!defined("_ECRIRE_INC_VERSION")) return;
9 function action_retirer_zone_dist(){
10 $securiser_action = charger_fonction('securiser_action','inc');
11 $arg = $securiser_action();
13 if (preg_match(',^([0-9]+|-1)-([a-z]+)-([0-9]+|-1)$,',$arg,$regs)){
14 $id_zone = intval($regs[1]);
16 $id_objet = intval($regs[3]);
17 include_spip('action/editer_zone');
19 zone_lier($id_zone,$type,array(),'set');
21 zone_lier($id_zone,$type,$id_objet,'del');