Skip to main content
 Web开发网 » 站长学院 » 织梦教程

dedecms下载模块加入迅雷联盟代码的方法

2020年09月12日6250百度已收录

织梦dedecms下载模块加入迅雷联盟代码的方法 。

修改 /plus/download.php 文件

查找

<?php

MB5U@COM

在它上面加入

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

在它下面加入

require("encode.inc");

查找

else if($open==1){

$link = base64_decode($link);

echo "<script language=’javascript’>location=\&;$link\&;;</script>";

exit();

替换为

 

else if($open==1){

$link = base64_decode($link);

$Url = ("你的网站url".$link); 

$thunderUrl = ThunderEncode($Url);

echo "<script>OnDownloadClick(‘".$thunderUrl."’,”,location.href,’你的联盟id’,2,”)</script>";

exit();

}

把迅雷联盟的 encode.inc 文件 放到 plus 目录,

登陆织梦dedecms后台 系统设置 – 软件频道设置 把 附件下载方式 修改为 链接到跳转页面 。


 

评论列表暂无评论
发表评论
微信