XtGem Forum catalog
Share code get link max băng thông onbox | Tổng Hợp | Wapmaster - Diễn đàn forum
Home » Wapmaster » Tổng Hợp » Share code get link max băng thông onbox
Tìm kiếm | Ai đang ở đây (596)
Lên trên » Share code get link max băng thông onbox
AdminXSMB247.COM
Chức vụ: Member
Tôi yêu Việt Nam
2016-08-23 15:06
như trên code này giúp get link vip max băng thông từ onbox,
hdsd: tạo file vd onbox.php dán code dưới vào chạy http://doamin/onbox.php và tận hưởng smile
PHP code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>phimbw.xtgem.com xem phim max băng thông</title>
</head>
<body>
<?php
/* if(!isset($_POST['token']) && !isset($_SESSION['token'])){
$_SESSION['token'] = md5(uniqid(rand(), true));
}
*/
?>
<div class="container">
<form class="bs-example form-horizontal" method = "POST" style = "padding-top: 40px;">
<div class="form-group">
<label class="col-lg-2 control-label">link của Video</label>
<div class="col-lg-10">
<textarea type="text" class="form-control" name="video" placeholder="nhập link video vào đây"></textarea>
Chú ý nếu bạn Get nhiều video cùng một lúc thì hãy sắp xếp link đúng theo thứ tự. Và mỗi link cách nhau bới dấu ","
</div>
</div><br />
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button type="submit" class="btn btn-primary">Grab</button>
</div>
</div>
</form>
<div class="col-lg-10 col-lg-offset-2">
&lt;?php
function onbox($url)
{
$ch = @curlinit();
curlsetopt($ch, CURLOPTURL, $url);
$head[] = "Connection: keep-alive";
$head[] = "Keep-Alive: 300";
$head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$head[] = "Accept-Language: en-us,en;q=0.5";
curlsetopt($ch, CURLOPTUSERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36');
curlsetopt($ch, CURLOPTHTTPHEADER, $head);
curlsetopt($ch, CURLOPTRETURNTRANSFER, 1);
curlsetopt($ch, CURLOPTSSLVERIFYHOST, FALSE);
curlsetopt($ch, CURLOPTSSLVERIFYPEER, FALSE);
curlsetopt($ch, CURLOPTTIMEOUT, 60);
curlsetopt($ch, CURLOPTCONNECTTIMEOUT, 60);
curlsetopt($ch, CURLOPTFOLLOWLOCATION, TRUE);
curlsetopt($ch, CURLOPTHTTPHEADER, array(
'Expect:'
));
$page = curlexec($ch);
curlclose($ch);
return $page;
}
if(isset($POST)){
$urls = explode(",",$POST['video']);
$count = count($urls);
if($urls['0'] == NULL){$count = 0;}
if($count != 0 ){
foreach($urls as $url){
$string= onbox(trim($url));
pregmatch("#&lt;iframe.src='(.)'.>#imsU", $string, $onbox);
$string2 = onbox($onbox[1]);
preg_match("#file: '(.)'#imsU", $string2, $linkvideo);
$linkvideo = strreplace("8080", "8181", $linkvideo);
$linkvideo = strreplace("203.190.170.158", "203.190.170.44", $linkvideo);
$linkvideo = strreplace("203.190.170.159", "203.190.170.45", $linkvideo);
echo $link_video[1]."<br />";
}

<pre><code> }
</code></pre>

}
?>
</div></div></div>
</body>
</html>
Copy code
Lượt xem:0
Lên trên  Tổng số: 1
Hãy Đăng nhập Bình luận
Online: Guests: 1
Chúc bạn online vui vẻ
Liên Hệ | Giới Thiệu
wap hay DJ LucBiz
wap hay KhoTai321@gmail.Com
Tip Sử dụng trình duyệt Uc Browser để cải tiến vào mạng và tải nhanh gấp 9 lần Opera tiết kiệm 99% phí GPRS.
Trang Chủ
Author: Nguyễn Đức Lực