PHP to generate Thunder, express, Cyclone and other software download link code example

Source: Internet
Author: User
Tags decrypt explode

PHP to generate Thunder, express, Cyclone and other software download link code example

<?php function Download () {$urlodd =explode ('///', $_post["url"],2),//The link is divided into 2 segments,//front is the first paragraph, followed by the second paragraph $head =strtolowe      R ($urlodd [0]);//php is case sensitive, first uniform conversion to lowercase, or http: or thunder: This weird writing is not good to handle $behind = $urlodd [1]; if ($head = = "Thunder:") {$url =substr (Base64_decode ($behind), 2,-2);//base64 decrypt, remove the front AA and the back zz}elseif ($head = = "fl          Ashget: ") {$url 1=explode (' & ', $behind, 2); $url =substr (Base64_decode ($url 1[0]), -10,//base64 decryption, remove the previous [FLASHGET]}elseif ($head = = "QQDL:") {$url =base 64_decode ($behind);//base64 Decrypt}elseif ($head = = "http:" | | $head = = "ftp:" | | $head = = "MMS:" | | $head = = "RTSP:" | | $head = = "https:") {$url =$_post["url"];//general address only support HTTP,HTTPS,FTP,MMS,RTSP transport protocol, other seemingly rare, like XX network disk is actually based on Base64,    But some decryption also can not download}else{echo "This page temporarily does not support this agreement";  } return $url;      } if ($_post["url"]!=null) {$url =download ($_post["url"]); $url _thunder= "thunder://". Base64_encode ("AA". $url. " ZZ ");//base64 encryption, the following 2 is also the same $url _flashget=" flashget://". Base64_encode ("[FLASHGET]". $url. " [FLASHGET] ")."      &aiyh "; $url _qqdl= "qqdl://". Base64_encode ($url); }? ><form action= "" method= "POST" > Please enter normal link or thunderbolt, Express, Whirlwind link address: <input type=text name= "url" size= "" "> <inpu T type=submit value= "Convert" > </form> <p> actual address: <a href= "<?php echo $url;? > "target=" _blank "><?php echo $url;? ></a> <p> Thunderbolt chain: <a href= "<?php echo $url _thunder;? > "target=" _blank "><?php echo $url _thunder;? ></a> <p> Express Chain: <a href= "<?php echo $url _flashget;? > "target=" _blank "><?php echo $url _flashget;? ></a> <p> Cyclone chain: <a href= "<?php echo $url _qqdl;? > "target=" _blank "><?php echo $url _qqdl;? ></a>

  

PHP to generate Thunder, express, Cyclone and other software download link code example

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.