Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Decoded by Juno_okyo */
- header('Content-Type: text/html; charset=utf-8');
- setlocale(LC_TIME, 'vn_VN');
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- function Curl($Url) {
- $ch = @curl_init();
- curl_setopt($ch, CURLOPT_URL, $Url);
- $head[] = "Connection:Keep-Alive";
- $head[] = "Content-Type:text/html; charset=utf-8";
- $head[] = "Keep-Alive:timeout=5, max=100";
- $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
- $head[] = "Accept-Language: vi-VN,vi;q=0.8,en-US;q=0.5,en;q=0.3";
- $head[] = "X-Powered-By:Jkey C Phong";
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36');
- curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($ch, CURLOPT_TIMEOUT, 60);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
- $page = curl_exec($ch);
- curl_close($ch);
- return $page;
- }
- If (isset($_GET['client'], $_GET['id'], $_GET['url'])) {
- If ($_GET['client'] == 'Jc7xz2dFjvkvFQzGphmr' AND $_GET['url'] != '') {
- If ($_GET['id'] == 1) {
- $mat = preg_match('#nhaccuatui.com/bai-hat/.+\.(.*?)\.html#', $_GET['url'], $Link);
- If ($mat == false) {
- Echo json_encode(Array('Message' => 'Đường dẫn không đúng', 'CopyRight' => 'Jkey C Phong'));
- Return False;
- }
- // 128kbps
- $url_128kbps = 'http://www.nhaccuatui.com/download/song/' . $Link[1] . '_128';
- $src_128kbps = curl($url_128kbps);
- $decode_128kbps = json_decode($src_128kbps);
- //
- // 320kbps
- $url_320kbps = 'http://www.nhaccuatui.com/download/song/' . $Link[1];
- $src_320kbps = curl($url_320kbps);
- $decode_320kbps = json_decode($src_320kbps, true);
- //
- Echo json_encode(Array('Message' => 'Success', 'ID Server' => '1', 'Server' => 'NhacCuaTui', 'Download_Url' => Array('128' => $decode_320kbps['data']['stream_url'], '320' => $decode_320kbps['data']['stream_url']), 'Status_Read_Mode' => 'True'));
- } ElseIf ($_GET['id'] == 2) {
- $key = 'fafd463e2131914934b73310aa34a23f';
- $mat = preg_match('#mp3.zing.vn/(bai-hat|video-clip)/.+/(.*)\.html#', $_GET['url'], $Link);
- If ($mat == false) {
- Echo json_encode(Array('Message' => 'Đường dẫn không đúng', 'CopyRight' => 'Jkey C Phong'));
- Return False;
- }
- If ($Link[1] == 'bai-hat') {
- $Url = 'http://api.mp3.zing.vn/api/mobile/song/getsonginfo?keycode=' . $key . '&requestdata={"id":"' . $Link[2] . '"}';
- $Src = curl($Url);
- $Jsd = Json_Decode($Src, True);
- Echo json_encode(Array('Message' => 'Success', 'ID Server' => '2', 'Server' => 'Zing Mp3', 'Download_Url' => $Jsd['link_download']));
- } ElseIf ($Link[1] == 'video-clip') {
- $Url = 'http://api.mp3.zing.vn/api/mobile/video/getvideoinfo?keycode=' . $key . '&requestdata={"id":"' . $Link[2] . '"}';
- $Src = curl($Url);
- $Jsd = Json_Decode($Src, True);
- Echo Json_encode(Array('Message' => 'Success', 'ID Server' => '2', 'Server' => 'Zing Mp3', 'Download_Url' => $Jsd['source'], 'Status_Read_Mode' => 'True'));
- } else {
- echo "false";
- }
- } ElseIf ($_GET['id'] == 3) {
- $mat = preg_match('#tv.zing.vn/video/.+/(.*)\.html#', $_GET['url'], $Link);
- if ($mat == false) {
- Echo json_encode(Array('Message' => 'Đường dẫn không đúng', 'CopyRight' => 'Jkey C Phong'));
- Return False;
- }
- $src = curl('http://getlinkfs.com/getfile/zingtv.php?link=' . $_GET['url']);
- preg_match_all('#href="(.*?)&device=other"#', $src, $url_t);
- Echo Json_encode(Array('Message' => 'Success', 'ID Server' => '3', 'Server' => 'Zing TV', 'Download_Url' => $url_t[1], 'Status_Read_Mode' => 'True'));
- } ElseIf ($_GET['id'] == 4) {
- $mat = preg_match('#nhacso.net/nghe-nhac/.+\.(.+)==\.html#', $_GET['url'], $Link);
- If ($mat == False) {
- Echo json_encode(Array('Message' => 'Đường dẫn không đúng', 'CopyRight' => 'Jkey C Phong'));
- Return False;
- }
- Echo Json_encode(Array('Message' => 'Success', 'ID Server' => '4', 'Server' => 'NhacSo', 'Download_Url' => 'http://nhacso.net/songs/download-song?songId=' . $Link[1], 'Status_Read_Mode' => 'True'));
- } Else {
- Echo "Flase";
- }
- } Else {
- echo json_encode(Array('Message:' => 'Mã client không đúng hoặc đường dẫn chưa được nhập', 'CopyRight:' => 'Jkey C Phong'));
- }
- } Else {
- echo json_encode(Array('Message:' => 'Không tìm thấy liên kết', 'CopyRight:' => 'Jkey C Phong'));
- }
Add Comment
Please, Sign In to add comment