修改 /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=’javascript’>location=\”$link\”;</script>”;
exit();

替换为

代码如下:
else if($open==1){
$link = base64_decode($link);
$Url = (“http://freexyz.cn/url”.$link);
$thunderUrl = ThunderEncode($Url);
echo “<script>OnDownloadClick(‘”.$thunderUrl.”‘,”,location.href,’你的联盟id’,2,”)</script>”;
exit();
}

把迅雷联盟的 encode.inc 文件 放到 plus 目录
登陆dedecms后台 系统设置 – 软件频道设置 把 附件下载方式 修改为 链接到跳转页面

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。