$finished = false; $rowLine1 = "100"; $rowLine2 = "010"; $rowLine3 = "001"; $tableValues = $rowLine1 . $rowLine1 . $rowLine1 . $rowLine2 . $rowLine2 . $rowLine2 . $rowLine3 . $rowLine3 . $rowLine3; $tableValues .= $rowLine1 . $rowLine1 . $rowLine1 . $rowLine2 . $rowLine2 . $rowLine2 . $rowLine3 . $rowLine3 . $rowLine3; $tableValues .= $rowLine1 . $rowLine1 . $rowLine1 . $rowLine2 . $rowLine2 . $rowLine2 . $rowLine3 . $rowLine3 . $rowLine3; $test = 1; if (getSubstr("1", 0, 1) != "1") { echo getSubstr("1", 0, 1) . "--1<BR>"; } if (getSubstr($tableValues, $x = 0) != "1") { echo getSubstr($tableValues, $x = 0) . "--2<BR>"; } if (getSubstr($tableValues, $x = 40) != "1") { echo getSubstr($tableValues, $x = 40) . "--3<BR>"; } if (getCellValue($tableValues, $x = 4, $y = 4) != "1") { echo getCellValue($tableValues, $x = 4, $y = 4) . "--4<BR>"; } if (getCellNumber($tableValues, $x = 4, $y = 4) != 40) { echo getCellNumber($tableValues, $x = 4, $y = 4) . "--5<BR>"; } if (getCornerLine($tableValues, 0, 0) != "100") { echo getCornerLine($tableValues, 0, 0) . "--6<BR>"; } if (getCornerLine($tableValues, 0, 1) != "010") { echo getCornerLine($tableValues, 0, 1) . "--7<BR>"; } if (getCornerLine($tableValues, 0, 2) != "001") { echo getCornerLine($tableValues, 0, 2) . "--8<BR>";
$url_page = "http://5sing.kugou.com/m/detail/" . $song_type . "-" . $song_id . "-1.html"; } } //URL processing end $code = @file_get_contents($url_page); $mp3_url = getSubstr($code, '<audio src="', '" preload="'); if ($mp3_url == "") { //获取mp3失败 echo ' <script type="text/javascript"> $("#load").html("<p>抱歉,未找到该作品</br>请检查歌曲链接是否正确!</br>如有问题或疑问,请发送邮件至gdsgltc@gmail.com联系解决</br>感谢!</p></br>"); </script>'; } else { //成功 $mp3_tiele = getSubstr($code, '<h3 class="m_title">', '</h3>'); $temp_mp3_singer = getSubstr($code, '<td width="50%"><span>演唱', '<td width="50%"><span>点击'); $mp3_singer = getSubstr($temp_mp3_singer, ' : ', '</span></td>'); echo ' <script type="text/javascript"> $("#load").html("<p>作品:' . $mp3_tiele . '</br>演唱:' . $mp3_singer . '</br>下载地址:</br><a target=\\"_blank\\" href=\\"' . $mp3_url . '\\">' . $mp3_url . '</a></p></br>"); </script>'; } } ?> <p><input type="submit" value="下载"></p> </fieldset> </form> </div> <!-- end main -->
$mvurl_high = "http://www.flvcd.com/parse.php?kw=http%3A%2F%2Fp.bokecc.com%2Fplayvideo.bo%3Fuid%3D" . $uid . "%26playerid%3D%26playertype%3D%26autoStart%3Dtrue%26vid%3D" . $vid . "&format=high"; $code_mvurl_normal = file_get_contents($mvurl_normal); $code_mvurl_normal = iconv("gb2312", "utf-8//IGNORE", $code_mvurl_normal); $url_mvurl_normal = getSubstr($code_mvurl_normal, '<br>下载地址:<a href="', '" target="_blank" class="link"'); $code_mvurl_high = file_get_contents($mvurl_high); $code_mvurl_high = iconv("gb2312", "utf-8//IGNORE", $code_mvurl_high); $url_mvurl_high = getSubstr($code_mvurl_high, '<br>下载地址:<a href="', '" target="_blank" class="link"'); echo ' <script type="text/javascript"> $("#load").html("<p>作品:' . $title . '</br>ID:' . $singer . '</br>类型:MV视频</br>下载地址:</br><a target=\\"_blank\\" href=\\"' . $url_mvurl_normal . '\\">' . $url_mvurl_normal . '(普通版)</a> </br><a target=\\"_blank\\" href=\\"' . $url_mvurl_high . '\\">' . $url_mvurl_high . '(高清版)</a></p></br>"); </script> '; } else { //音乐文件 $songurl = getSubstr($code, '(function(){var a="', '",b=/userwork\\/(['); $title = getSubstr($code, '<h1 style="font-size: 0; height: 0; overflow: hidden;">', ' - 唱吧,最时尚的手机KTV</h1>'); $singer = getSubstr($code, '< <span class=\'twemoji\'>', '</span>的主页</a>'); echo ' <script type="text/javascript"> $("#load").html("<p>作品:' . $title . '</br>ID:' . $singer . '</br>类型:MP3音乐</br>下载地址:</br><a target=\\"_blank\\" href=\\"' . $songurl . '\\">' . $songurl . '</a></p></br>"); </script> '; } } else { //未知情况错误提示 echo ' <script type="text/javascript"> $("#load").html("<p>抱歉,发生未知错误以至未能找到下载地址</br>请再次确认作品链接地址是否正确</br>如有问题或疑问,请发送邮件至gdsgltc@gmail.com联系解决</br>感谢!</p></br>"); </script> '; } } } ?>