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( $ch, CURLOPT_URL, "http://hi5.com/friend/login.do" ) ;
curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayHomePage.do" ) ;
curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ;
//curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; //optional
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ;
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ) ;
curl_setopt( $ch, CURLOPT_POST, 1 ) ;
curl_setopt( $ch, CURLOPT_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( $ch, CURLINFO_EFFECTIVE_URL ) ;
curl_close( $ch ) ;
$logged = preg_match( '/LoggedinHome/', $redirect ) ;
if ( ! $logged ) {
return false ;
}
$ch = curl_init() ;
curl_setopt( $ch, CURLOPT_URL, "http://hi5.com/friend/processBrowseSearch.do?searchText=" . $yid . "" ) ;
curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayMyProfile.do" ) ;
curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ;
//curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ;
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ;
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 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);
}
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