forked from spip/sites
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
<?php |
|
|
|
/***************************************************************************\ |
|
* SPIP, Systeme de publication pour l'internet * |
|
* * |
|
* Copyright (c) 2001-2020 * |
|
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * |
|
* * |
|
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. * |
|
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * |
|
\***************************************************************************/ |
|
|
|
if (!defined("_ECRIRE_INC_VERSION")) { |
|
return; |
|
} |
|
|
|
function formulaires_exporter_sites_charger_dist() { |
|
|
|
if (!autoriser('exporter', '_sites')) { |
|
return false; |
|
} |
|
|
|
return array( |
|
'id_parent' => 0, |
|
'exporter_publie_seulement' => 0, |
|
'exporter_avec_mots_cles' => 1, |
|
); |
|
} |
|
|
|
function formulaires_exporter_sites_traiter_dist() { |
|
$id_parent = intval(_request('id_parent')); |
|
$exporter_publie_seulement = _request('exporter_publie_seulement') ? 1 : 0; |
|
$exporter_avec_mots_cles = _request('exporter_avec_mots_cles') ? 1 : 0; |
|
|
|
include_spip('inc/actions'); |
|
$redirect = generer_action_auteur('exporter_bookmarks', |
|
"$id_parent-$exporter_publie_seulement-$exporter_avec_mots_cles"); |
|
|
|
return array('redirect' => $redirect); |
|
}
|
|
|