Home > php教程 > PHP源码 > body text

PHP把下载地址转换为迅雷、快车、QQ旋风下载链接

PHP中文网
Release: 2016-05-23 16:38:45
Original
1046 people have browsed it

PHP把下载地址转换为迅雷、快车、QQ旋风下载链接

function zhuanhuan($url){
	if(empty($url)) return $result;
	$urlodd=explode('//',$url,2);
	$head=strtolower($urlodd[0]);
	$behind=$urlodd[1];
	if($head=="thunder:"){
		$url=substr(base64_decode($behind),2,-2);
	}else if($head=="flashget:"){
		$url1=explode('&',$behind,2);
		$url=substr(base64_decode($url1[0]),10,-10);
	}else if($head=="qqdl:"){
		$url=base64_decode($behind);
	}else if($head=="http:"||$head=="ftp:"||$head=="mms:"||$head=="rtsp:"||$head=="https:"){
		$url=array(
			'thunder'=>"thunder://".base64_encode("AA".$url."ZZ"),
			'flashget'=>"Flashget://".base64_encode("[FLASHGET]".$url."[FLASHGET]")."&aiyh",
			'qqdl'=>"qqdl://".base64_encode($url)
		);
	}else{
		return '';
	}
	return $url;
}
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template