Вход Регистрация
»

Название : Функция антирекламы


» Описание: Функция антирекламы
» Добавил: * RUSIKAN
» Время добавления: 28 Апр 2014 в 18:41
» Посмотров: 639
» textarea
» Рейтинг: [+1 | -1]
Комментарии [2]
  1. function antirekl($text){
  2. $text=preg_replace('/(ru)/i',"***",$text);
  3. $text=preg_replace('/(su)/i',"***",$text);
  4. $text=preg_replace('/(us)/i',"***",$text);
  5. $text=preg_replace('/(net)/i',"***",$text);
  6. $text=preg_replace('/(org)/i',"***",$text);
  7. $text=preg_replace('/(mobi)/i',"***",$text);
  8. $text=preg_replace('/(cn)/i',"***",$text);
  9. $text=preg_replace('/(in)/i',"***",$text);
  10. $text=preg_replace('/(kz)/i',"***",$text);
  11. $text=preg_replace('/(wen)/i',"***",$text);
  12. $text=preg_replace('/(wml)/i',"***",$text);
  13. $text=preg_replace('/(kmx)/i',"***",$text);
  14. $text=preg_replace('/(h2m)/i',"***",$text);
  15. $text=preg_replace('/(http)/i',"***",$text);
  16. $text=preg_replace('/(wab)/i',"***",$text);
  17. $text=preg_replace('/(cc)/i',"***",$text);
  18. $text=preg_replace('/(wap)/i',"***",$text);
  19. $text=preg_replace('/(mn)/i',"***",$text);
  20. $text=preg_replace('/(com)/i',"***",$text);
  21.  
  22.  
  23. return $text;}
  24. $text=antirekl($text);
Онлайн: 5
Реклама