Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2. $site = 'codigo fonte de um protetor de links noob aqui';
  3.  
  4. // o POG nº1 que eu fiz foi:
  5.  
  6. function filtro($site) {
  7. $filtro[] = '/http:\/\/(www\.)?megaupload\.com\/\?[fd]=.*?(\w)*/'; //megaupload
  8. $filtro[] = '/http:\/\/(www\.)?rapidshare\.com\/(\w)*/'; //rapidshare
  9. $filtro[] = '/http:\/\/(www\.)?easy-share\.com/(\w)*'; //easyshare
  10. for ($i=0;$i<count($filtro);$i++) {
  11. preg_match_all($site,$filtro[$i],$casamentos)
  12. if ($casamentos) {
  13. $i = count($filtro);
  14. return $casamentos[0][1];
  15. }}
  16. }
  17.  
  18. filtro($site);
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement