", $mes); } $mes = mb_ereg_replace('\n', ' ', $mes); $mes = preg_replace('#https?://(www\.)?(?!'.$_SERVER['HTTP_HOST'].')[^ ]++#iU', ' Ссылки запрещены', $mes); return $mes; } $coment = $_GET['coment']; $text1 = smile($coment); echo $text1;