溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

dedecms下載地址加迅雷專用鏈的操作方法是什么

發(fā)布時間:2020-09-04 11:55:49 來源:億速云 閱讀:116 作者:小新 欄目:建站服務(wù)器

這篇文章將為大家詳細(xì)講解有關(guān)dedecms下載地址加迅雷專用鏈的操作方法是什么,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

dedecms下載地址加迅雷專用鏈怎么操作?

織夢dedecms5.5加迅雷專用鏈的操作說明(鏈接到跳轉(zhuǎn)頁面加專用鏈)

特別注意!?。。。。。。。。。。?!

一. 用管理員賬號登陸dedecms5.5后臺管理系統(tǒng)

二. 點擊 “系統(tǒng)” –》 “軟件頻道設(shè)置”

三. 在軟件頻道設(shè)置面里面找到“附件下載方式”,千萬要注意以下三點:

1) 如果你的網(wǎng)站管理系統(tǒng)里面是選的“鏈接到真實軟件地址”這個選項,你就按照附件里面提供的“鏈接到真實軟件地址加專用鏈”文件夾下的說明文檔操作吧。

2) 如果你的網(wǎng)站管理系統(tǒng)里面選的是“鏈接到跳轉(zhuǎn)頁面”這個選項,你就按照附件里面提供的“鏈接到跳轉(zhuǎn)頁面加專用鏈”文件夾下的說明文檔操作吧。

3) 因為“鏈接到真實軟件地址加專用鏈”和“鏈接到跳轉(zhuǎn)頁面加專用鏈”這兩個文件夾下提供的操作說明文檔是不一樣的,你要根據(jù)你網(wǎng)站管理系統(tǒng)的設(shè)置,選擇對應(yīng)的修改說明文檔,千萬不要選錯了!

四.把文章模塊的下載鏈接轉(zhuǎn)換成專用鏈的修改方法請按照“修改文章模塊的改法”這個里面提供的改法修改。

部分化修改方法:

1.部分迅雷化:是保留你的本地資源下載鏈接,在你的本地資源下載鏈接的旁邊單獨(dú)添加一個迅雷專用鏈接。

2.部分迅雷化,需要修改templets\system\channel_downlinks.htm和\plus\download.php這2個文件,打開這個templets\system\channel_downlinks.htm文件,找到以下代碼:

<li><a href="~link~" target="_blank">~server~</a></li>

在這句代碼的前面加上以下代碼:

<li><a target=_blank href='~link~&flag=1'><font color=red>迅雷專用高速下載</font></a></li>

3.templets\system\channel_downlinks.htm這個文件修改完畢,詳情請查看附件里面的channel_downlinks.htm這個文件。

4.打開\plus\download.php這個文件:

A) 找到以下代碼:

require_once(DEDEINC."/channelunit.class.php");

在這句代碼的下面加上以下代碼:

$flag=(int)$_GET['flag'];

B) 找到以下代碼:

header("location:$link");

把這句代碼替換成以下代碼:

if ($flag == 1) 
{ 
$thunderPrefix="AA"; 
$thunderPosix="ZZ"; 
$thunderTitle="thunder://"; 
$name = $link; 
$pan = "://"; 
$con = explode($pan,$name); 
if (count($con)>1) 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$link.$thunderPosix); 
} 
else 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://localhost:6070/dedecms55/".$link.$thunderPosix); 
} 
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>"; 
echo "<script>window.opener=null;window.close();</script>"; 
} 
else 
{ 
header("location:$link"); 
}

C) 找到以下代碼:

header("location:{$softUrl}");

把這句代碼替換成以下代碼:

if ($flag == 1) 
{ 
$thunderPrefix="AA"; 
$thunderPosix="ZZ"; 
$thunderTitle="thunder://"; 
$name = $softUrl; 
$pan = "://"; 
$con = explode($pan,$name); 
if (count($con)>1) 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$softUrl.$thunderPosix); 
} 
else 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://localhost:6070/dedecms55/".$softUrl.$thunderPosix); 
} 
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>"; 
echo "<script>window.opener=null;window.close();</script>"; 
} 
else 
{ 
header("location:{$softUrl}"); 
}

注意:

1)把以上所有代碼里面的“http://localhost:6070/dedecms55/”這個全部修改成你自己的域名。

2)把 <script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>這句里面的92922修改成你自己的聯(lián)盟號

5.download.php這個文件修改完畢,詳情請查看附件里面的download.php文件。

6.覆蓋說明:

1)用修改好的download.php這個文件覆蓋你網(wǎng)站管理系統(tǒng)里面的\plus\download.php這個文件。

2)用修改好的channel_downlinks.htm這個文件覆蓋系統(tǒng)里面的templets\system\channel_downlinks.htm這個文件。

3)覆蓋后全部重新生成一下就可以了。

dedecms下載地址加迅雷專用鏈的操作方法是什么

全部迅雷化的改法

1.全部迅雷化:是把你網(wǎng)站上的所有資源下載鏈接都轉(zhuǎn)換成迅雷專用鏈接。

2.全部迅雷化只需要修改\plus\download.php這個文件就可以了。

3.打開\plus\download.php這個文件:

A) 找到以下代碼:

header("location:$link");

把這句代碼替換成以下代碼:

$thunderPrefix="AA"; 
$thunderPosix="ZZ"; 
$thunderTitle="thunder://"; 
$name = $link; 
$pan = "://"; 
$con = explode($pan,$name); 
if (count($con)>1) 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$link.$thunderPosix); 
} 
else 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://localhost:6070/dedecms55/".$link.$thunderPosix); 
} 
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>"; 
echo "<script>window.opener=null;window.close();</script>";

B) 找到以下代碼:

header("location:{$softUrl}");

把這句代碼替換成以下代碼:

$thunderPrefix="AA"; 
$thunderPosix="ZZ"; 
$thunderTitle="thunder://"; 
$name = $softUrl; 
$pan = "://"; 
$con = explode($pan,$name); 
if (count($con)>1) 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix.$softUrl.$thunderPosix); 
} 
else 
{ 
$thunderUrl=$thunderTitle.base64_encode($thunderPrefix."http://localhost:6070/dedecms55/".$softUrl.$thunderPosix); 
} 
echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>"; 
echo "<script>window.opener=null;window.close();</script>";

注意:

1)把以上所有代碼里面的“http://localhost:6070/dedecms55/”這個全部修改成你自己的域名。

2)把 <script>OnDownloadClick('".$thunderUrl."','',location.href,'92922',2,'')</script>這句里面的92922修改成你自己的聯(lián)盟號

4.download.php這個文件修改完畢,詳情請查看附件里面的download.php文件。

5.覆蓋說明:

1)用修改好的download.php這個文件覆蓋你網(wǎng)站管理系統(tǒng)里面的\plus\download.php這個文件。

2)覆蓋后全部重新生成一下就可以了。

dedecms下載地址加迅雷專用鏈的操作方法是什么

關(guān)于dedecms下載地址加迅雷專用鏈的操作方法是什么就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI