- <?php
- function Zhuanhuan () {
- $urlodd =explode ('//', $_get["url"],2);//The link is divided into 2 paragraphs,//front is the first paragraph, followed by the second paragraph
- $head =strtolower ($urlodd [0]);//php for case sensitive, first convert to lowercase, or http: or thunder: This weird writing is not easy to handle
- $behind = $urlodd [1];
- if ($head = = "Thunder:") {
- $url =substr (Base64_decode ($behind), 2,-2);//base64 decryption, remove the front AA and back ZZ
- }elseif ($head = = "FlashGet:") {
- $url 1=explode (' & ', $behind, 2);
- $url =substr (Base64_decode ($url 1[0]), -10);//base64 decrypt, remove front [FLASHGET]
- }elseif ($head = = "QQDL:") {
- $url =base64_decode ($behind);//base64 decryption
- }elseif ($head = = "http:" $head = = "ftp:" $head = = "MMS:" $head = = "RTSP:" $head = = "https:") {
- $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
- }else{
- echo "This page temporarily does not support this agreement";
- }
- return $url;
- }
- if ($_get["url"]!=null) {
- $url =zhuanhuan ($_get["url"]);
- $url _thunder= "thunder://". Base64_encode ("AA". $url. " ZZ ");//base64 encryption, the following 2 is the same
- $url _flashget= "flashget://". Base64_encode ("[FlashGet]". $url. " [FLASHGET] ")." &aiyh ";
- $url _qqdl= "qqdl://". Base64_encode ($url);
- }
- ?>
- <form action=cs.php method=get>
- php100.com please input ordinary link or thunder, Express, whirlwind chain address:
- <input type=text name= "url" size= ">"
- <input 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> Whirlwind chain: <a href= "<?php echo $url _qqdl;? > "target=" _blank "><?php echo $url _qqdl;? ></a>