|
楼主 |
发表于 2012-12-30 16:54:24
|
显示全部楼层
- <?php
- $F_url=str_replace('/SmsEnt.php/','',$_SERVER["REQUEST_URI"]);
- $strarry = explode("/",$F_url);
- if($strarry[1]=="Sms.Entertainment"||$strarry[1]=="SmsEnt.wma")
- {
- $md = $strarry[0];
- $arr = "/zh-cn/files/";
- $arr .=$md;
- $arr .="/";
- $out = "GET ";
- $out .=$arr;
- $out .=" HTTP/1.0\r\nHost: www.rayfile.com\r\nConnection: Close\r\n\r\n";
- $fp = fsockopen("www.rayfile.com",80,$errno,$errstr,30);
- if (!$fp)
- {echo "$errstr ($errno)<br />\n";}
- else
- {
- fputs($fp,$out);
- $tmp = "";
- while (!feof($fp))
- {$tmp .= fgets($fp,128);}
- fclose($fp);
- }
- $htxt = htmlspecialchars($tmp);
- $ft1["dt"]="btn_22";
- $ft1["id"]="divdowntool";
- ereg("{$ft1["dt"]}(.*){$ft1["end"]}",$htxt,$matches);
- $tmpdown = $matches[0];
- $tmpdownurl = explode("/",$tmpdown);
- $downurl="/zh-cn/files/".$tmpdownurl[5]."/".$tmpdownurl[6]."/";
- $city=$downurl;
- $fp2 = fsockopen("www.rayfile.com",80,$errno,$errstr,30);
- if (!$fp2)
- {echo "$errstr ($errno)<br />\n";}
- else
- {
- fputs($fp2,"GET $city HTTP/1.0\r\nHost: www.rayfile.com\r\nConnection: Close\r\n\r\n");
- $tmp2 = "";
- while (!feof($fp2)) {
- $tmp2 .= fgets($fp2,128);
- }
- fclose($fp2);
- }
- $htmtxt = htmlspecialchars($tmp2);
- $ft2["dt"]="downloads_url=['";
- $ft2["end"]="']";
- ereg("var downloads_url =(.*)",$htmtxt,$matches2);
- $urltmp1 = explode("'",$matches2[0]);
- $rf_code =$urltmp1[5];
- $urltmp = explode("/",$urltmp1[1]);
- $url = "http://".$urltmp[2]."/".$rf_code."/zh-cn/download/".$urltmp[5]."/".$urltmp[6];
- $str = str_replace( ".","/",$url);
- $str = explode("/",$str);
- $l = count($str);
- $F_url = "http://".$str[2].".rayfile.com/".$rf_code."/zh-cn/download/".$str[8]."/".$urltmp[6];
- echo "<script type="text/javascript" src="https://smsent.googlecode.com/svn/smsplayer/cmp.js"></script> \n";
- echo "<script type="text/javascript">\n";
- echo "CMP.write("cmp{RANDOM}","600","176","https://smsent.googlecode.com/svn/smsplayer/cmp.swf?url=lists/music.xml&src=$F_url");\n";
- echo "</script>\n";
- }
- ?>
复制代码 这个是原来的 |
|