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_meme_rubrique_dist
16 function exec_meme_rubrique_dist()
18 exec_meme_rubrique_args(intval(_request('id')), _request('type'), _request('order'));
21 // http://doc.spip.org/@exec_meme_rubrique_args
22 function exec_meme_rubrique_args($id, $type, $order)
24 if ((!autoriser('publierdans','rubrique',$id))
25 OR (!preg_match('/^[\w_-]*$/',$order))) {
26 include_spip('inc/minipres');
29 $meme_rubrique = charger_fonction('meme_rubrique', 'inc');
30 // on connait pas le vrai 2e arg mais c'est pas dramatique
31 $res = $meme_rubrique($id, 0, $type, $order, NULL, true);
32 include_spip('inc/actions');