[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / exec / informer.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 include_spip('inc/actions');
16
17 # Les informations d'une rubrique selectionnee dans le mini navigateur
18
19 // http://doc.spip.org/@exec_informer_dist
20 function exec_informer_dist()
21 {
22 $id = intval(_request('id'));
23 $col = intval(_request('col'));
24 $exclus = intval(_request('exclus'));
25 $do = _request('do');
26
27 if (preg_match('/^\w*$/', $do)) {
28 if (!$do) $do = 'aff';
29
30 $informer = charger_fonction('informer', 'inc');
31 $res = $informer($id, $col, $exclus, _request('rac'), _request('type'), $do);
32 } else $res = '';
33 ajax_retour($res);
34 }
35 ?>