92828d9f0979ba1a09f2a742fdb9b5a129685b70
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2016 *
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")) {
17 function formulaires_exporter_sites_charger_dist() {
19 if (!autoriser('exporter', '_sites')) {
25 'exporter_publie_seulement' => 0,
26 'exporter_avec_mots_cles' => 1,
30 function formulaires_exporter_sites_traiter_dist() {
31 $id_parent = intval(_request('id_parent'));
32 $exporter_publie_seulement = _request('exporter_publie_seulement') ?
1 : 0;
33 $exporter_avec_mots_cles = _request('exporter_avec_mots_cles') ?
1 : 0;
35 include_spip('inc/actions');
36 $redirect = generer_action_auteur('exporter_bookmarks',
37 "$id_parent-$exporter_publie_seulement-$exporter_avec_mots_cles");
39 return array('redirect' => $redirect);