for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @name OpenImporter
* @copyright OpenImporter contributors
* @license BSD https://opensource.org/licenses/BSD-3-Clause
*
* @version 1.0
*/
class PHPBoost3 extends Importers\AbstractSourceImporter
{
public function getName()
return 'PHPBoost3';
}
public function getVersion()
return 'ElkArte 1.0';
public function getPrefix()
global $boost_prefix;
return '`' . $this->getDbName() . '`.' . $boost_prefix;
public function getDbName()
global $boost_database;
return $boost_database;
public function getTableTest()
return 'member';
* Utility functions
function boost_replace_bbc($content)
$content = preg_replace(
array(
'~<strong>~is',
'~</strong>~is',
'~<em>~is',
'~</em>~is',
'~<strike>~is',
'~</strike>~is',
'~\<h3(.+?)\>~is',
'~</h3>~is',
'~\<span stype="text-decoration: underline;">(.+?)</span>~is',
'~\<div class="bb_block">(.+?)<\/div>~is',
'~\[style=(.+?)\](.+?)\[\/style\]~is',
),
'[b]',
'[/b]',
'[i]',
'[/i]',
'[s]',
'[/s]',
'',
'[u]%1[/u]',
'%1',
trim($content)
);
return $content;