Share code get link phim.clip.vn



các bạn tạo một file là clipvn.php nhé

sau đó dán cái code này vào. :3

viết sẵn cho nó tiện. :D

<?php
function clipvn($link){
$source = file_get_contents($link);
if(preg_match("#{'file':'(.+?)','label':'480p'}#is",$source, $data)){
return $data[1];
}elseif(preg_match("#{'file':'(.+?)','label':'360p'#is",$source, $data)){
return $data[1];
}else{
return SITE_URL.'/error.mp4';
}
}
echo clipvn($_GET['url']);
?>

sau đó các bạn chạy domain.com/clipvn.php?url=link phim.clip.vn
trong đó link phim.clip.vn các bạn lấy ở phim.clip.vn nhé
có gì không hiểu các bạn cứ comment ở dưới mình sẽ hướng dẫn. :)

Code chuẩn nhất 2015 do Nh0kzuka - Dinh Nguyen Share

<?php // Share By Nh0kzuka - Dinh Nguyen
// Các bạn share đâu ghi nguồn
echo   '<form action="" method="post">
<input type="url" name="link" value="'.$_POST['link'].'" placeholder="Link">
<input type="submit" value="Grab link">
</form>';
function CurlNZ($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);      
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
}
function ClipvnNZ($link){
//  COOKIE
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://clip.vn/ajax/login');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-Requested-With: XMLHttpRequest'));
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('username' => 'tài khoản', 'password' => 'mật mã', 'persistent' => 1, 'persistent' => 1));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$COOKIE = curl_exec($ch);
curl_close($ch);
//  COOKIE
$get = CurlNZ($link);
preg_match("/Clip.App.clipId(.*)';/U",$get,$id);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://clip.vn/movies/nfo/'.$id[1]);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch, CURLOPT_POSTFIELDS, array('onsite' => 'clip'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
// File Get
   preg_match_all("#<enclosure url='(.*?)' duration='([0-9]+)' id='(.*?)' type='(.*?)' quality='([0-9]+)' (.*?) />#is", $data, $data);
for($i=0;$i<3;$i++){ // link video
$file = '{file: "'.$data[1][$i].'"},';
}if($data[1][3] != ''){
$linkmp4 .= '"1080p" src="'.$data[1][3].'<br>';
}if($data[1][2] != ''){
$linkmp4 .= '"720p" src="'.$data[1][2].'<br>';
}if($data[1][1] != '') {
$linkmp4 .= '"480p" src="'.$data[1][1].'<br>';
}if($data[1][0] != '') {
$linkmp4 .= '"360p" src="'.$data[1][0].'<br>';}
    return $linkmp4;
}
if($_POST['link']) {
$url = $_POST['link'];
}else {
$url = ($_GET['url']);
}echo ClipvnNZ($url);

Đăng nhận xét

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
Site is Blocked
Sorry! This site is not available in your country.