[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / exec / regler_moderation.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
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 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) return;
14
15 // http://doc.spip.org/@exec_regler_moderation_dist
16 function exec_regler_moderation_dist()
17 {
18 $id_article = intval(_request('id_article'));
19 $script = _request('script');
20
21 if (!autoriser('modererforum','article',$id_article)) {
22 include_spip('inc/minipres');
23 echo minipres();
24 } else {
25 include_spip('inc/actions');
26 $regler_moderation = charger_fonction('regler_moderation', 'inc');
27 ajax_retour($regler_moderation($id_article, $script, "&id_article=$id_article", true));
28 }
29 }
30 ?>