What's my HI5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What's my HI5

    This code is created by me but it not necesary anymore, you must run it to a vps or dedicated:
    PHP Code:
    $username "" ;
     
    $password "" ;
     function 
    detecthi5$yid ) {
      global 
    $username$password ;
      
    $ch curl_init() ;
      
    curl_setopt$chCURLOPT_URL"http://hi5.com/friend/login.do" ) ;
      
    curl_setopt$chCURLOPT_REFERER"http://hi5.com/friend/displayHomePage.do" ) ;
      
    curl_setopt$chCURLOPT_USERAGENT$_SERVER['HTTP_USER_AGENT'] ) ;
      
    //curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; //optional
      
    curl_setopt$chCURLOPT_RETURNTRANSFER) ;
      
    curl_setopt$chCURLOPT_FOLLOWLOCATION) ;
      
    curl_setopt$chCURLOPT_POST) ;
      
    curl_setopt$chCURLOPT_POSTFIELDS"/friend/processBrowseSearch.do?searchText=" $yid "&email=" urlencode$username ) . "&password=" urlencode$password ) . "&remember=on&type=1" ) ;
      
    //curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ;
      //curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ;
      
    $result curl_exec$ch ) ;
      if ( 
    $result === false ) {
       return 
    false ;
       
    //echo curl_errno($ch).':'.curl_error($ch);
      
    }
      
    $redirect curl_getinfo$chCURLINFO_EFFECTIVE_URL ) ;
      
    curl_close$ch ) ;
      
    $logged preg_match'/LoggedinHome/'$redirect ) ;
      if ( ! 
    $logged ) {
       return 
    false ;
      }
      
    $ch curl_init() ;
      
    curl_setopt$chCURLOPT_URL"http://hi5.com/friend/processBrowseSearch.do?searchText=" $yid "" ) ;
      
    curl_setopt$chCURLOPT_REFERER"http://hi5.com/friend/displayMyProfile.do" ) ;
      
    curl_setopt$chCURLOPT_USERAGENT$_SERVER['HTTP_USER_AGENT'] ) ;
      
    //curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ;
      
    curl_setopt$chCURLOPT_RETURNTRANSFER) ;
      
    curl_setopt$chCURLOPT_FOLLOWLOCATION) ;
      
    //curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ;
      //curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ;
      
    $result curl_exec$ch ) ;
      if ( 
    $result === false ) {
       return 
    false ;
       
    //echo curl_errno($ch).':'.curl_error($ch);
      
    }
      
    curl_close$ch ) ;
      
    $id string $result'photo-link" href="/friend/p''--' ) ;
      
    $title string $result'/friend/p' $id '--''--html">' ) ;
      
    $avatar string $result'height="75" src="''"' ) ;
      if ( 
    $id ) {
       return 
    "<table align=\"center\">
    <tr>
    <td>
    <img src=\"" 
    $avatar "\" width=\"60\" height=\"60\" class=\"avatar\" alt=\"" $yid "\"/>
    </td>
    <td>
    str_replace"_"" "urldecode$title ) ) . "
    <br/>
    [<a href=\"http://hi5.com/friend/mobile/photos/displayAlbum.do?ownerId=" 
    $id "\">View Photos</a>]
    [<a href=\"http://hi5.com/friend/mobile/friends/displayAddFriend.do?userid=" 
    $id "\">Add Friend</a>]
    [<a href=\"http://hi5.com/friend/mobile/mail/displayNewMessage.do?toIds=" 
    $id "\">Send Private</a>]
    </td>
    </tr>
    </table>" 
    ;
      } else {
       return 
    null ;
      }
     }
    echo 
    detecthi5("email@email.com"); // replace with any other email 
    Last edited by metulj; 08.02.12, 13:01.
    www.inbuzunar.mobi - Your mobile portal pocket
Working...
X