I would like to ask for help from you to the following script:
<?php
# get infos
error_reporting(0);
$link = $_POST['link']; //link for generate
$mu_login = "LOGIN_MEGAUPLOAD";
$mu_pass = "PASSWORD_MEGAUPLOAD";
if($link == "") {
header("Location: index.php?generate=erro&msg=".urlencode('Enter the link you want to generate.'));
exit;
} else {
if(!(strpos($link,"megaupload.com")) OR strpos($link,"megaupload.com") !=strrpos($link,"megaupload.com")) {
header("Location: index.php?generate=erro&msg=".urlencode('The link is not inserted a link megaupload.com.'));
exit;
} else {
}
}
# premium link megaupload
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $link );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_USERAGENT, "Googlebot/2.1");
curl_setopt( $ch, CURLOPT_POSTFIELDS, "login=1&redir=1&username=$mu_login&password=$mu_pass");
$out = curl_exec($ch);
$dom = new DOMDocument;
@$dom->loadHTML( $out );
$xpath = new DOMXPath( $dom );
$echo_link = $xpath->query( "//div[@id='downloadlink']//a" )->item(0)->getAttribute( 'href' );
header("Location: index.php?generate=link&link=$echo_link");
exit;
}
}
?>
It generates links megaupload Premium, but he could not get through to generate megaupload links that have passwords. And also if the link is broken, even if completed in one page all white. Would like for an error message? Does anyone know how to do this? Can you help me?
Thanks guys!


Sign In
Create Account


Back to top









