Php generates a tornado link for Thunder Express _ PHP Tutorial

Source: Internet
Author: User
Php generates a tornado link for Thunder Express .? Phpfunctionzhuanhuan () {$ urloddexplode (, $ _ GET [url], 2); divide the link into two sections. The first section is the first section, followed by the second section $ headstrtolower ($ urlodd [0]); PHP for large
 
 
  1. Function zhuanhuan (){
  2. $ Urlodd = explode (//, $ _ GET ["url"], 2); // divide the link into 2 segments. // The first segment is followed by the second segment.
  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. Http://www.bkjia.com/PHPjc/478843.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478843.htmlTechArticle? Php function zhuanhuan () {$ urlodd = explode (//, $ _ GET [url], 2); // divide the link into two sections. // The first section is the first section, followed by the second section $ head = strtolower ($ urlodd [0]); // PHP for large...

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.