<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: text/html;charset=gb2312");
include "../../../source/global/global_conn.php";
close_browse();
$CD_ID=SafeRequest("id","get");
global $db;
$sql="select * from ".tname('music')." where CD_ID=".$CD_ID;
if($row=$db->getrow($sql)){
        if($row['CD_Server']<>0){
                $server=$db->getrow("select * from ".tname('server')." where CD_ID=".$row['CD_Server']);
                $player=$server['CD_Url'].$row['CD_Url'];
        }else{
                $player=$row['CD_Url'];
        }
        if(substr($player,-4)==".jpg"){
                $type=substr($player,-7,3);
        }else{
                $type=substr($player,-3);
        }
	echo "<list><m type=\"".$type."\" src=\"".$player."\" label=\"".$row['CD_Name']." - ".GetSingerAlias("qianwei_singer","CD_Name","CD_ID",$row['CD_SingerID'])."\" lrc=\"".LinkLrcUrl($row['CD_Lrc'])."\" image=\"".LinkPicUrl($row['CD_Pic'])."\" bg_video=\"{src:".getavatars($row['CD_UserID'],1).",xywh:[0,0,100,100]}\" _fav=\"".LinkFavUrl($row['CD_ID'])."\" _down=\"".LinkDownUrl($row['CD_ID'])."\" /></list>";
}
?>