Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagephp
$tr = new WikiTransformation();
$content = $tr->processSource($source);

Outdater.php:

Code Block
languagephp
$wt = new WikiTransformation();
$wt->setPage($page);
$result = $wt->processSource($source);

ListPagesModule.php:

Code Block
languagephp
if ($separation) {
    $wt = new WikiTransformation();
    $wt->setMode("list");
    $wt->setPage($page);
    $b = $wt->processSource($b);
    $b = "<div class=\"list-pages-item\">\n" . $b . "</div>";
    //$b = "[[div class=\"list-pages-item\"]]\n".$b."\n[[/div]]";
}

...

Code Block
languagephp
// purify???
$wt = new WikiTransformation();
$out = $wt->purifyHtml($out);
return $out;

PagesFeed.php:

Code Block
languagephp
$wt = new WikiTransformation();
$wt->setMode("list");
$wt->setPage($page);
$content = $wt->processSource($b);
$d = utf8_encode("\xFE");
$content = preg_replace("/" . $d . "module \"([a-zA-Z0-9\/_]+?)\"(.+?)?" . $d . "/", '', $content);
$content = preg_replace(';(<.*?)(src|href)="/([^"]+)"([^>]*>);si', '\\1\\2="'.GlobalProperties::$HTTP_SCHEMA . "://" . $site->getDomain().'/\\3"\\4', $content);
$content = preg_replace(';<script\s+[^>]+>.*?</script>;is', '', $content);
$content = preg_replace(';(<[^>]*\s+)on[a-z]+="[^"]+"([^>]*>);si', '\\1 \\2', $content);

WDEditUtils.php:

Code Block
languagephp
$wt = new WikiTransformation();

// strip the Wiki processing
$wt->wiki->rules =  array(
    'Include',
'Prefilter',
'Delimiter',
// 'Moduledelimiter',
'Code',
'Raw',
'Modulepre',
'Module',
'Module654',

'Comment',

'Math',
//  'Freelink',
//    'Equationreference',
//'Footnote',
//'Footnoteitem',
//'Footnoteblock',
//'Bibitem',
//'Bibliography',
//'Bibcite',

//'Divprefilter',

//'Anchor',
//'User',
'Heading');

$compiled = $wt->processSource($source);