Teya Salat
WapXinh.000a.biz Wap Music'; $url = "http://m.nhaccuatui.com/"; $response = str_replace('"', "'", get_url_contents($url)); $good = sstring($response,"",""); $good = str_replace("href='/", "href='/music.php?get=nct&do=view&t=1&k=", $good); $good = str_replace("
", "
", $good); $good = str_replace("keyword", "k", $good); $good = str_replace("", "", $good); echo $good; echo''; exit();}function get_url_contents($url){$crl = curl_init();$timeout = 5;curl_setopt ($crl, CURLOPT_COOKIESESSION, true);curl_setopt ($crl, CURLOPT_URL,$url);curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($crl, CURLOPT_USERAGENT, "User-Agent:Profile/MIDP-1.0 Configuration/CLDC-1.0"); $ret = curl_exec($crl);curl_close($crl);return $ret;}function sstring($source,$a,$b){list($junk, $dest) = split($a, $source);list($dest, $junk) = split($b, $dest);return $dest;}function cutstring($source,$a,$b){$ret = substr($source, $a, $b);$pos1 = stripos($source, $a);$ret = substr($source, 0, $pos1);$pos1 = $pos1 + strlen($a);$s = substr($source, $pos1);$pos2 = stripos($s, $b) + strlen($b);$ret = $ret.substr($s, $pos2);return $ret;}function FixEncoding($x){if(mb_detect_encoding($x)=='UTF-8'){return $x;}else{return utf8_encode($x);} } //} if ($_REQUEST["do"]=="view") { echo''; $t = $_REQUEST["t"]; if ($_REQUEST["t"]=="1"){ $wgfgfd = $_REQUEST["k"]; if ($_REQUEST["k"]==""){echo'Không có dữ liệu';}else{ $url = "http://m.nhaccuatui.com/$wgfgfd"; $response = str_replace('"', "'", get_url_contents($url)); $good = sstring($response,"",""); $good = str_replace("href='/", "href='/music.php?get=nct&do=view&t=1&k=", $good); $good = str_replace("
", "", $good); $good = str_replace("keyword", "k", $good); $good = str_replace("", "", $good); echo $good;}}else{echo'Không tìm thấy Quay lại';} } //} if ($_REQUEST["do"]=="search"){ echo''; $wgfgfd = $_REQUEST["k"]; $t = $_REQUEST["t"]; if ($_REQUEST["k"]==""){echo'Chưa nhập từ khóa cần tìm Quay lại';}else{ $url = "http://m.nhaccuatui.com/tim-kiem.html?k=".str_replace(" ","%20",$wgfgfd).""; $response = str_replace('"', "'", get_url_contents($url)); $good = sstring($response,"",""); $good = str_replace("href='/", "href='/music.php?get=nct&do=view&t=1&k=", $good); $good = str_replace("
", "", $good); $good = str_replace("keyword", "k", $good); $good = str_replace("", "", $good); echo $good;} } //} echo''; ?>