File "comments_options.php"
Full path: /home/liensain/www_ael/plugins/auto/comments/v4.0.2/comments_options.php
File
size: 623 B (623 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
// pas la peine d'init les constantes dans un autre contexte qu'en post
// ca economise
if (
isset($_SERVER['REQUEST_METHOD'])
and $_SERVER['REQUEST_METHOD'] === 'POST'
) {
include_spip("inc/config");
// Limiter la longueur des messages
if (!defined('_FORUM_LONGUEUR_MAXI')) {
if ($max = lire_config("comments/forum_longueur_maxi")) {
define('_FORUM_LONGUEUR_MAXI', $max);
}
}
if (!defined('_FORUM_LONGUEUR_MINI')) {
if ($min = lire_config("comments/forum_longueur_mini")) {
define('_FORUM_LONGUEUR_MINI', $min);
}
}
}
// pour la version thread
define('_FORUM_AUTORISER_POST_ID_FORUM',true);