В core/cms.php присутствует:
$text = ereg_replace("/(http:\\/\\/)(\\S+)/si",'<a href="/redirect?url=http://\\2" target=_blank>http://\\2</a>',$text);
проблема
$text = ereg_replace("/(http:\\/\\/)(\\S+)/si",'<a href="/redirect?url=http://\\2" target=_blank>http://\\2</a>',$text);
function OutLink($string) { $host = "ТУТ_ВАШ_ДОМЕН.ЗОНА"; $string = preg_replace('/href="?(http:\/\/(?!(www\.|)'.$host.')([^">\s]*))/ie', "'href=\"/redirect?url=$1\"'", $string); return $string; }
$article_content = OutLink($article_content);