Esempio n. 1
0
function ignore_links($text)
{
    $text = preg_replace('/\\[FUNC:([^\\]]*?)\\]/', '\\1()', $text);
    $text = preg_replace('/\\[CFG:([^\\]]*?):([^\\]]*?)\\]/', '\\2', $text);
    $text = preg_replace('/\\[CFG:([^\\]]*?)\\]/', 'xdebug.\\1', $text);
    $text = preg_replace('/\\[CFGS:([^\\]]*?)\\]/', '\\1', $text);
    $text = preg_replace('/\\[FEAT:([^\\]]*?)\\]/e', "\$GLOBALS['features']['\\1'][0]", $text);
    $text = add_keywords($text);
    return $text;
}
Esempio n. 2
0
function ignore_links($text)
{
    $text = preg_replace('/\\[FUNC:([^\\]]*?)\\]/', '\\1()', $text);
    $text = preg_replace('/\\[CFG:([^\\]]*?):([^\\]]*?)\\]/', '\\2', $text);
    $text = preg_replace('/\\[CFG:([^\\]]*?)\\]/', 'xdebug.\\1', $text);
    $text = preg_replace('/\\[CFGS:([^\\]]*?)\\]/', '\\1', $text);
    $text = preg_replace_callback('/\\[FEAT:([^\\]]*?)\\]/', function ($matches) {
        return $GLOBALS['features'][$matches[1]][0];
    }, $text);
    $text = add_keywords($text);
    return $text;
}