Thứ Bảy, 12 tháng 11, 2016

Share GetLink Phim3s và PhimNhanh

Như Tiêu Đề Không Có Gì Để Nói Nữa Hết. :D 
Demo Đã Get:

< ?php
$url = Puaru_Vina4U($_GET['url']);
if (preg_match('|phim3s|',$_GET['url']))
{
if (preg_match("#videoUrl = '(.+?)';#is",$url, $_puaru))
{
echo $_puaru[1];
}
}
else
{
if (preg_match('#playlist: "(.+?)"#is',$url, $_puaru))
{
//echo $_puaru[1];
$hai = Puaru_Vina4U($_puaru[1]);
if(preg_match_all('#source file="(.+?)" label="(.+?)"#is',$hai, $_puaru))
{

for($i = 0; $i < count($_puaru); $i++)
{
$puaru[$_puaru[2][$i]] = $_puaru[1][$i];
}
echo json_encode($puaru);


}

}
}
function Puaru_Vina4U($site){
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Series 60; Opera Mini/6.5.27309/34.1445; U; en) Presto/2.8.119 Version/11.10');
curl_setopt($ch, CURLOPT_TIMEOUT, 40);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_URL, $site);
ob_start();
return curl_exec ($ch);
ob_end_clean();
curl_close ($ch);
}
? >



Hướng Dẫn Sử Dụng : 
  • Các Bạn Nên Host Tạo Mội File ( VD: Mình Sẽ Tạo Một File Tên VuTienAnh.php)
  • Sau Khi Tạo Xong File Như Bước 1, Các Bạn Coppy Code Phía Trên Dán Vào Và Lưu Lại.
  • Tiếp Theo Các Bạn Chạy Domain/VuTienAnh.php?url=Link_Phim. Để Get.

Trong Đó Link_Phim = Link Phim Tại Phim3s Và PhimNhanh 
VD :
Link Phimhttp://phimnhanh.com/xem-phim/kubo-va-su-menh-samurai-kubo-and-the-two-strings-2016#xem
Link Get : Domain/VuTienAnh.php?url=http://phimnhanh.com/xem-phim/kubo-va-su-menh-samurai-kubo-and-the-two-strings-2016#xem

Lời Kết : Mình Đã chia Sẻ cho bạn code và cách dùng nếu không hiểu bạn có thể comment xuống phía dưới để mình giải đáp :D cảm ơn!

Code By Puaru - V4Team

Không có nhận xét nào:

Đăng nhận xét