3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2011 *
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 // http://doc.spip.org/@exec_legender_dist
16 function exec_legender_dist()
18 exec_legender_args(intval(_request('id_document')),
20 intval(_request('id')),
25 // http://doc.spip.org/@exec_legender_args
26 function exec_legender_args($id_document, $type, $id, $ancre='', $script='')
28 if (!$id_document OR !autoriser('joindredocument',$type, $id)) {
29 include_spip('inc/minipres');
32 include_spip('inc/actions');
33 $legender = charger_fonction('legender', 'inc');
34 ajax_retour($legender($id_document, array(), $script, $type, $id, $ancre));