Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> cURL logowanie rapidshare
masterek2009
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 5.02.2009

Ostrzeżenie: (0%)
-----


Witam mam problem po ostatniej modyfikacji rapidshare nie da się zalogować a także wyciągnąć dane trafficleft itp. 

Cytat
$curl = curl_init();

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);

curl_setopt($curl, CURLOPT_HEADER, 1);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

curl_setopt($curl, CURLOPT_COOKIE, "user=$cook");

curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");

curl_setopt($curl, CURLOPT_FOLLOWLOCATION, false);

curl_setopt($curl, CURLOPT_URL, "https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi");
//

curl_setopt($curl, CURLOPT_POST, 1);

//
$xxx = curl_exec($curl);



preg_match('#The Account has been found, but the password is incorrect#', $xxx, $l1);
if ($l1[0] == "The Account has been found, but the password is incorrect") {
return "incorrect";
}

preg_match('#This Account has been locked by our Abuse-Team#', $xxx, $l2);
if ($l2[0] == "This Account has been locked by our Abuse-Team") {
return "fraud";
}

preg_match('#Expiration date:</td><td style="padding-right:20px;"><b>[a-zA-Z0-9,. ]{1,}#', $xxx, $l3);
echo "<br>Wygasa: ".substr($l3[0], 56);
$validuntil = substr($l3[0], 56);

preg_match('#RapidPoints:</td><td align=right style="padding-right:20px;"><b>[0-9]{1,}#', $xxx, $l4);
echo "<br>RapidPoints: ".substr($l4[0], 61);
$points = substr($l4[0], 61);

preg_match('#Math.ceil\([0-9- ]{1,}#', $xxx, $l5);
echo "<br>Transfer: ".round(substr($l5[0], 10)/1000);
$tbw = round(substr($l5[0], 10)/1000);
echo "<br><hr><br>";
}
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.09.2025 - 20:57