mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
35 lines
No EOL
1.4 KiB
PHP
35 lines
No EOL
1.4 KiB
PHP
<?php
|
|
|
|
/***************************************************************************\
|
|
* SPIP, Systeme de publication pour l'internet *
|
|
* *
|
|
* Copyright (c) 2001-2014 *
|
|
* 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);
|
|
} |