<?PHP
function post($site, $data)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$site);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, $site);
curl_setopt($ch, CURLOPT_COOKIEFILE, "tmp2.txt");
curl_setopt($ch, CURLOPT_COOKIEJAR, "tmp2.txt");
$result = curl_exec ($ch);
return $result;
}
function Login_Paypal($user, $pass)
{
$input = post("https:
return $input;
}
$user = "RAIINLOVE";
$pass = "sa";
$content = Login_Paypal($user, $pass);
if( preg_match('%My Account Overview %', $content) ){
preg_match('% Welcome%', $content);
print("WE ARE ONLINE");
}
else{
print("Something went wrong");
}
?>