<?php
/*
 * Created on 2011-12-27
 *by 月下幽杳@www.vvfox.com
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 error_reporting(0);
header("Content-type: text/xml; charset=utf-8");
function vvfox($id){
         $url = "http://player.kuwo.cn/webmusic/st/getMuiseByRid?rid=MUSIC_$id";
         $str = file_get_contents($url);
         preg_match('|<mp3path>([^<]+)</mp3path>|', $str, $ar);
         preg_match('|<mp3dl>([^<]+)</mp3dl>|', $str, $arr);
         $mp3path = $ar[1];
         $mp3dl = $arr[1];
         $kwurl = "http://" . $mp3dl . $mp3path;
         header("location:$kwurl");
}
if (isset ($_GET['id'])) {
   vvfox($_GET['id']);
}
?>
