3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2007 *
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 include_spip('inc/presentation');
17 // http://doc.spip.org/@exec_meme_rubrique_dist
18 function exec_meme_rubrique_dist()
20 $id = intval(_request('id'));
21 $type = _request('type');
22 $order = _request('order');
24 if (($GLOBALS['auteur_session']['statut'] != '0minirezo')
25 OR (!autoriser('publierdans','rubrique',$id))
26 OR (!preg_match('/^[\w_-]+$/',$order))
27 OR (!preg_match('/^[\w_-]+$/',$type))) {
28 include_spip('inc/minipres');
33 // on connait pas le vrai 2e arg mais c'est pas dramatique
34 $res = meme_rubrique($id, 0, $type, $order, NULL
, true
);