Ejemplo n.º 1
0
function initBBCodes($signature = FALSE)
{
    global $config, $my;
    $bbcode = new BBCode('standard', SP_NEW);
    if ($config['resizebigimg'] == 0) {
        $config['resizebigimgwidth'] = 0;
    }
    $bbcode->setMisc($config['dictstatus'], $config['censorstatus'], $config['resizebigimgwidth']);
    $bbcode->setWordwrap($config['wordwrap'], $config['maxwordlength'], $config['maxwordlengthchar'], $config['asia']);
    $bbcode->setDoc($config['reduce_endchars'], $config['reduce_nl'], $config['topicuppercase']);
    $bbcode->setURL($config['reduce_url'], $config['maxurllength'], $config['maxurltrenner']);
    $bbcode->setName($my->name);
    $bbcode->setSmileyDir($my->smileyfolder);
    if ($signature == TRUE) {
        initSignatureBBCodes($bbcode);
    }
    return $bbcode;
}