软件模块加入迅雷联盟代码



修改 /plus/download.php 文件

查找

<?php

在它上面加入

<script src="http://pstatic.xunlei/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后台 系统设置 - 软件频道设置 把 附件下载方式 修改为 链接到跳转页面

官方原帖:41077


上一篇:删除文章的同时自动删除生成的html文件

下一篇:xhtml+css模板中,友情链接标签生成的修改


Copyright © 2002-2019 测速网 https://www.inhv.cn/ 皖ICP备2023010105号 城市 地区 街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!
热门搜索