首頁  >  文章  >  CMS教程  >  dedecms下載模組中怎麼加入下載方式

dedecms下載模組中怎麼加入下載方式

藏色散人
藏色散人原創
2019-12-13 10:17:292759瀏覽

dedecms下載模組中怎麼加入下載方式

dedecms下載模組中怎麼加入下載方式?

dedecms 軟體下載模組中加入下載方式為迅雷下載聯盟代碼,用dedecms做下載的朋友可以參考下。

  

建議學習:織夢cms

#修改/plus/download.php 檔案 

找出 

#
<?php

在它上面加入 

<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>

在它下面加入 

require("encode.inc");

找出 

程式碼如下:

else if($open==1){ 
$link = base64_decode($link); 
echo "<script language=&#39;javascript&#39;>location=\"$link\";</script>"; 
exit();

替換為 

程式碼如下:

else if($open==1){ 
$link = base64_decode($link); 
$Url = ("http://jb51.net/url".$link); 
$thunderUrl = ThunderEncode($Url); 
echo "<script>OnDownloadClick(&#39;".$thunderUrl."&#39;,&#39;&#39;,location.href,&#39;你的联盟id&#39;,2,&#39;&#39;)</script>"; 
exit(); 
}

把迅雷聯盟的encode.inc 檔案放到plus 目錄 

登陸dedecms後台系統設定- 軟體頻道設定把附件下載方式修改為連結到跳躍頁面

以上是dedecms下載模組中怎麼加入下載方式的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn