All pastes #756058 Raw Edit

Miscellany

public text v1 · immutable
#756058 ·published 2007-10-31 03:08 UTC
rendered paste body
<?php
/**
*
* @package phpBB3
* @version $Id: index.php,v 1.176 2007/10/05 14:30:06 acydburn Exp $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

$bbcode_bitfield = '';
$bbcode_uid = '1rmth3i5';
$message = '[b:1rmth3i5]asdasdasdasd[/b:1rmth3i5]';


$bbcode = new bbcode($bbcode_bitfield);

$test = $bbcode->bbcode_second_pass($message, $bbcode_uid, $bbcode_bitfield);
var_dump($message);

?>