functionZhuanhuan () {$urlodd=Explode(‘//‘,$_get["url"],2);//divide the link into 2 paragraphs,//front is the first paragraph, followed by the second paragraph$head=Strtolower($urlodd[0]);//PHP is case sensitive, the 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= = "FlashGet:"){ $url 1=Explode(' & ',$behind, 2); $url=substr(Base64_decode($url 1[0]), 10,-10);//Base64 Decryption, remove the previous [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 few, like XX network disk is actually based on Base64, but some decrypted also can not download}Else{ Echo"This page does not support this agreement for the time being"; } 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>jb51. NET Please enter normal link or thunderbolt, Express, Whirlwind address: <input type=text name= "url" size= "" "> <input type=submit value=" Convert "> </form& Gt <p> actual address: <a href= "<?php Echo$url;? > "target=" _blank "><?phpEcho $url;? ></a> <p> Thunderbolt chain: <a href= "<?php Echo$url _thunder;? > "target=" _blank "><?phpEcho $url _thunder;? ></a> <p> Express Chain: <a href= "<?php Echo$url _flashget;? > "target=" _blank "><?phpEcho $url _flashget;? ></a> <p> Cyclone chain: <a href= "<?php Echo$url _qqdl;? > "target=" _blank "><?phpEcho $url _qqdl;? ></a>
PHP will generate the code of the Thunder Express Tornado link