Advertisement
ipsBruno

(PHP) FORUMEIROS_ExistUser

Aug 24th, 2012
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1.  /*
  2.  *  Copyright (c) 2012 [iPs]TeaM
  3.  *  Bruno da Silva (email@dbrunodasilva.com)
  4.  *  Checar se um usuário está cadastro no fórum forumeiros
  5.  *
  6.  * www.brunodasilva.com
  7.  * www.ips-team.forumeiros.com
  8.  * Exemplo:
  9.   - - echo existUser("http://www.ips-team.forumeiros.com", "[iPs]BrunoSilva");
  10. */
  11.  
  12.  
  13. function FORUMEIROS_ExistUser($forum, $usuario) {
  14.  
  15.     $primeiroCodigo =  file_get_contents($forum . "/memberlist?mode=username&order&submit=Ok&username="  . $usuario);
  16.  
  17.     return !! strpos($primeiroCodigo, ">".$usuario."<") ;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement