source: spip-zone/_plugins_/diogene/diogene/trunk/action/supprimer_diogene.php @ 97999

Last change on this file since 97999 was 97999, checked in by kent1@…, 3 years ago

Nettoyage

File size: 518 bytes
Line 
1<?php
2/**
3 * Plugin Diogene
4 *
5 * Auteurs :
6 * b_b
7 * kent1 (http://www.kent1.info - kent1@arscenic.info)
8 *
9 * Distribue sous licence GNU/GPL
10 *
11 * Action de suppression d'un Diogène
12 *
13 **/
14
15if (!defined('_ECRIRE_INC_VERSION')) {
16        return;
17}
18
19function action_supprimer_diogene_dist() {
20
21        $securiser_action = charger_fonction('securiser_action', 'inc');
22        $arg = $securiser_action();
23        $id_diogene = intval($arg);
24
25        if ($id_diogene > 0) {
26                include_spip('action/editer_diogene');
27                diogene_supprimer($id_diogene);
28        }
29}
Note: See TracBrowser for help on using the repository browser.