3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2014 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined("_ECRIRE_INC_VERSION")) return;
15 function formulaires_exporter_sites_charger_dist(){
17 if (!autoriser('exporter','_sites'))
22 'exporter_publie_seulement' => 0,
23 'exporter_avec_mots_cles' => 1,
27 function formulaires_exporter_sites_traiter_dist(){
28 $id_parent = intval(_request('id_parent'));
29 $exporter_publie_seulement = _request('exporter_publie_seulement')?
1:0;
30 $exporter_avec_mots_cles = _request('exporter_avec_mots_cles')?
1:0;
32 include_spip('inc/actions');
33 $redirect = generer_action_auteur('exporter_bookmarks',"$id_parent-$exporter_publie_seulement-$exporter_avec_mots_cles");
34 return array('redirect'=>$redirect);