dedecms软件下载模块中添加下载方式为迅雷下载联盟代码
类别:建站知识   时间:12-26

修改 /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:///url".$link);$thunderUrl = ThunderEncode($Url);echo "<script>OnDownloadClick('".$thunderUrl."','',location.href,'你的联盟id',2,'')</script>";exit();}把迅雷联盟的 encode.inc 文件 放到 plus 目录 ,登陆dedecms后台 系统设置 - 软件频道设置 把 附件下载方式 修改为 链接到跳转页面 。

智慧半岛,是一家专注于青岛网站建设青岛网站开发的青岛网络公司,Copyright ©2007-2019 Ebandao.Cn 版权所有 All Rights Reserved.(建议在1366x768以上的浏览器中访问)鲁ICP备08014496号

13153297890