Subscribe to Rss feed
Subscribe to Comment Rss feed
01:52
(0) Comments
<?php set_time_limit(0); $link=$_POST['link']; if(isset($link) && $link !== ""){ $data=curlget($link); if(preg_match("/FILES INDOWEBSTER NOT FOUND/",$data)){exit("$link <b>NOT FOUND, please re-check your link</b>");} $ukuran=antara($data,'<div id="size"><b>Size: </b> ','</div>'); $ori=antara($data,'<b>Original name: </b><!--INFOLINKS_ON--> ','<!--INFOLINKS_OFF-->'); $dl="http://www.indowebster.com/download=".antara($data,'<a href="download=','"'); $data2=curlget($dl); $dl=antara($data2,'<form action="download.php"','</form>'); preg_match_all("/input type=\"hidden\" value=\"(.*?)\"/", $dl, $match); $kuncis=$match[1][0]; $id=$match[1][1]; $name=$match[1][2]; $post="kuncis=$kuncis&id=$id&name=$name"; for($i=0;$i<5;$i++){ $data3=curlpost("http://www.indowebster.com/download.php",$post); $zzz=antara($data3,"refresh: 0; url=","\n"); if (preg_match('/location: files_not_found.htm/',$data3)){ //echo "$zzz<br>"; } else{ echo "<a href=\"$zzz\">$ori</a> <small><b>($ukuran)</b></small>"; break; } } } else { ?> <!DOCTYPE html> <html> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <body> <center> <!-- KALO MAU NAMBAH SESUATU.. DI BAGIAN INI YA --> <b>INDOWEBSTER DIRECT LINK GENERATOR</b><p> <textarea id="wedus" style="width:600px;height:100px;border:1px solid blue"></textarea><br> <button id="button" style="font-size:20pt;font-weight:bold">G E N E R A T E</button></p> <p><div id="crot"></div></p> <p><div id="hasil" style="text-align:left;width:600px;margin:0 auto">Maaf jika nanti hasil generate tidak berurutan :)<br> kami harap anda jeli memperhatikan original name-nya :D</div></p> <script> $("#button").click(function () { $("#hasil").html(""); var wedus = $("#wedus").val(); var belah = wedus.split("\n"); total=belah.length; //$("#wedus").val(""); for(i=0;i<total;i++){ var link = belah[i]; if(link != ""){ $.post("",{"link":link},function(data){ var buatdiv = document.createElement('div'); buatdiv.innerHTML = (data); document.getElementById('hasil').appendChild(buatdiv); } ); } } }); $('#crot').ajaxStart(function() { $(this).html('<img src=http://static.ak.fbcdn.net/rsrc.php/v1/y9/r/jKEcVPZFk-2.gif>.'); }); $('#crot').ajaxStop(function() { $(this).text(''); }); </script> </body> </html> <?php } function curlpost($url,$post){ $agent=$_SERVER['HTTP_USER_AGENT']; $curl=curl_init(); curl_setopt($curl, CURLOPT_URL,$url); curl_setopt($curl, CURLOPT_USERAGENT, $agent); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $post); curl_setopt($curl, CURLOPT_ENCODING, ""); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($curl, CURLOPT_RETURNTRANSFER ,1); $data = curl_exec($curl); curl_close ($curl); return $data; } function curlget($url){ $agent=$_SERVER['HTTP_USER_AGENT']; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_USERAGENT, $agent); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_ENCODING, ""); $data = curl_exec($curl); curl_close($curl); return $data; } function antara($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } ?>
agus
javascript, php, website
0 Responses to "[script] Indowebster direct multi link generator"
Post a Comment