找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
查看: 811|回复: 2

[建站交流] 求大大们给个RAYFILE真实地址解析的源码

[复制链接]
发表于 2012-12-29 18:40:04 | 显示全部楼层 |阅读模式
之前那个不能用了,我论坛都是用的RAY外链 求好心人
发表于 2012-12-30 15:33:54 | 显示全部楼层
把你之前的php代码放出来,看能否有高人帮你修改~~
 楼主| 发表于 2012-12-30 16:54:24 | 显示全部楼层
  1. <?php


  2. $F_url=str_replace('/SmsEnt.php/','',$_SERVER["REQUEST_URI"]);

  3. $strarry = explode("/",$F_url);

  4. if($strarry[1]=="Sms.Entertainment"||$strarry[1]=="SmsEnt.wma")

  5. {

  6. $md = $strarry[0];

  7. $arr = "/zh-cn/files/";

  8. $arr .=$md;

  9. $arr .="/";

  10. $out = "GET ";

  11. $out .=$arr;

  12. $out .=" HTTP/1.0\r\nHost: www.rayfile.com\r\nConnection: Close\r\n\r\n";

  13. $fp = fsockopen("www.rayfile.com",80,$errno,$errstr,30);

  14. if (!$fp)

  15. {echo "$errstr ($errno)<br />\n";}

  16. else

  17. {

  18. fputs($fp,$out);

  19. $tmp = "";

  20. while (!feof($fp))

  21. {$tmp .= fgets($fp,128);}

  22. fclose($fp);

  23. }

  24. $htxt = htmlspecialchars($tmp);

  25. $ft1["dt"]="btn_22";

  26. $ft1["id"]="divdowntool";

  27. ereg("{$ft1["dt"]}(.*){$ft1["end"]}",$htxt,$matches);

  28. $tmpdown = $matches[0];

  29. $tmpdownurl = explode("/",$tmpdown);

  30. $downurl="/zh-cn/files/".$tmpdownurl[5]."/".$tmpdownurl[6]."/";

  31. $city=$downurl;

  32. $fp2 = fsockopen("www.rayfile.com",80,$errno,$errstr,30);

  33. if (!$fp2)

  34. {echo "$errstr ($errno)<br />\n";}

  35. else

  36. {

  37. fputs($fp2,"GET   $city   HTTP/1.0\r\nHost: www.rayfile.com\r\nConnection: Close\r\n\r\n");

  38. $tmp2 = "";

  39. while (!feof($fp2)) {

  40. $tmp2 .= fgets($fp2,128);

  41. }

  42. fclose($fp2);

  43. }

  44. $htmtxt = htmlspecialchars($tmp2);

  45. $ft2["dt"]="downloads_url=['";

  46. $ft2["end"]="']";

  47. ereg("var downloads_url =(.*)",$htmtxt,$matches2);

  48. $urltmp1 = explode("'",$matches2[0]);

  49. $rf_code =$urltmp1[5];

  50. $urltmp = explode("/",$urltmp1[1]);

  51. $url = "http://".$urltmp[2]."/".$rf_code."/zh-cn/download/".$urltmp[5]."/".$urltmp[6];

  52. $str = str_replace( ".","/",$url);

  53. $str = explode("/",$str);

  54. $l = count($str);

  55. $F_url = "http://".$str[2].".rayfile.com/".$rf_code."/zh-cn/download/".$str[8]."/".$urltmp[6];



  56. echo "<script type="text/javascript" src="https://smsent.googlecode.com/svn/smsplayer/cmp.js"></script> \n";

  57. echo "<script type="text/javascript">\n";

  58. echo "CMP.write("cmp{RANDOM}","600","176","https://smsent.googlecode.com/svn/smsplayer/cmp.swf?url=lists/music.xml&src=$F_url");\n";

  59. echo "</script>\n";





  60. }



  61. ?>
复制代码
这个是原来的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2024-11-25 17:18 , Processed in 0.021335 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表