Here is a fixation to make the script work again 😀
Just open func.inc.php & update the following functions, & done!
function get_file_name($file)
{
$pattern = '|<span id="fileNameTextSpan">(.*?)</span>|is';
$match = preg_match($pattern, $file, $matches);
if($match)
{
return $matches[1];
}
else
{
return "unknown";
}
}
function get_file_size($file)
{
$pattern = '|<span title="Size: (.*?)"><b>|is';
$match = preg_match($pattern, $file, $matches);
if($match)
{
return $matches[1];
}
else
{
return "unknown";
}
}
function fetch_url($url)
{
$ua = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.152 Safari/535.19";
$curl_handle = curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$url);
//curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,5);
curl_setopt($curl_handle,CURLOPT_USERAGENT, $ua);
//curl_setopt($curl_handle,CURLOPT_FRESH_CONNECT, TRUE);
curl_setopt($curl_handle,CURLOPT_REFERER, "http://www.google.com");
curl_setopt($curl_handle,CURLOPT_HEADER, FALSE);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, TRUE);
$fetch = curl_exec($curl_handle);
curl_close($curl_handle);
return $fetch;
}
function get_download_url($file)
{
$match = preg_match('|count="false"(.*?)href="(.*?)"></g:plusone>|is', $file, $matches);
if($match)
{
return $matches[2];
}
else
{
return FALSE;
}
}
& make a new file download.php, put the below code
<?php
if(isset($_GET['loc']))
{
sleep(5);
$boom = base64_decode($_GET['loc']);
echo "<a href='$boom'>Click here to download this file</a>";
}
?>
& in initiate.php, link w/ the file just like ds
echo "<div class='header'><a href='/download.php?loc=".base64_encode($download_url)."' class='navbutton' style='padding:5px;display: block;width: 129px;height: 15px;font-size: 12px;' title='Click to download this file'>Download this file</a></div>";
Hope dat helps...