Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) { |
---|
4 | return; |
---|
5 | } |
---|
6 | |
---|
7 | /** |
---|
8 | * Moderation des forums specifique a un article |
---|
9 | * |
---|
10 | * @param int $id_objet identifiant de l'article |
---|
11 | * @return string : "non", "pos"(teriori), "pri"(ori), "abo"(nnement) |
---|
12 | */ |
---|
13 | function inc_article_accepter_forums_publics_dist($id_objet) { |
---|
14 | $accepter_forum = $GLOBALS['meta']["forums_publics"]; |
---|
15 | $art_accepter_forum = sql_getfetsel('accepter_forum', 'spip_articles', array( |
---|
16 | "id_article = " . intval($id_objet) |
---|
17 | )); |
---|
18 | if ($art_accepter_forum) { |
---|
19 | $accepter_forum = $art_accepter_forum; |
---|
20 | } |
---|
21 | |
---|
22 | return substr($accepter_forum, 0, 3); |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.