Generate the php code of the Xunlei address

Source: Internet
Author: User
Based on our needs, we wrote a three Download software addresses that use php to generate the Thunder Express tornado. they are probably implemented using base64 encryption programs. the code is as follows. & Lt ;? Phpfunction

Based on our needs, we wrote a three Download software addresses that use php to generate the Thunder Express tornado. they are probably implemented using base64 encryption programs. the code is as follows.

  1. Function zhuanhuan (){
  2. $ Urlodd = explode ('/', $ _ get ["url"], 2); // divide the link into two sections. // The first section is the first section, followed by the second paragraph
  3. $ Head = strtolower ($ urlodd [0]); // php is case sensitive, which is first converted to lowercase. otherwise, http: or thunder: is not easy to handle.
  4. $ Behind = $ urlodd [1];
  5. If ($ head = "thunder :"){
  6. $ Url = substr (base64_decode ($ behind), 2,-2); // base64 decryption, remove the preceding aa and the following zz
  7. } Elseif ($ head = "flashget :"){
  8. $ Url1 = explode ('&', $ behind, 2 );
  9. $ Url = substr (base64_decode ($ url1 [0]), 10,-10); // base64 decryption, remove the previous [flashget]
  10. } Elseif ($ head = "qqdl :"){
  11. $ Url = base64_decode ($ behind); // base64 decryption
  12. } Elseif ($ head = "http:" | $ head = "ftp:" | $ head = "mms:" | $ head = "rtsp: "| $ head =" https :"){
  13. $ Url = $ _ get ["url"]; // The regular address only supports the http, https, ftp, mms, and rtsp transmission protocols. it seems that few other addresses are supported, A network disk like xx is actually based on base64, but some cannot be downloaded even after decryption.
  14. } Else {
  15. Echo "this page does not support this protocol currently ";
  16. }
  17. Return $ url;
  18. }
  19. If ($ _ get ["url"]! = Null ){
  20. $ Url = zhuanhuan ($ _ get ["url"]);
  21. $ Url_thunder = "thunder: //". base64_encode ("aa". $ url. "zz"); // base64 encryption, the same is true for the following 2
  22. $ Url_flashget = "flashget: //". base64_encode ("[flashget]". $ url. "[flashget]"). "& aiyh ";
  23. $ Url_qqdl = "qqdl: //". base64_encode ($ url );
  24. }
  25. ?>
  26. Actual address :" "Target =" _ blank ">

  27. Thunder chain :" "Target =" _ blank ">

  28. Express chain :" "Target =" _ blank ">

  29. Tornado chain :" "Target =" _ blank ">  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.