Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Zippyshare Direct Download

Parašė avice· 2015 Kov. 27 09:03:54
#2

Tai ar sunku pataisyt pačiam.... Tiesiog pats zippyshare pakeite nuorodos sugeneravimo script'a...
Greit pagal nauja padariau:
http://receptai.comoj.com/zippy..../file.html

 
<?php
function puse($a,$b,$c){
	$ex = explode($a,$c);
	$ex = explode($b,$ex[1]);
	return $ex[0];
}
$url = $_GET['url'];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$output = curl_exec($ch);
$name = trim(puse('title" content="','"',$output)); // dainos pavadinimas
$a = puse('var a = ',';',$output);
$b = explode('.omg = "',$output);
$b = explode('"',$b[1]);
$d = explode('substr(',$b[1]);
$d = explode(',',$d[1]);
$dd = explode(')',$d[1]);
$dd = str_replace(' ','',$dd[0]);
$d = $d[0];
$b = $b[0];
$b = strlen(substr($b,$d,$dd));
$daug = puse('Math.pow(a, ',')',$output);
$c = pow($a, $daug)+$b;
$www = puse('www','.zippyshare.com',$url);
$file = puse('/v/','/file.html',$url);
$durl = 'http://www'.$www.'.zippyshare.com/d/'.$file.'/'.$c.'/file.mp3';
curl_setopt($ch, CURLOPT_URL, $durl);
$output = curl_exec($ch);
header ("Content-type: octet/stream");
header ("Content-disposition: attachment; filename=".$name.";");
header('Content-length: '.strlen($output));
echo $output;
curl_close($ch);
?>

Redagavo avice· 2015 Kov. 27 12:03:01