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; }
出处:http://www.oschina.net/code/snippet_1780998_52180 //php qq下载地址互相转换