[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / formidable_1_0 / action / exporter_formulaire.php
1 <?php
2
3 // Sécurité
4 if (!defined("_ECRIRE_INC_VERSION")) return;
5
6 function action_exporter_formulaire_dist(){
7 include_spip('inc/formidable');
8 if (is_null($arg)){
9 $securiser_action = charger_fonction('securiser_action', 'inc');
10 $arg = $securiser_action();
11 }
12
13 list($id_formulaire, $type_export) = preg_split('/[\W]/', $arg);
14
15 if ($id_formulaire > 0
16 and $type_export
17 and $types_echange = echanges_formulaire_lister_disponibles()
18 and $exporter = $types_echange['exporter'][$type_export]
19 ){
20 $exporter($id_formulaire);
21 }
22 }
23
24 ?>