[SPIP] ~2.1.12 -->2.1.25
[velocampus/web/www.git] / www / ecrire / exec / plonger.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2014 *
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 # afficher les sous-rubriques d'une rubrique (composant du mini-navigateur)
16
17 // http://doc.spip.org/@exec_plonger_dist
18 function exec_plonger_dist()
19 {
20 include_spip('inc/actions');
21
22 $rac = _request('rac');
23 $id = intval(_request('id'));
24 $exclus = intval(_request('exclus'));
25 $col = intval(_request('col'));
26 $do = _request('do');
27 if (preg_match('/^\w*$/', $do)) {
28 if (!$do) $do = 'aff';
29
30 $plonger = charger_fonction('plonger', 'inc');
31 $r = $plonger($id, htmlentities($rac), array(), $col, $exclus, $do);
32 } else $r = '';
33
34 ajax_retour($r);
35 }
36 ?>