php中將地址產生迅雷快車旋風連結的代碼

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   ar   for   div   sp   

function zhuanhuan() { $urlodd=explode(‘//‘,$_GET["url"],2);//把連結分成2段,//前面是第一段,後面的是第二段 $head=strtolower($urlodd[0]);//PHP對大小寫敏感,先統一轉換成小寫,不然 出現HtTp:或者ThUNDER:這種怪異的寫法不好處理 $behind=$urlodd[1]; if($head=="thunder:"){ $url=substr(base64_decode($behind), 2, -2);//base64解密,去掉前面的AA和後面ZZ }elseif($head=="flashget:"){ $url1=explode(‘&‘,$behind,2); $url=substr(base64_decode($url1[0]), 10, -10);//base64解密,去掉前面後的[FLASHGET] }elseif($head=="qqdl:"){ $url=base64_decode($behind);//base64解密 }elseif($head=="http:"||$head=="ftp:"||$head=="mms:"||$head=="rtsp:"||$head=="https:"){ $url=$_GET["url"];//常規地址僅支援http,https,ftp,mms,rtsp傳輸協議,其他地貌似很少,像XX網盤實際上也是基於base64,但是有的解密了也下載不了 }else{ echo "本頁面暫時不支援此協議"; } return $url; } if($_GET["url"]!=NULL){ $url=zhuanhuan($_GET["url"]); $url_thunder="thunder://".base64_encode("AA".$url."ZZ");//base64加密,下面的2也一樣 $url_flashget="Flashget://".base64_encode("[FLASHGET]".$url."[FLASHGET]")."&aiyh"; $url_qqdl="qqdl://".base64_encode($url); } 

 

<form action=cs.php method=GET> jb51.net 請輸入普通連結或者迅雷,快車,旋風鏈地址: <input type=text name="url" size="80"> <input type=submit value="轉換"> </form> <p>實際地址:<a href="<?php echo $url;?>" target="_blank"><?php echo $url;?></a> <p>迅雷鏈:<a href="<?php echo $url_thunder;?>" target="_blank"><?php echo $url_thunder;?></a> <p>快車鏈:<a href="<?php echo $url_flashget;?>" target="_blank"><?php echo $url_flashget;?></a> <p>旋風鏈:<a href="<?php echo $url_qqdl;?>" target="_blank"><?php echo $url_qqdl;?></a>

 

 

php中將地址產生迅雷快車旋風連結的代碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.