PHP thunderbolt express whirlwind download dedicated chain conversion code

  • 2020-03-31 20:54:06
  • OfStack

Just copy the code and save it as cs.php. If you want to save it as a different name, please change < The form action = cs. PHP method = GET> This line
 
<?php 
function zhuanhuan() { 
$urlodd=explode('//',$_GET["url"],2);// Divide links into 2 Section, // The first paragraph is in front and the second paragraph is behind  
$head=strtolower($urlodd[0]);//PHP is case-sensitive, so convert to lowercase first, otherwise HtTp: or ThUNDER: is a weird way to write
$behind=$urlodd[1]; 
if($head=="thunder:"){ 
$url=substr(base64_decode($behind), 2, -2);//Base64 decryption, remove AA in front and ZZ in back
} 
elseif($head=="flashget:"){ 
$url1=explode('&',$behind,2); 
$url=substr(base64_decode($url1[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 supports HTTP, HTTPS, FTP, MMS, RTSP transport protocol, other places seem to be very few, like XX network disk is actually base64 based, but some decryption also can not be downloaded
} 
else {echo " This page does not currently support this protocol ";} 
return $url; 
} 
if($_GET["url"]!=NULL){ 
$url=zhuanhuan($_GET["url"]); 
$url_thunder="thunder://".base64_encode("AA".$url."ZZ");//base64 Encryption, down here 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> Please enter normal links or thunderbolt , Express train, whirlwind chain address : <input type=text name="url" size="80"> 
<input type=submit value=" conversion "> 
</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> A whirlwind chain: <a href="<?php echo $url_qqdl;?>" target="_blank"><?php echo $url_qqdl;?></a> 

Related articles: