Because LT want's to ruin my sales, I'll release it for free

[PHP] FileSonic Premium Downloader Script

Code: 
<?php
error_reporting(0);
/**
* Author: Vick@PHPCanyon.net
* Site  : www.PHPCanyon.net
* Date  : 7/12/2011
*/
// must have prem account.
// Enter your FS prem user/email/pass here.
$email = "emailhere";
$password = "passwordhere";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://api.filesonic.com/user?method=getInfo&u='.$email.'&p='.$password);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 0);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
$urls = array(
    // Enter your URL here.
    $_GET['link']
);
$regex = '|/file/(([a-z][0-9]+/)?[0-9]+)(/.*)?$|';
foreach($urls AS $url) {
    $matches = array();
    preg_match($regex, $url, $matches);
    if (!isset($matches[1])) continue;
    $link = 'http://api.filesonic.com/link?method=getDownloadLink&u='.$email.'&p='.$password.'&ids=' . str_replace('/', '-', $matches[1]) . "\n";
}
$cj = curl_init();
curl_setopt($cj, CURLOPT_URL, $link);
curl_setopt($cj, CURLOPT_RETURNTRANSFER, 1);
$downloadlink = curl_exec($cj);
curl_close($cj);
$getDLlink = '/url":"(.+?)"}/';
preg_match($getDLlink, $downloadlink, $match);
$link = $match[1];
$newLink = str_replace('\\', "", $link);
$maskedLink = file_get_contents("http://************/api-create.php?url=$newLink");
if($_GET['link']=="")
{
}
else{
echo '<a href="'.$maskedLink.'">Download</a>';
}
?>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>FileSonic Premium Downloader</title>
  <meta name="description" content="PHP FileSonic Premium Downloader Script">
  <meta name="author" content="Vick Kumar">
  <meta name="website" content="forum.phpcanyon.net">
  <!--[if lt IE 9]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
</head>
<body>
  <form action="fs_prem.php" method="get">
  Enter FileSonic Download Link : <input type="text" name="link" size="50" />
  <input type="submit" value="Download" />
  </form>
</body>
</html>
Original Post @ PHPCanyon
_Vick Reviewed by _Vick on . [PHP] FileSonic Premium Downloader Script Because LT want's to ruin my sales, I'll release it for free <3 FileSonic Premium Downloader Script <?php error_reporting(0); /** * Author: Vick@PHPCanyon.net * Site : www.PHPCanyon.net Rating: 5