PHP
<?php
if (!access('read')) return;
LabCMS::i()->setModuleTemplate('test.tpl');
Factory::set('test', 'test', dirname(__FILE__).'/simple_html_dom.php');
Hook::call('test');
$html = file_get_html('*');
$test=getCurrences($html);
Tpl::i()->assign('test', $test);
foreach($html->find('*"') as $e)
{
$e2= str_replace('<a href="', '<a target="_blank" href="*', $e);
echo $e2;
}
$html->clear();
unset($html);
Что не так?