您的位置:首页 > 编程语言

dedecms 软件下载模块中添加下载方式为迅雷下载联盟代码

2011-08-10 23:25 567 查看
修改 /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://jb51.net/url".$link); 
$thunderUrl = ThunderEncode($Url); 
echo "<script>OnDownloadClick('".$thunderUrl."','',location.href,'你的联盟id',2,'')</script>"; 
exit(); 
}

把迅雷联盟的 encode.inc 文件 放到 plus 目录
登陆dedecms后台 系统设置 - 软件频道设置 把 附件下载方式 修改为 链接到跳转页面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐