<?php
/**
* Code get link download http://mp3.zing.vn/tv
* Author: Killer
**/
$link = $_GET['url'];
if($link){
$source = @file_get_contents($link);
// Lấy source html của link
/**
* BEGIN: Tách chuỗi lấy link download
**/
$xml = explode('<input type="hidden" id="_strAuto" value="',$source);
$xml = explode('" />',$xml[1]);
$sourcexml = @file_get_contents($xml[0]);
$dl = explode('<source><![CDATA[',$sourcexml);
$dl = explode(']]></source>',$dl[1]);
/**
* END: Tách chuỗi lấy link download
**/
if($dl[0]){
header('location: '.$dl[0]);
}else{
echo "Error: ".$link;
}
}else{
echo "empty";
}
?>