Esempio n. 1
0
function PvXparser($input, $argv, $parser)
{
    global $wgServer;
    $doit = new ParseIt($parser);
    $input = $doit->parse($input);
    $art_title = $parser->mTitle->getText();
    $output = parse_gwbbcode($input, $art_title);
    # Hack to point the download button to a dedicated special page
    $output = str_replace('/template.php', Title::newFromText('DownloadTemplate', NS_SPECIAL)->getFullUrl(), $output);
    return $output;
}
Esempio n. 2
0
 *                               gwbbcode.php
 *                            -------------------
 *   begin                : Tuesday, Apr 21, 2005
 *   copyright            : (C) 2006-2007 Pierre 'pikiou' Scelles
 *   email                : liu.pi.vipi@gmail.com
 *
 ***************************************************************************/
/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   All images, skill names and descriptions are (C) ArenaNet.
 ***************************************************************************/
if (!defined('GWBBCODE_ROOT')) {
    define('GWBBCODE_ROOT', defined('NUKE_FILE') ? 'modules/Forums/gwbbcode' : './gwbbcode');
}
require_once GWBBCODE_ROOT . '/gwbbcode.inc.php';
//var_export(get_defined_vars());
if (!USE_GWBBCODE) {
    return;
}
if (defined('IN_PHPBB') || defined('PUN_ROOT') || defined('SMF')) {
    if (isset($message)) {
        $message = parse_gwbbcode($message);
    } else {
        $text = parse_gwbbcode($text);
    }
}