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>";
}
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>";
}