source: spip-zone/_core_/plugins/forum/inc/article_accepter_forums_publics.php @ 93612

Last change on this file since 93612 was 93612, checked in by cedric@…, 5 years ago

Indentation et regles de codage selon http://www.spip.net/fr_article3497.html#regles_codage

File size: 597 bytes
Line 
1<?php
2
3if (!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 */
13function 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.