[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / exec / informer.php
diff --git a/www/ecrire/exec/informer.php b/www/ecrire/exec/informer.php
new file mode 100644 (file)
index 0000000..1c426f3
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2011                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+include_spip('inc/actions');
+
+# Les informations d'une rubrique selectionnee dans le mini navigateur
+
+// http://doc.spip.org/@exec_informer_dist
+function exec_informer_dist()
+{
+       $id = intval(_request('id'));
+       $col = intval(_request('col'));
+       $exclus = intval(_request('exclus'));
+       $do = _request('do');
+
+       if (preg_match('/^\w*$/', $do)) {
+               if (!$do) $do = 'aff';
+       
+               $informer = charger_fonction('informer', 'inc');
+               $res = $informer($id, $col, $exclus, _request('rac'), _request('type'), $do);
+       } else $res = '';
+       ajax_retour($res);
+}
+?>