<?php function antispam_help($text) { if(preg_match('#^(https?|ftp)://('.implode('|',$dom).')?'.str_replace('.', '\.', $_SERVER['SERVER_NAME']).'#', $text[0])) return '<a href="'.$text[0].'">'.$text[0].'</a>'; else return '[реклама]'; } function antispam($text) { } ?>