PHP Generate Thunderbolt Express Whirlwind link

Source: Internet
Author: User
Tags base64 explode ftp
 
 
  1. <?php
  2. function Zhuanhuan () {
  3. $urlodd =explode ('//', $_get["url"],2);//The link is divided into 2 paragraphs,//front is the first paragraph, followed by the second paragraph
  4. $head =strtolower ($urlodd [0]);//php for case sensitive, first convert to lowercase, or http: or thunder: This weird writing is not easy to handle
  5. $behind = $urlodd [1];
  6. if ($head = = "Thunder:") {
  7. $url =substr (Base64_decode ($behind), 2,-2);//base64 decryption, remove the front AA and back ZZ
  8. }elseif ($head = = "FlashGet:") {
  9. $url 1=explode (' & ', $behind, 2);
  10. $url =substr (Base64_decode ($url 1[0]), -10);//base64 decrypt, remove front [FLASHGET]
  11. }elseif ($head = = "QQDL:") {
  12. $url =base64_decode ($behind);//base64 decryption
  13. }elseif ($head = = "http:" $head = = "ftp:" $head = = "MMS:" $head = = "RTSP:" $head = = "https:") {
  14. $url =$_get["url"];//general address only support HTTP,HTTPS,FTP,MMS,RTSP transport protocol, other seemingly very few, like XX network disk is actually based on Base64, but some decryption also can not download
  15. }else{
  16. echo "This page temporarily does not support this agreement";
  17. }
  18. return $url;
  19. }
  20. if ($_get["url"]!=null) {
  21. $url =zhuanhuan ($_get["url"]);
  22. $url _thunder= "thunder://". Base64_encode ("AA". $url. " ZZ ");//base64 encryption, the following 2 is the same
  23. $url _flashget= "flashget://". Base64_encode ("[FlashGet]". $url. " [FLASHGET] ")." &aiyh ";
  24. $url _qqdl= "qqdl://". Base64_encode ($url);
  25. }
  26. ?>
  27. <form action=cs.php method=get>
  28. php100.com please input ordinary link or thunder, Express, whirlwind chain address:
  29. <input type=text name= "url" size= ">"
  30. <input type=submit value= "Convert" >
  31. </form>
  32. <p> actual address: <a href= "<?php echo $url;? > "target=" _blank "><?php echo $url;? ></a>
  33. <p> Thunderbolt chain: <a href= "<?php echo $url _thunder;? > "target=" _blank "><?php echo $url _thunder;? ></a>
  34. <p> Express Chain: <a href= "<?php echo $url _flashget;? > "target=" _blank "><?php echo $url _flashget;? ></a>
  35. <p> Whirlwind chain: <a href= "<?php echo $url _qqdl;? > "target=" _blank "><?php echo $url _qqdl;? ></a>




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.