cristian.pana Posted April 3, 2012 Report Posted April 3, 2012 Din pacate numai am vps asa ca acest cod nu-mi mai este util:$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 . "\">Vezi Fotografii</a>][<a href=\"http://hi5.com/friend/mobile/friends/displayAddFriend.do?userid=" . $id . "\">Adauga Prieten</a>][<a href=\"http://hi5.com/friend/mobile/mail/displayNewMessage.do?toIds=" . $id . "\">Trimite Privat</a>]</td></tr></table>" ; } else { return null ; } }echo detecthi5("email@email.com"); // sau orice alt email Quote
Jester Posted April 3, 2012 Report Posted April 3, 2012 Si daca tie nu iti este util il impartasesti celorlalti? Cine mai foloseste hi5? Quote
secure Posted April 3, 2012 Report Posted April 3, 2012 Nu mai exista hi5. Acum e mutat hi5.com pe platforma tagged.com. Scriptul e inutil. De fapt de ce ar fi folosit cineva un script in loc sa caute adresa de mail direct pe hi5? Quote
Vlachs Posted April 4, 2012 Report Posted April 4, 2012 Nu mai exista hi5. Acum e mutat hi5.com pe platforma tagged.com. Scriptul e inutil. De fapt de ce ar fi folosit cineva un script in loc sa caute adresa de mail direct pe hi5?De fapt a reaparut si sa transformat in altceva Quote