Last change
on this file since 113294 was
113294,
checked in by spip.franck@…, 2 years ago
|
Il parait que le futur c'est maintenant :-D
|
File size:
1.3 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /***************************************************************************\ |
---|
4 | * SPIP, Systeme de publication pour l'internet * |
---|
5 | * * |
---|
6 | * Copyright (c) 2001-2019 * |
---|
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")) { |
---|
14 | return; |
---|
15 | } |
---|
16 | |
---|
17 | // https://code.spip.net/@action_instituer_syndic_article_dist |
---|
18 | function action_instituer_syndic_article_dist() { |
---|
19 | |
---|
20 | $securiser_action = charger_fonction('securiser_action', 'inc'); |
---|
21 | $arg = $securiser_action(); |
---|
22 | |
---|
23 | list($id_syndic_article, $statut) = preg_split('/\W/', $arg); |
---|
24 | |
---|
25 | if ($id_syndic_article = intval($id_syndic_article) |
---|
26 | and $id_syndic = sql_getfetsel('id_syndic', 'spip_syndic_articles', |
---|
27 | "id_syndic_article=" . intval($id_syndic_article)) |
---|
28 | and autoriser('moderer', 'site', $id_syndic) |
---|
29 | ) { |
---|
30 | sql_updateq("spip_syndic_articles", array("statut" => $statut), "id_syndic_article=" . intval($id_syndic_article)); |
---|
31 | } |
---|
32 | |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.