View difference between Paste ID: CP3BEif1 and zb2GZY70
SHOW: | | - or go back to the newest paste.
1-
if (substr_count($lines,"??")==0 && substr_count($lines,"�")==0)  //  проверка на всякий шлак в ключах
1+
if (substr_count($lines,"??")==0 && substr_count($lines,"�")==0)  { //  проверка на шлак в ключах
2-
{
2+
3
if (substr_count($lines,"??")<1 && substr_count($lines,"�")<1 && substr_count($lines,"http://")<1)  { //  проверка на шлак в ключах
4
5
preg_replace( '/[^\p{L}\p{Nd}\/0-9]+/u', '-', $string ) ; //http://habrahabr.ru/blogs/php/45910/