Thứ Năm, 6 tháng 8, 2015


error_reporting(E_ERROR | E_PARSE); function picasa_direct($link) { $url = urldecode($link); if (stristr($url, '#')) list($url, $id) = explode('#', $url); $data = file_get_contents($url); if($id) $gach = explode($id, $data); $gach = explode('{"url":"', ($id)?$gach[7]:$data); $v360p = urldecode(reset(explode('"', $gach[2]))); $v720p = urldecode(reset(explode('"', $gach[3]))); $v1080p = urldecode(reset(explode('"', $gach[4]))); if(strpos($v1080p, 'redirector.googlevideo.com')){ $js .= 'sources: [{file: "'.$v1080p.'&format=getlink/BaoSora.mp4",label: "1080p"}, {file: "'.$v720p.'&format=getlink/BaoSora.mp4",label: "720p"}, {file: "'.$v360p.'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}]'; } elseif(strpos($v720p, 'redirector.googlevideo.com')){ $js .= 'sources: [{file: "'.$v720p.'&format=getlink/BaoSora.mp4",label: "720p"}, {file: "'.$v360p.'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}]'; } else { $js .= 'file: "'.$v360p.'&format=getlink/BaoSora.mp4"'; } return $js; } echo "
";


Read more: THAY ĐỔI KHUNG TRÌNH CHIẾU YOUTUBE | dunghennessy Under Creative Commons License: Attribution Share Alike

Chủ Nhật, 14 tháng 6, 2015



function picasa_direct($link) { $url = urldecode($link); if (stristr($url, '#')) list($url, $id) = explode('#', $url); $data = file_get_contents($url); if($id) $gach = explode($id, $data); $gach = explode('{"url":"', ($id)?$gach[7]:$data); $v360p = urldecode(reset(explode('"', $gach[2]))); $v720p = urldecode(reset(explode('"', $gach[3]))); $v1080p = urldecode(reset(explode('"', $gach[4]))); if($v1080p != '' and (strpos($v1080p, '=m') !== false)){ $v1080p = get_headers($v1080p);$v1080p = explode('Location: ', $v1080p[1]); $v720p = get_headers($v720p);$v720p = explode('Location: ', $v720p[1]); $v360p = get_headers($v360p);$v360p = explode('Location: ', $v360p[1]); $js .= 'sources: [{file: "'.$v1080p[1].'&format=getlink/BaoSora.mp4",label: "1080p"}, {file: "'.$v720p[1].'&format=getlink/BaoSora.mp4",label: "720p"}, {file: "'.$v360p[1].'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}]'; } elseif($v720p != '' and (strpos($v720p, '=m') !== false)){ $v720p = get_headers($v720p);$v720p = explode('Location: ', $v720p[1]); $v360p = get_headers($v360p);$v360p = explode('Location: ', $v360p[1]); $js .= 'sources: [{file: "'.$v360p[1].'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}, {file: "'.$v720p[1].'&format=getlink/BaoSora.mp4",label: "720p"}]'; } else { $v360p = get_headers($v360p);$v360p = explode('Location: ', $v360p[1]); $js .= 'file: "'.$v360p[1].'&format=getlink/BaoSora.mp4"'; } return $js; } echo "
";